Class IdentityConstraint

    • Field Detail

      • type

        protected short type
        type
      • fNamespace

        protected final String fNamespace
        target namespace
      • fIdentityConstraintName

        protected final String fIdentityConstraintName
        Identity constraint name.
      • fElementName

        protected final String fElementName
        name of owning element
      • fSelector

        protected Selector fSelector
        Selector.
      • fFieldCount

        protected int fFieldCount
        Field count.
      • fFields

        protected Field[] fFields
        Fields.
      • fNumAnnotations

        protected int fNumAnnotations
    • Constructor Detail

      • IdentityConstraint

        protected IdentityConstraint​(String namespace,
                                     String identityConstraintName,
                                     String elemName)
        Default constructor.
    • Method Detail

      • getIdentityConstraintName

        public String getIdentityConstraintName()
        Returns the identity constraint name.
      • setSelector

        public void setSelector​(Selector selector)
        Sets the selector.
      • getSelector

        public Selector getSelector()
        Returns the selector.
      • addField

        public void addField​(Field field)
        Adds a field.
      • getFieldCount

        public int getFieldCount()
        Returns the field count.
      • getFieldAt

        public Field getFieldAt​(int index)
        Returns the field at the specified index.
      • getElementName

        public String getElementName()
      • toString

        public String toString()
        Returns a string representation of this object.
        Overrides:
        toString in class Object
      • getType

        public short getType()
        Get the type of the object, i.e ELEMENT_DECLARATION.
        Specified by:
        getType in interface XSObject
      • getName

        public String getName()
        The name of this XSObject depending on the XSObject type.
        Specified by:
        getName in interface XSObject
      • getNamespace

        public String getNamespace()
        The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.
        Specified by:
        getNamespace in interface XSObject
      • getCategory

        public short getCategory()
        {identity-constraint category} One of key, keyref or unique.
        Specified by:
        getCategory in interface XSIDCDefinition
      • getRefKey

        public XSIDCDefinition getRefKey()
        {referenced key} Required if {identity-constraint category} is keyref, forbidden otherwise. An identity-constraint definition with {identity-constraint category} equal to key or unique.
        Specified by:
        getRefKey in interface XSIDCDefinition