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 Details

  • Constructor Details

    • XSIdRefs

      public XSIdRefs(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 Details

    • getName

      public 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, String fixedValue, 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.