org.exolab.castor.builder.types

Class XSNCName

public final class XSNCName extends XSType

The XML Schema NCName type

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

Author: Keith Visco

Constructor Summary
XSNCName()
Method Summary
StringcreateFromJavaObjectCode(String variableName)
Returns the String necessary to convert an Object to an instance of this XSType.
JTypegetJType()
Returns the JType that this XSType represents
voidsetFacets(SimpleType simpleType)
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.

Constructor Detail

XSNCName

public XSNCName()

Method Detail

createFromJavaObjectCode

public String createFromJavaObjectCode(String variableName)
Returns the String necessary to convert an Object to an instance of this XSType. This method is really only useful for primitive types

Parameters: variableName the name of the Object

Returns: the String necessary to convert an Object to an instance of this XSType

getJType

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

Returns: the JType that this XSType represents

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