org.exolab.castor.builder.types

Class XSBoolean

public final class XSBoolean extends XSType

The boolean XML Schema datatype.

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

Author: Keith Visco

Constructor Summary
XSBoolean()
XSBoolean(boolean asWrapper)
Method Summary
StringcreateFromJavaObjectCode(String variableName)
Returns the String necessary to convert an Object to an instance of this XSType.
StringcreateToJavaObjectCode(String variableName)
Returns the String necessary to convert an instance of this XSType to an Object.
JTypegetJType()
Returns the JType that this XSType represents
voidsetFacets(SimpleType simpleType)
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Returns a JSourceCode that contains the validation method for this XSBoolean.

Constructor Detail

XSBoolean

public XSBoolean()

XSBoolean

public XSBoolean(boolean asWrapper)

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

createToJavaObjectCode

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

Parameters: variableName the name of the instance variable

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

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)
Returns a JSourceCode that contains the validation method for this XSBoolean.

Parameters: fixed a fixed value to use if any jsc the JSourceCode to fill in.

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