org.exolab.castor.mapping.xml

Class BindXml

Implemented Interfaces:
java.io.Serializable

public class BindXml
extends java.lang.Object
implements java.io.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 $
See Also:
Serialized Form

Constructor Summary

BindXml()

Method Summary

void
deleteReference()
Method deleteReference
void
deleteTransient()
Method deleteTransient
BindXmlAutoNamingType
getAutoNaming()
Returns the value of field 'autoNaming'.
java.lang.String
getLocation()
Returns the value of field 'location'.
java.lang.String
getMatches()
Returns the value of field 'matches'.
java.lang.String
getName()
Returns the value of field 'name'.
BindXmlNodeType
getNode()
Returns the value of field 'node'.
java.lang.String
getQNamePrefix()
Returns the value of field 'QNamePrefix'.
boolean
getReference()
Returns the value of field 'reference'.
boolean
getTransient()
Returns the value of field 'transient'.
java.lang.String
getType()
Returns the value of field 'type'.
boolean
hasReference()
Method hasReference
boolean
hasTransient()
Method hasTransient
boolean
isValid()
Method isValid
void
marshal(java.io.Writer out)
Method marshal
void
marshal(org.xml.sax.ContentHandler handler)
Method marshal
void
setAutoNaming(BindXmlAutoNamingType autoNaming)
Sets the value of field 'autoNaming'.
void
setLocation(java.lang.String location)
Sets the value of field 'location'.
void
setMatches(java.lang.String matches)
Sets the value of field 'matches'.
void
setName(java.lang.String name)
Sets the value of field 'name'.
void
setNode(BindXmlNodeType node)
Sets the value of field 'node'.
void
setQNamePrefix(java.lang.String QNamePrefix)
Sets the value of field 'QNamePrefix'.
void
setReference(boolean reference)
Sets the value of field 'reference'.
void
setTransient(boolean _transient)
Sets the value of field 'transient'.
void
setType(java.lang.String type)
Sets the value of field 'type'.
static BindXml
unmarshal(java.io.Reader reader)
Method unmarshal
void
validate()
Method validate

Constructor Details

BindXml

public BindXml()

Method Details

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 java.lang.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 java.lang.String getMatches()
Returns the value of field 'matches'.
Returns:
the value of field 'matches'.

getName

public java.lang.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 java.lang.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 java.lang.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(java.io.Writer out)
            throws MarshalException,
                   ValidationException
Method marshal
Parameters:
out -

marshal

public void marshal(org.xml.sax.ContentHandler handler)
            throws java.io.IOException,
                   MarshalException,
                   ValidationException
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(java.lang.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(java.lang.String matches)
Sets the value of field 'matches'.
Parameters:
matches - the value of field 'matches'.

setName

public void setName(java.lang.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(java.lang.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 -

setType

public void setType(java.lang.String type)
Sets the value of field 'type'.
Parameters:
type - the value of field 'type'.

unmarshal

public static BindXml unmarshal(java.io.Reader reader)
            throws MarshalException,
                   ValidationException
Method unmarshal
Parameters:
reader -

validate

public void validate()
            throws ValidationException
Method validate

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