Package overit.geocall.ui
Class EntitySet
java.lang.Object
org.apache.ecs.GenericElement
org.apache.ecs.ElementAttributes
org.apache.ecs.ConcreteElement
org.apache.ecs.MultiPartElement
overit.geocall.ui.EntitySet
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.ecs.Attributes,org.apache.ecs.Element,org.apache.ecs.ElementRegistry
- Direct Known Subclasses:
DummyEntitySet
public class EntitySet
extends org.apache.ecs.MultiPartElement
This class extends
This class implements a
MultiPartElement.This class implements a
Element objects and tags wrapper.For example, it's used to represent the set of Html Element of an html page.- See Also:
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aElementto the wrapper's set.
The element will be identicifated by its name.voidadd(org.apache.ecs.Element element) Adds anElementto the wrapper's set.
The element will be identicifated by itself or by its name if it's anNamedElement.voidadd(NamedElement element) Adds aNamedElementto the wrapper's set.
The element will be identicifated by its name.voidAdds anEntitySetto the wrapper's set.voidAdds a tag.getMap()Gets the elements set.booleanGets if the wrapper has the tag.voidoutput(OutputStream os) Streams in output all the element contained on the wrapper.voidoutput(PrintWriter pw) Prints in output all the element contained on the wrapper.voidClear all inserted tags.intsize()Gets the set size.Methods inherited from class org.apache.ecs.ConcreteElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, clone, elements, getElement, isEmpty, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistryMethods inherited from class org.apache.ecs.ElementAttributes
addAttribute, addAttribute, addAttribute, addAttribute, attributes, createStartTag, 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, createEndTag, 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
-
Field Details
-
_hm
-
_tags
-
-
Constructor Details
-
EntitySet
public EntitySet()
-
-
Method Details
-
add
Adds aNamedElementto the wrapper's set.
The element will be identicifated by its name.- Parameters:
element- TheNamedElementto add.
-
add
public void add(org.apache.ecs.Element element) Adds anElementto the wrapper's set.
The element will be identicifated by itself or by its name if it's anNamedElement.- Parameters:
element- TheElementto add.
-
add
Adds aElementto the wrapper's set.
The element will be identicifated by its name.- Parameters:
name- The name that identify the Element.element- TheNamedElementto add.
-
add
Adds anEntitySetto the wrapper's set.- Parameters:
es- The entire set to add.
-
getMap
Gets the elements set.- Returns:
- The elements
HashMapset.
-
output
Prints in output all the element contained on the wrapper.- Specified by:
outputin interfaceorg.apache.ecs.Element- Overrides:
outputin classorg.apache.ecs.ConcreteElement- Parameters:
pw- ThePrintWriterwith which print the objects.
-
size
public int size()Gets the set size.- Returns:
- The size of the set.
-
output
Streams in output all the element contained on the wrapper.- Specified by:
outputin interfaceorg.apache.ecs.Element- Overrides:
outputin classorg.apache.ecs.ConcreteElement- Parameters:
os- TheOutputStreamwith which stream the objects in output.
-
addTag
Adds a tag.- Parameters:
name- The tag's name to add.
-
hasTag
Gets if the wrapper has the tag.- Parameters:
name- The tag name's you are looking for.- Returns:
trueif there's the tag you are looking for,falseotherwise.
-
resetTags
public void resetTags()Clear all inserted tags.
-