Class Group


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

      • Group_java_sourceCodeID

        public static final java.lang.String Group_java_sourceCodeID
        See Also:
        Constant Field Values
      • Group_java_copyright

        public static final java.lang.String Group_java_copyright
    • Constructor Detail

      • Group

        public Group​(java.lang.String name,
                     java.lang.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 Detail

      • fromXml

        public static Group fromXml​(org.w3c.dom.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 org.w3c.dom.Element toXml​(org.w3c.dom.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 java.lang.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 java.lang.String getName()
        Returns the name of this Group.
        Returns:
        the name of this Group as a String.
      • setName

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

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

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