org.exolab.castor.builder.binding

Class ClassType

public class ClassType extends Object implements Serializable

This type gathers the needed information to generate a Java Class from a binding file. Options such as generating the equals method, using wrapper classes for primitives or using bound properties can be defined via that element. When defined locally the options override the values defined in the castor.properties file.

Version: $Revision: 1.2 $ $Date: 2005/03/05 13:41:43 $

Constructor Summary
ClassType()
Method Summary
voidaddImplements(String vImplements)
voidaddImplements(int index, String vImplements)
voiddeleteAbstract()
voiddeleteBound()
voiddeleteEquals()
voiddeleteFinal()
EnumerationenumerateImplements()
booleangetAbstract()
Returns the value of field 'abstract'.
booleangetBound()
Returns the value of field 'bound'.
booleangetEquals()
Returns the value of field 'equals'.
StringgetExtends()
Returns the value of field 'extends'.
booleangetFinal()
Returns the value of field 'final'.
StringgetImplements(int index)
String[]getImplements()
intgetImplementsCount()
StringgetName()
Returns the value of field 'name'.
StringgetPackage()
Returns the value of field 'package'.
booleanhasAbstract()
booleanhasBound()
booleanhasEquals()
booleanhasFinal()
booleanisValid()
voidmarshal(Writer out)
voidmarshal(ContentHandler handler)
voidremoveAllImplements()
StringremoveImplements(int index)
voidsetAbstract(boolean _abstract)
Sets the value of field 'abstract'.
voidsetBound(boolean bound)
Sets the value of field 'bound'.
voidsetEquals(boolean equals)
Sets the value of field 'equals'.
voidsetExtends(String _extends)
Sets the value of field 'extends'.
voidsetFinal(boolean _final)
Sets the value of field 'final'.
voidsetImplements(int index, String vImplements)
voidsetImplements(String[] _implementsArray)
voidsetName(String name)
Sets the value of field 'name'.
voidsetPackage(String _package)
Sets the value of field 'package'.
static ClassTypeunmarshalClassType(Reader reader)
voidvalidate()

Constructor Detail

ClassType

public ClassType()

Method Detail

addImplements

public void addImplements(String vImplements)

Parameters: vImplements

addImplements

public void addImplements(int index, String vImplements)

Parameters: index vImplements

deleteAbstract

public void deleteAbstract()

deleteBound

public void deleteBound()

deleteEquals

public void deleteEquals()

deleteFinal

public void deleteFinal()

enumerateImplements

public Enumeration enumerateImplements()

getAbstract

public boolean getAbstract()
Returns the value of field 'abstract'.

Returns: the value of field 'abstract'.

getBound

public boolean getBound()
Returns the value of field 'bound'.

Returns: the value of field 'bound'.

getEquals

public boolean getEquals()
Returns the value of field 'equals'.

Returns: the value of field 'equals'.

getExtends

public String getExtends()
Returns the value of field 'extends'.

Returns: the value of field 'extends'.

getFinal

public boolean getFinal()
Returns the value of field 'final'.

Returns: the value of field 'final'.

getImplements

public String getImplements(int index)

Parameters: index

getImplements

public String[] getImplements()

getImplementsCount

public int getImplementsCount()

getName

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

Returns: the value of field 'name'.

getPackage

public String getPackage()
Returns the value of field 'package'.

Returns: the value of field 'package'.

hasAbstract

public boolean hasAbstract()

hasBound

public boolean hasBound()

hasEquals

public boolean hasEquals()

hasFinal

public boolean hasFinal()

isValid

public boolean isValid()

marshal

public void marshal(Writer out)

Parameters: out

marshal

public void marshal(ContentHandler handler)

Parameters: handler

removeAllImplements

public void removeAllImplements()

removeImplements

public String removeImplements(int index)

Parameters: index

setAbstract

public void setAbstract(boolean _abstract)
Sets the value of field 'abstract'.

Parameters: _abstract the value of field 'abstract'.

setBound

public void setBound(boolean bound)
Sets the value of field 'bound'.

Parameters: bound the value of field 'bound'.

setEquals

public void setEquals(boolean equals)
Sets the value of field 'equals'.

Parameters: equals the value of field 'equals'.

setExtends

public void setExtends(String _extends)
Sets the value of field 'extends'.

Parameters: _extends the value of field 'extends'.

setFinal

public void setFinal(boolean _final)
Sets the value of field 'final'.

Parameters: _final the value of field 'final'.

setImplements

public void setImplements(int index, String vImplements)

Parameters: index vImplements

setImplements

public void setImplements(String[] _implementsArray)

Parameters: _implementsArray

setName

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

Parameters: name the value of field 'name'.

setPackage

public void setPackage(String _package)
Sets the value of field 'package'.

Parameters: _package the value of field 'package'.

unmarshalClassType

public static ClassType unmarshalClassType(Reader reader)

Parameters: reader

validate

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