Class XSIdRefs


  • public class XSIdRefs
    extends XSListType
    A collection of IDREF type.
    Since:
    1.1
    Version:
    $Revision: 6729 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
    Author:
    Werner Guttmann
    • Field Detail

      • IDREFS_NAME

        public static final java.lang.String IDREFS_NAME
        Name of the IDREFS type.
        See Also:
        Constant Field Values
    • Constructor Detail

      • XSIdRefs

        public XSIdRefs​(java.lang.String colType,
                        boolean useJava50)
        Create a XSNMTokens instance.
        Parameters:
        colType - Type of collection to use.
        useJava50 - If true, the collection will be generated using Java 5 features such as generics.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of this XSType.
        Overrides:
        getName in class XSListType
        Returns:
        The name of this XSType.
      • getType

        public short getType()
        Returns the type of this XSType.
        Specified by:
        getType in class XSType
        Returns:
        the type of this XSType.
      • validationCode

        public void validationCode​(JSourceCode jsc,
                                   java.lang.String fixedValue,
                                   java.lang.String validatorInstanceName)
        Creates the validation code for an instance of this XSType. If necessary the validation code should create a newly configured TypeValidator, that should then be added to a FieldValidator instance whose name is provided.
        Specified by:
        validationCode in class XSType
        Parameters:
        jsc - The JSourceCode to fill in.
        fixedValue - A fixed value to use if any.
        validatorInstanceName - The name of the FieldValidator that the configured TypeValidator should be added to.