public class Group extends AttributeContainer
The Group structure contains attributes and a required name and optional type.
Version:
@VERSION@
  • Field Details

  • Constructor Details

    • Group

      public Group(String name, String type, Attribute[] attributes)
      Construct a Group object using a name, type and an array of Attribute objects.
      Parameters:
      name - the name of the Group object.
      type - the type of Group object.
      attributes - an array of Attributes for this Group object.
  • Method Details

    • fromXml

      public static Group fromXml(Element element)
      Create a Group object from XML (in the form of an org.w3c.dom.Element).
      Parameters:
      element - the element to create the Group object from.
      Returns:
      a Group object created from the XML element.
    • toXml

      public Element toXml(Document owner)
      Convert this Group object into XML (in the form of an org.w3c.dom.Element object).
      Overrides:
      toXml in class AttributeContainer
      Parameters:
      owner - an org.w3c.dom.Document object used to create the returned Element object.
      Returns:
      the XML representation (as an org.w3c.dom.Element object) of this Group object.
    • getElementName

      public String getElementName()
      Returns the name of this type of Element as a String.
      Returns:
      the name of this type of Element as a String.
    • getName

      public String getName()
      Returns the name of this Group.
      Returns:
      the name of this Group as a String.
    • setName

      public void setName(String name)
      Set the name of this Group.
      Parameters:
      name - the name of the Group as a String.
    • getType

      public String getType()
      Returns the type of this Group object.
      Returns:
      the type of this Group as a String.
    • setType

      public void setType(String type)
      Set the type of this Group.
      Parameters:
      type - the type of this group as a String.