org.exolab.castor.builder.types

Class XSClass

public class XSClass extends XSType

The XML Schema user-defined archetype

Version: $Revision: 5951 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $

Author: Keith Visco

Constructor Summary
XSClass(JClass jClass)
Creates a new XSClass with the given JClass reference
XSClass(JClass jClass, String schemaTypeName)
Creates a new XSClass with the given JClass reference
Method Summary
JTypegetJType()
Returns the JType that this XSType represents
StringgetName()
voidsetFacets(SimpleType simpleType)
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.

Constructor Detail

XSClass

public XSClass(JClass jClass)
Creates a new XSClass with the given JClass reference

Parameters: jClass the JClass type of this XSClass

XSClass

public XSClass(JClass jClass, String schemaTypeName)
Creates a new XSClass with the given JClass reference

Parameters: jClass the JClass associated with this XSType schemaTypeName The XML Schema type name

Method Detail

getJType

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

Returns: the JType that this XSType represents

getName

public String getName()

setFacets

public void setFacets(SimpleType simpleType)

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-2006. All rights reserved http://www.intalio.com