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 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

    Fields
    Modifier and Type
    Field
    Description
    protected LinkedHashMap
     
    protected HashSet
     

    Fields inherited from class org.apache.ecs.GenericElement

    tabLevel

    Fields inherited from interface org.apache.ecs.Attributes

    NO_ATTRIBUTE_VALUE

    Fields inherited from interface org.apache.ecs.Element

    CENTER, LEFT, LOWERCASE, MIXEDCASE, RIGHT, UPPERCASE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(String name, org.apache.ecs.Element element)
    Adds a Element to the wrapper's set.
    The element will be identicifated by its name.
    void
    add(org.apache.ecs.Element element)
    Adds an Element to the wrapper's set.
    The element will be identicifated by itself or by its name if it's an NamedElement.
    void
    add(NamedElement element)
    Adds a NamedElement to the wrapper's set.
    The element will be identicifated by its name.
    void
    Adds an EntitySet to the wrapper's set.
    void
    addTag(String name)
    Adds a tag.
    Gets the elements set.
    boolean
    hasTag(String name)
    Gets if the wrapper has the tag.
    void
    Streams in output all the element contained on the wrapper.
    void
    Prints in output all the element contained on the wrapper.
    void
    Clear all inserted tags.
    int
    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, removeElementFromRegistry

    Methods 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, setTitle

    Methods 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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • EntitySet

      public EntitySet()
  • Method Details

    • add

      public void add(NamedElement element)
      Adds a NamedElement to the wrapper's set.
      The element will be identicifated by its name.
      Parameters:
      element - The NamedElement to add.
    • add

      public void add(org.apache.ecs.Element element)
      Adds an Element to the wrapper's set.
      The element will be identicifated by itself or by its name if it's an NamedElement.
      Parameters:
      element - The Element to add.
    • add

      public void add(String name, org.apache.ecs.Element element)
      Adds a Element to the wrapper's set.
      The element will be identicifated by its name.
      Parameters:
      name - The name that identify the Element.
      element - The NamedElement to add.
    • add

      public void add(EntitySet es)
      Adds an EntitySet to the wrapper's set.
      Parameters:
      es - The entire set to add.
    • getMap

      public HashMap getMap()
      Gets the elements set.
      Returns:
      The elements HashMap set.
    • output

      public void output(PrintWriter pw)
      Prints in output all the element contained on the wrapper.
      Specified by:
      output in interface org.apache.ecs.Element
      Overrides:
      output in class org.apache.ecs.ConcreteElement
      Parameters:
      pw - The PrintWriter with which print the objects.
    • size

      public int size()
      Gets the set size.
      Returns:
      The size of the set.
    • output

      public void output(OutputStream os)
      Streams in output all the element contained on the wrapper.
      Specified by:
      output in interface org.apache.ecs.Element
      Overrides:
      output in class org.apache.ecs.ConcreteElement
      Parameters:
      os - The OutputStream with which stream the objects in output.
    • addTag

      public void addTag(String name)
      Adds a tag.
      Parameters:
      name - The tag's name to add.
    • hasTag

      public boolean hasTag(String name)
      Gets if the wrapper has the tag.
      Parameters:
      name - The tag name's you are looking for.
      Returns:
      true if there's the tag you are looking for, false otherwise.
    • resetTags

      public void resetTags()
      Clear all inserted tags.