Package overit.geocall.ecs
Class TextElement
java.lang.Object
org.apache.ecs.GenericElement
org.apache.ecs.ElementAttributes
org.apache.ecs.ConcreteElement
org.apache.ecs.StringElement
overit.geocall.ecs.TextElement
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.ecs.Attributes,org.apache.ecs.Element,org.apache.ecs.ElementRegistry,org.apache.ecs.Printable
public class TextElement
extends org.apache.ecs.StringElement
This class manages a text element escaping the html/xml parts, and if needed the
transformation of \n in "line break"
- See Also:
-
Field Summary
Fields inherited from class org.apache.ecs.GenericElement
tabLevelFields inherited from interface org.apache.ecs.Attributes
NO_ATTRIBUTE_VALUEFields inherited from interface org.apache.ecs.Element
CENTER, LEFT, LOWERCASE, MIXEDCASE, RIGHT, UPPERCASE -
Constructor Summary
ConstructorsConstructorDescriptionTextElement(String text) Creates a new instance of TextElement escaping the html/xml parts and transform \n in "line break"TextElement(String text, boolean cr2br, boolean space2nbsp) Creates a new instance of TextElement -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ecs.StringElementaddElement(String text) Transform the text to htmlMethods inherited from class org.apache.ecs.StringElement
addElement, addElement, addElement, createEndTag, createStartTag, removeElement, resetMethods inherited from class org.apache.ecs.ConcreteElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, clone, elements, getElement, isEmpty, output, output, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistryMethods inherited from class org.apache.ecs.ElementAttributes
addAttribute, addAttribute, addAttribute, addAttribute, attributes, getAttribute, getAttributeEqualitySign, getAttributeFilter, getAttributeFilterState, getAttributeQuote, getAttributeQuoteChar, hasAttribute, removeAttribute, setAttributeEqualitySign, setAttributeFilter, setAttributeFilterState, setAttributeQuote, setAttributeQuoteChar, setClass, setDir, setID, setLang, setStyle, setTitleMethods inherited from class org.apache.ecs.GenericElement
alterCase, getBeginEndModifier, getBeginEndModifierDefined, getBeginStartModifier, getBeginStartModifierDefined, getCase, getCodeSet, getElementHashEntry, getElementType, getEndEndModifier, getEndEndModifierDefined, getEndStartModifier, getEndStartModifierDefined, getEndTagChar, getFilter, getFilterState, getNeedClosingTag, getNeedLineBreak, getPrettyPrint, getStartTagChar, getTabLevel, getTagPosition, getTagText, getVersion, putTabs, putTabs, removeBeginEndModifier, removeBeginStartModifier, removeEndEndModifier, removeEndStartModifier, setBeginEndModifier, setBeginModifier, setBeginModifier, setBeginStartModifier, setCase, setCodeSet, setElementType, setEndEndModifier, setEndModifier, setEndModifier, setEndStartModifier, setEndTagChar, setFilter, setFilterState, setNeedClosingTag, setPrettyPrint, setStartTagChar, setTabLevel, setTagPosition, setTagText, toString, toString
-
Constructor Details
-
TextElement
Creates a new instance of TextElement escaping the html/xml parts and transform \n in "line break"- Parameters:
text- The text to add
-
TextElement
Creates a new instance of TextElement- Parameters:
text- The text to addcr2br- Boolean value indicating the cr2brspace2nbsp- Boolean value indicating space2nbsp
-
-
Method Details
-
addElement
- Overrides:
addElementin classorg.apache.ecs.StringElement
-
text2html
Transform the text to html- Parameters:
text- The text to transform- Returns:
- The transformed text
-