Class XSList


public final class XSList extends XSListType
A list type.
Version:
$Revision: 7398 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
Author:
Assaf Arkin, Keith Visco, Ralf Joachim
  • Field Details

  • Constructor Details

    • XSList

      public XSList(String colType, XSType contentType, boolean useJava50)
      Create a XSList.
      Parameters:
      colType - Type of collection to use.
      contentType - Type of the collection members.
      useJava50 - If true, the collection will be generated using Java 5 features such as generics.
  • Method Details

    • 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.
    • setDerivedFromXSList

      public void setDerivedFromXSList(boolean derivedFromXSList)
      Sets whether this XSList instance has been created as a result of a <xs:list> definition.
      Parameters:
      derivedFromXSList - A boolean value, true or false.
    • isDerivedFromXSList

      public boolean isDerivedFromXSList()
      Indicates whether this XSList instance has been created as a result of a <xs:list> definition.
      Parameters:
      derivedFromXSList - True if this XSList instance has been created as a result of a <xs:list> definition.