Class KeyRef

  • All Implemented Interfaces:
    java.io.Serializable

    public class KeyRef
    extends IdentityConstraint
    A class that represents the XML Schema Identity Constraint: KeyRef.
    Version:
    $Revision: 6230 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
    Author:
    Keith Visco
    See Also:
    Serialized Form
    • Constructor Detail

      • KeyRef

        public KeyRef​(java.lang.String name,
                      java.lang.String refer)
               throws SchemaException
        Creates a new KeyRef Identity-Constraint.
        Parameters:
        name - the name for the IdentityConstraint. Must not be null.
        Throws:
        SchemaException - when name or refer are null.
    • Method Detail

      • getRefer

        public java.lang.String getRefer()
        Returns the refer field (the name of the key being referenced).
        Returns:
        the refer field (the name of the key being referenced).
      • setRefer

        public void setRefer​(java.lang.String refer)
                      throws SchemaException
        Sets the refer field (the name of the key being referenced).
        Parameters:
        refer - the name of the key to reference. Must not be null.
        Throws:
        SchemaException - when refer is null.
      • getStructureType

        public short getStructureType()
        Returns the type of this Schema Structure.
        Specified by:
        getStructureType in class IdentityConstraint
        Returns:
        the type of this Schema Structure.