Class AttributeGT

  • All Implemented Interfaces:
    Attribute

    public class AttributeGT
    extends Object
    implements Attribute
    Author:
    dzwiers
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributeGT​(String id, String name, URI namespace, SimpleType type, int use, String defaulT, String fixed, boolean form)
      Creates a new AttributeGT object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getDefault()
      This is intended to imitate the default value option provided in the declaration of an XML Schema attribute.
      String getFixed()
      This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.
      String getId()
      The Schema ID for this attribute definition.
      String getName()
      The name of the attribute specified if one was provided in the attribute declaration
      URI getNamespace()  
      SimpleType getSimpleType()
      Provides a reference to the simpleType which defines the data type of this attribute.
      int getUse()
      Attributes only have three options for the number or occurences: none, once, optionally once.
      boolean isForm()
      Intended to represent the form of an XML attribute.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttributeGT

        public AttributeGT​(String id,
                           String name,
                           URI namespace,
                           SimpleType type,
                           int use,
                           String defaulT,
                           String fixed,
                           boolean form)
        Creates a new AttributeGT object.
    • Method Detail

      • getDefault

        public String getDefault()
        Description copied from interface: Attribute
        This is intended to imitate the default value option provided in the declaration of an XML Schema attribute.
        Specified by:
        getDefault in interface Attribute
        Returns:
        Default Value as a String or Null
        See Also:
        Attribute.getDefault()
      • getFixed

        public String getFixed()
        Description copied from interface: Attribute
        This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.
        Specified by:
        getFixed in interface Attribute
        Returns:
        Fixed Value as a String or Null
        See Also:
        Attribute.getFixed()
      • isForm

        public boolean isForm()
        Description copied from interface: Attribute
        Intended to represent the form of an XML attribute. This method should return True when the attribute is "qualified".
        Specified by:
        isForm in interface Attribute
        See Also:
        Attribute.isForm()
      • getName

        public String getName()
        Description copied from interface: Attribute
        The name of the attribute specified if one was provided in the attribute declaration
        Specified by:
        getName in interface Attribute
        See Also:
        Attribute.getName()
      • getUse

        public int getUse()
        Description copied from interface: Attribute
        Attributes only have three options for the number or occurences: none, once, optionally once. This method returns the mask which represents the use of this attribute.
        Specified by:
        getUse in interface Attribute
        See Also:
        Attribute.getUse()