org.exolab.castor.builder.types

Class XSList

public class XSList extends XSType

A list type....this will change soon

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:07:59 $

Author: Keith Visco

Field Summary
XSTypecontentType
intmaxSize
intminSize
Constructor Summary
XSList(XSType contentType)
Method Summary
XSTypegetContentType()
JTypegetJType()
Returns the JType that this XSType represents
intgetMaximumSize()
intgetMinimumSize()
voidsetFacets(SimpleType simpleType)
voidsetMaximumSize(int size)
voidsetMinimumSize(int size)
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.

Field Detail

contentType

XSType contentType

maxSize

int maxSize

minSize

int minSize

Constructor Detail

XSList

public XSList(XSType contentType)

Method Detail

getContentType

public XSType getContentType()

getJType

public JType getJType()
Returns the JType that this XSType represents

Returns: the JType that this XSType represents

getMaximumSize

public int getMaximumSize()

getMinimumSize

public int getMinimumSize()

setFacets

public void setFacets(SimpleType simpleType)

setMaximumSize

public void setMaximumSize(int size)

setMinimumSize

public void setMinimumSize(int size)

validationCode

public void validationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType. The validation code should if necessary create a newly configured TypeValidator, that should then be added to a FieldValidator instance whose name is provided.

Parameters: fixedValue a fixed value to use if any jsc the JSourceCode to fill in. fieldValidatorInstanceName the name of the FieldValidator that the configured TypeValidator should be added to.

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com