org.exolab.castor.mapping.xml

Class BindXml

public class BindXml extends Object implements Serializable

The 'bind-xml' element is used for specifying XML specific databinding properties and behavior for a specific field. 'bind-xml' may only appear as a child of a 'field' element.

Version: $Revision: 1.2 $ $Date: 2003/03/08 07:39:57 $

Constructor Summary
BindXml()
Method Summary
voiddeleteReference()
Method deleteReference
voiddeleteTransient()
Method deleteTransient
BindXmlAutoNamingTypegetAutoNaming()
Returns the value of field 'autoNaming'.
StringgetLocation()
Returns the value of field 'location'.
StringgetMatches()
Returns the value of field 'matches'.
StringgetName()
Returns the value of field 'name'.
BindXmlNodeTypegetNode()
Returns the value of field 'node'.
StringgetQNamePrefix()
Returns the value of field 'QNamePrefix'.
booleangetReference()
Returns the value of field 'reference'.
booleangetTransient()
Returns the value of field 'transient'.
StringgetType()
Returns the value of field 'type'.
booleanhasReference()
Method hasReference
booleanhasTransient()
Method hasTransient
booleanisValid()
Method isValid
voidmarshal(Writer out)
Method marshal
voidmarshal(ContentHandler handler)
Method marshal
voidsetAutoNaming(BindXmlAutoNamingType autoNaming)
Sets the value of field 'autoNaming'.
voidsetLocation(String location)
Sets the value of field 'location'.
voidsetMatches(String matches)
Sets the value of field 'matches'.
voidsetName(String name)
Sets the value of field 'name'.
voidsetNode(BindXmlNodeType node)
Sets the value of field 'node'.
voidsetQNamePrefix(String QNamePrefix)
Sets the value of field 'QNamePrefix'.
voidsetReference(boolean reference)
Sets the value of field 'reference'.
voidsetTransient(boolean _transient)
Sets the value of field 'transient'.
voidsetType(String type)
Sets the value of field 'type'.
static BindXmlunmarshal(Reader reader)
Method unmarshal
voidvalidate()
Method validate

Constructor Detail

BindXml

public BindXml()

Method Detail

deleteReference

public void deleteReference()
Method deleteReference

deleteTransient

public void deleteTransient()
Method deleteTransient

getAutoNaming

public BindXmlAutoNamingType getAutoNaming()
Returns the value of field 'autoNaming'. The field 'autoNaming' has the following description: Allows specifying how Castor should automatically determines the XML name of this field when no name has been specified. In most cases the XML name is determined by using the field name, but in some cases the user may want to use the Class name of the field type. This attribute allows choosing between the two approaches. If this attribute is not specified, the field name is used as the XML name.

Returns: the value of field 'autoNaming'.

getLocation

public String getLocation()
Returns the value of field 'location'. The field 'location' has the following description: Allows specifying a nested location path for this field, the value should just be a simplified XPath like value where names are separated by "/".

Returns: the value of field 'location'.

getMatches

public String getMatches()
Returns the value of field 'matches'.

Returns: the value of field 'matches'.

getName

public String getName()
Returns the value of field 'name'. The field 'name' has the following description: An optional attribute used for specifying the XML name for the field associated with the 'bind-xml' element.

Returns: the value of field 'name'.

getNode

public BindXmlNodeType getNode()
Returns the value of field 'node'.

Returns: the value of field 'node'.

getQNamePrefix

public String getQNamePrefix()
Returns the value of field 'QNamePrefix'.

Returns: the value of field 'QNamePrefix'.

getReference

public boolean getReference()
Returns the value of field 'reference'.

Returns: the value of field 'reference'.

getTransient

public boolean getTransient()
Returns the value of field 'transient'.

Returns: the value of field 'transient'.

getType

public String getType()
Returns the value of field 'type'.

Returns: the value of field 'type'.

hasReference

public boolean hasReference()
Method hasReference

hasTransient

public boolean hasTransient()
Method hasTransient

isValid

public boolean isValid()
Method isValid

marshal

public void marshal(Writer out)
Method marshal

Parameters: out

marshal

public void marshal(ContentHandler handler)
Method marshal

Parameters: handler

setAutoNaming

public void setAutoNaming(BindXmlAutoNamingType autoNaming)
Sets the value of field 'autoNaming'. The field 'autoNaming' has the following description: Allows specifying how Castor should automatically determines the XML name of this field when no name has been specified. In most cases the XML name is determined by using the field name, but in some cases the user may want to use the Class name of the field type. This attribute allows choosing between the two approaches. If this attribute is not specified, the field name is used as the XML name.

Parameters: autoNaming the value of field 'autoNaming'.

setLocation

public void setLocation(String location)
Sets the value of field 'location'. The field 'location' has the following description: Allows specifying a nested location path for this field, the value should just be a simplified XPath like value where names are separated by "/".

Parameters: location the value of field 'location'.

setMatches

public void setMatches(String matches)
Sets the value of field 'matches'.

Parameters: matches the value of field 'matches'.

setName

public void setName(String name)
Sets the value of field 'name'. The field 'name' has the following description: An optional attribute used for specifying the XML name for the field associated with the 'bind-xml' element.

Parameters: name the value of field 'name'.

setNode

public void setNode(BindXmlNodeType node)
Sets the value of field 'node'.

Parameters: node the value of field 'node'.

setQNamePrefix

public void setQNamePrefix(String QNamePrefix)
Sets the value of field 'QNamePrefix'.

Parameters: QNamePrefix the value of field 'QNamePrefix'.

setReference

public void setReference(boolean reference)
Sets the value of field 'reference'.

Parameters: reference the value of field 'reference'.

setTransient

public void setTransient(boolean _transient)
Sets the value of field 'transient'.

Parameters: _transient transient the value of field 'transient'.

setType

public void setType(String type)
Sets the value of field 'type'.

Parameters: type the value of field 'type'.

unmarshal

public static BindXml unmarshal(Reader reader)
Method unmarshal

Parameters: reader

validate

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