Package de.unirostock.sems.bives.markup
Class MarkupElement
- java.lang.Object
-
- de.unirostock.sems.bives.markup.MarkupElement
-
public class MarkupElement extends Object
The Class MarkupElement representing an element in a MarkupDocument.- Author:
- Martin Scharm
-
-
Constructor Summary
Constructors Constructor Description MarkupElement(String header)
Instantiates a new markup element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubElements(MarkupElement element)
Adds a sub-element.void
addValue(String value)
Adds an entry to this element.void
flagInvisibleModification()
Set a flag indicating that this element has modifications which are not visible in the markup document.String
getHeader()
Gets the header.List<MarkupElement>
getSubElements()
Gets the sub-elements.List<String>
getValues()
Gets the entries stored in this element.boolean
hasInvisibleModifications()
Does this element have modifications which are not visible in the markup document?.void
setHeader(String header)
Sets the header.boolean
setInvisibleModifications(boolean invisibleModifications)
Does this element have modifications which are not visible in the markup document?.
-
-
-
Constructor Detail
-
MarkupElement
public MarkupElement(String header)
Instantiates a new markup element.- Parameters:
header
- the header
-
-
Method Detail
-
flagInvisibleModification
public void flagInvisibleModification()
Set a flag indicating that this element has modifications which are not visible in the markup document.
-
hasInvisibleModifications
public boolean hasInvisibleModifications()
Does this element have modifications which are not visible in the markup document?.- Returns:
- true, if the are invisible modifications
-
setInvisibleModifications
public boolean setInvisibleModifications(boolean invisibleModifications)
Does this element have modifications which are not visible in the markup document?.- Parameters:
invisibleModifications
- the flag for invisible modifications- Returns:
- true, if the are invisible modifications
-
addValue
public void addValue(String value)
Adds an entry to this element.- Parameters:
value
- the entry
-
addSubElements
public void addSubElements(MarkupElement element)
Adds a sub-element.- Parameters:
element
- the element
-
setHeader
public void setHeader(String header)
Sets the header.- Parameters:
header
- the new header
-
getHeader
public String getHeader()
Gets the header.- Returns:
- the header
-
getValues
public List<String> getValues()
Gets the entries stored in this element.- Returns:
- the entries
-
getSubElements
public List<MarkupElement> getSubElements()
Gets the sub-elements.- Returns:
- the sub-elements
-
-