Class XSList

    • Constructor Detail

      • XSList

        public XSList​(java.lang.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 Detail

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

        public void setDerivedFromXSList​(boolean derivedFromXSList)
        Sets whether this XSList instance has been created as a result of a 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 definition.
        Parameters:
        derivedFromXSList - True if this XSList instance has been created as a result of a definition.