org.exolab.castor.mapping.xml
Class BindXml

java.lang.Object
  extended byorg.exolab.castor.mapping.xml.BindXml
All 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.6 $ $Date: 2002/01/18 22:57:33 $
See Also:
Serialized Form

Constructor Summary
BindXml()
           
 
Method Summary
 void deleteReference()
           
 AutoNamingType getAutoNaming()
          Returns the value of field 'autoNaming'.
 java.lang.String getMatches()
          Returns the value of field 'matches'.
 java.lang.String getName()
          Returns the value of field 'name'.
 NodeType 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'.
 java.lang.String getType()
          Returns the value of field 'type'.
 boolean hasReference()
           
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setAutoNaming(AutoNamingType autoNaming)
          Sets the value of field 'autoNaming'.
 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(NodeType 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 setType(java.lang.String type)
          Sets the value of field 'type'.
static BindXml unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindXml

public BindXml()
Method Detail

deleteReference

public void deleteReference()

getAutoNaming

public AutoNamingType 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'.

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 NodeType 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'.

getType

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

Returns:
the value of field 'type'.

hasReference

public boolean hasReference()

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws MarshalException,
                    ValidationException
Parameters:
out -
Throws:
MarshalException
ValidationException

marshal

public void marshal(org.xml.sax.DocumentHandler handler)
             throws MarshalException,
                    ValidationException
Parameters:
handler -
Throws:
MarshalException
ValidationException

setAutoNaming

public void setAutoNaming(AutoNamingType 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'.

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(NodeType 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'.

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
Parameters:
reader -
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Throws:
ValidationException


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