Public Member Functions

org.exolab.castor.builder.types.XSBoolean Class Reference

Inheritance diagram for org.exolab.castor.builder.types.XSBoolean:
org.exolab.castor.builder.types.XSType

List of all members.

Public Member Functions

 XSBoolean ()
 XSBoolean (boolean asWrapper)
JType getJType ()
void setFacets (SimpleType simpleType)
String createToJavaObjectCode (String variableName)
String createFromJavaObjectCode (String variableName)
void validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)

Detailed Description

The boolean XML Schema datatype.

Author:
Keith Visco
Version:
Revision:
1.5
Date:
2004/02/24 20:35:36

Constructor & Destructor Documentation

org.exolab.castor.builder.types.XSBoolean.XSBoolean (  ) 
org.exolab.castor.builder.types.XSBoolean.XSBoolean ( boolean  asWrapper  ) 

Member Function Documentation

String org.exolab.castor.builder.types.XSBoolean.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

Reimplemented from org.exolab.castor.builder.types.XSType.

String org.exolab.castor.builder.types.XSBoolean.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

Reimplemented from org.exolab.castor.builder.types.XSType.

JType org.exolab.castor.builder.types.XSBoolean.getJType (  )  [virtual]

Returns the JType that this XSType represents

Returns:
the JType that this XSType represents

Implements org.exolab.castor.builder.types.XSType.

void org.exolab.castor.builder.types.XSBoolean.setFacets ( SimpleType  simpleType  )  [virtual]

Reads and sets the facets for XSType

Parameters:
simpleType the SimpleType containing the facets

Implements org.exolab.castor.builder.types.XSType.

void org.exolab.castor.builder.types.XSBoolean.validationCode ( JSourceCode  jsc,
String  fixedValue,
String  fieldValidatorInstanceName 
) [virtual]

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.

Implements org.exolab.castor.builder.types.XSType.

References org.exolab.javasource.JSourceCode.add(), and org.exolab.javasource.JSourceCode.append().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties