org.exolab.castor.builder.binding

Class FieldType

public class FieldType extends Object implements Serializable

This type represents the binding for class member. It allows the definition of its name and java type as well as an implementation of FieldHandler to help the Marshalling framework in handling that member. Defining a validator is also possible. The names given for the validator and the fieldHandler must be fully qualified

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

Constructor Summary
FieldType()
Method Summary
voiddeleteWrapper()
FieldTypeCollectionTypegetCollection()
Returns the value of field 'collection'.
StringgetHandler()
Returns the value of field 'handler'.
StringgetJavaType()
Returns the value of field 'javaType'.
StringgetName()
Returns the value of field 'name'.
StringgetValidator()
Returns the value of field 'validator'.
booleangetWrapper()
Returns the value of field 'wrapper'.
booleanhasWrapper()
booleanisValid()
voidmarshal(Writer out)
voidmarshal(ContentHandler handler)
voidsetCollection(FieldTypeCollectionType collection)
Sets the value of field 'collection'.
voidsetHandler(String handler)
Sets the value of field 'handler'.
voidsetJavaType(String javaType)
Sets the value of field 'javaType'.
voidsetName(String name)
Sets the value of field 'name'.
voidsetValidator(String validator)
Sets the value of field 'validator'.
voidsetWrapper(boolean wrapper)
Sets the value of field 'wrapper'.
static FieldTypeunmarshalFieldType(Reader reader)
voidvalidate()

Constructor Detail

FieldType

public FieldType()

Method Detail

deleteWrapper

public void deleteWrapper()

getCollection

public FieldTypeCollectionType getCollection()
Returns the value of field 'collection'.

Returns: the value of field 'collection'.

getHandler

public String getHandler()
Returns the value of field 'handler'.

Returns: the value of field 'handler'.

getJavaType

public String getJavaType()
Returns the value of field 'javaType'.

Returns: the value of field 'javaType'.

getName

public String getName()
Returns the value of field 'name'.

Returns: the value of field 'name'.

getValidator

public String getValidator()
Returns the value of field 'validator'.

Returns: the value of field 'validator'.

getWrapper

public boolean getWrapper()
Returns the value of field 'wrapper'.

Returns: the value of field 'wrapper'.

hasWrapper

public boolean hasWrapper()

isValid

public boolean isValid()

marshal

public void marshal(Writer out)

Parameters: out

marshal

public void marshal(ContentHandler handler)

Parameters: handler

setCollection

public void setCollection(FieldTypeCollectionType collection)
Sets the value of field 'collection'.

Parameters: collection the value of field 'collection'.

setHandler

public void setHandler(String handler)
Sets the value of field 'handler'.

Parameters: handler the value of field 'handler'.

setJavaType

public void setJavaType(String javaType)
Sets the value of field 'javaType'.

Parameters: javaType the value of field 'javaType'.

setName

public void setName(String name)
Sets the value of field 'name'.

Parameters: name the value of field 'name'.

setValidator

public void setValidator(String validator)
Sets the value of field 'validator'.

Parameters: validator the value of field 'validator'.

setWrapper

public void setWrapper(boolean wrapper)
Sets the value of field 'wrapper'.

Parameters: wrapper the value of field 'wrapper'.

unmarshalFieldType

public static FieldType unmarshalFieldType(Reader reader)

Parameters: reader

validate

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