org.exolab.castor.builder.types

Class XSBinary

public final class XSBinary extends XSType

The binary XML Schema datatype. This class represents both hexBinary and base64Binary, no distinction is made between both types.

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

Author: Keith Visco

Constructor Summary
XSBinary(short type)
Method Summary
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

XSBinary

public XSBinary(short type)

Method Detail

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