org.exolab.castor.builder.binding
Class Binding

java.lang.Object
  extended by org.exolab.castor.builder.binding.Binding
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExtendedBinding

public class Binding
extends java.lang.Object
implements java.io.Serializable

The root element that contains the different binding elements. The binding file is written from a schema point of view and follows the structure of an XML Schema. The root element can also be used to configure the default binding type.

Version:
$Revision: 1.2 $ $Date: 2005/03/05 13:41:43 $
See Also:
Serialized Form

Constructor Summary
Binding()
           
 
Method Summary
 void addAttributeBinding(ComponentBindingType vAttributeBinding)
           
 void addAttributeBinding(int index, ComponentBindingType vAttributeBinding)
           
 void addComplexTypeBinding(ComponentBindingType vComplexTypeBinding)
           
 void addComplexTypeBinding(int index, ComponentBindingType vComplexTypeBinding)
           
 void addElementBinding(ComponentBindingType vElementBinding)
           
 void addElementBinding(int index, ComponentBindingType vElementBinding)
           
 void addGroupBinding(ComponentBindingType vGroupBinding)
           
 void addGroupBinding(int index, ComponentBindingType vGroupBinding)
           
 void addInclude(IncludeType vInclude)
           
 void addInclude(int index, IncludeType vInclude)
           
 void addPackage(int index, PackageType vPackage)
           
 void addPackage(PackageType vPackage)
           
 java.util.Enumeration enumerateAttributeBinding()
           
 java.util.Enumeration enumerateComplexTypeBinding()
           
 java.util.Enumeration enumerateElementBinding()
           
 java.util.Enumeration enumerateGroupBinding()
           
 java.util.Enumeration enumerateInclude()
           
 java.util.Enumeration enumeratePackage()
           
 ComponentBindingType[] getAttributeBinding()
           
 ComponentBindingType getAttributeBinding(int index)
           
 int getAttributeBindingCount()
           
 ComponentBindingType[] getComplexTypeBinding()
           
 ComponentBindingType getComplexTypeBinding(int index)
           
 int getComplexTypeBindingCount()
           
 BindingType getDefaultBindingType()
          Returns the value of field 'defaultBindingType'.
 ComponentBindingType[] getElementBinding()
           
 ComponentBindingType getElementBinding(int index)
           
 int getElementBindingCount()
           
 ComponentBindingType[] getGroupBinding()
           
 ComponentBindingType getGroupBinding(int index)
           
 int getGroupBindingCount()
           
 IncludeType[] getInclude()
           
 IncludeType getInclude(int index)
           
 int getIncludeCount()
           
 NamingXMLType getNamingXML()
          Returns the value of field 'namingXML'.
 PackageType[] getPackage()
           
 PackageType getPackage(int index)
           
 int getPackageCount()
           
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllAttributeBinding()
           
 void removeAllComplexTypeBinding()
           
 void removeAllElementBinding()
           
 void removeAllGroupBinding()
           
 void removeAllInclude()
           
 void removeAllPackage()
           
 ComponentBindingType removeAttributeBinding(int index)
           
 ComponentBindingType removeComplexTypeBinding(int index)
           
 ComponentBindingType removeElementBinding(int index)
           
 ComponentBindingType removeGroupBinding(int index)
           
 IncludeType removeInclude(int index)
           
 PackageType removePackage(int index)
           
 void setAttributeBinding(ComponentBindingType[] attributeBindingArray)
           
 void setAttributeBinding(int index, ComponentBindingType vAttributeBinding)
           
 void setComplexTypeBinding(ComponentBindingType[] complexTypeBindingArray)
           
 void setComplexTypeBinding(int index, ComponentBindingType vComplexTypeBinding)
           
 void setDefaultBindingType(BindingType defaultBindingType)
          Sets the value of field 'defaultBindingType'.
 void setElementBinding(ComponentBindingType[] elementBindingArray)
           
 void setElementBinding(int index, ComponentBindingType vElementBinding)
           
 void setGroupBinding(ComponentBindingType[] groupBindingArray)
           
 void setGroupBinding(int index, ComponentBindingType vGroupBinding)
           
 void setInclude(IncludeType[] includeArray)
           
 void setInclude(int index, IncludeType vInclude)
           
 void setNamingXML(NamingXMLType namingXML)
          Sets the value of field 'namingXML'.
 void setPackage(int index, PackageType vPackage)
           
 void setPackage(PackageType[] _packageArray)
           
static Binding unmarshalBinding(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

Binding

public Binding()
Method Detail

addAttributeBinding

public void addAttributeBinding(ComponentBindingType vAttributeBinding)
                         throws java.lang.IndexOutOfBoundsException
Parameters:
vAttributeBinding -
Throws:
java.lang.IndexOutOfBoundsException

addAttributeBinding

public void addAttributeBinding(int index,
                                ComponentBindingType vAttributeBinding)
                         throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAttributeBinding -
Throws:
java.lang.IndexOutOfBoundsException

addComplexTypeBinding

public void addComplexTypeBinding(ComponentBindingType vComplexTypeBinding)
                           throws java.lang.IndexOutOfBoundsException
Parameters:
vComplexTypeBinding -
Throws:
java.lang.IndexOutOfBoundsException

addComplexTypeBinding

public void addComplexTypeBinding(int index,
                                  ComponentBindingType vComplexTypeBinding)
                           throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vComplexTypeBinding -
Throws:
java.lang.IndexOutOfBoundsException

addElementBinding

public void addElementBinding(ComponentBindingType vElementBinding)
                       throws java.lang.IndexOutOfBoundsException
Parameters:
vElementBinding -
Throws:
java.lang.IndexOutOfBoundsException

addElementBinding

public void addElementBinding(int index,
                              ComponentBindingType vElementBinding)
                       throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vElementBinding -
Throws:
java.lang.IndexOutOfBoundsException

addGroupBinding

public void addGroupBinding(ComponentBindingType vGroupBinding)
                     throws java.lang.IndexOutOfBoundsException
Parameters:
vGroupBinding -
Throws:
java.lang.IndexOutOfBoundsException

addGroupBinding

public void addGroupBinding(int index,
                            ComponentBindingType vGroupBinding)
                     throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vGroupBinding -
Throws:
java.lang.IndexOutOfBoundsException

addInclude

public void addInclude(IncludeType vInclude)
                throws java.lang.IndexOutOfBoundsException
Parameters:
vInclude -
Throws:
java.lang.IndexOutOfBoundsException

addInclude

public void addInclude(int index,
                       IncludeType vInclude)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vInclude -
Throws:
java.lang.IndexOutOfBoundsException

addPackage

public void addPackage(PackageType vPackage)
                throws java.lang.IndexOutOfBoundsException
Parameters:
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

addPackage

public void addPackage(int index,
                       PackageType vPackage)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

enumerateAttributeBinding

public java.util.Enumeration enumerateAttributeBinding()

enumerateComplexTypeBinding

public java.util.Enumeration enumerateComplexTypeBinding()

enumerateElementBinding

public java.util.Enumeration enumerateElementBinding()

enumerateGroupBinding

public java.util.Enumeration enumerateGroupBinding()

enumerateInclude

public java.util.Enumeration enumerateInclude()

enumeratePackage

public java.util.Enumeration enumeratePackage()

getAttributeBinding

public ComponentBindingType getAttributeBinding(int index)
                                         throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getAttributeBinding

public ComponentBindingType[] getAttributeBinding()

getAttributeBindingCount

public int getAttributeBindingCount()

getComplexTypeBinding

public ComponentBindingType getComplexTypeBinding(int index)
                                           throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getComplexTypeBinding

public ComponentBindingType[] getComplexTypeBinding()

getComplexTypeBindingCount

public int getComplexTypeBindingCount()

getDefaultBindingType

public BindingType getDefaultBindingType()
Returns the value of field 'defaultBindingType'.

Returns:
the value of field 'defaultBindingType'.

getElementBinding

public ComponentBindingType getElementBinding(int index)
                                       throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getElementBinding

public ComponentBindingType[] getElementBinding()

getElementBindingCount

public int getElementBindingCount()

getGroupBinding

public ComponentBindingType getGroupBinding(int index)
                                     throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getGroupBinding

public ComponentBindingType[] getGroupBinding()

getGroupBindingCount

public int getGroupBindingCount()

getInclude

public IncludeType getInclude(int index)
                       throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getInclude

public IncludeType[] getInclude()

getIncludeCount

public int getIncludeCount()

getNamingXML

public NamingXMLType getNamingXML()
Returns the value of field 'namingXML'.

Returns:
the value of field 'namingXML'.

getPackage

public PackageType getPackage(int index)
                       throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getPackage

public PackageType[] getPackage()

getPackageCount

public int getPackageCount()

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.ContentHandler handler)
             throws java.io.IOException,
                    MarshalException,
                    ValidationException
Parameters:
handler -
Throws:
java.io.IOException
MarshalException
ValidationException

removeAllAttributeBinding

public void removeAllAttributeBinding()

removeAllComplexTypeBinding

public void removeAllComplexTypeBinding()

removeAllElementBinding

public void removeAllElementBinding()

removeAllGroupBinding

public void removeAllGroupBinding()

removeAllInclude

public void removeAllInclude()

removeAllPackage

public void removeAllPackage()

removeAttributeBinding

public ComponentBindingType removeAttributeBinding(int index)
Parameters:
index -

removeComplexTypeBinding

public ComponentBindingType removeComplexTypeBinding(int index)
Parameters:
index -

removeElementBinding

public ComponentBindingType removeElementBinding(int index)
Parameters:
index -

removeGroupBinding

public ComponentBindingType removeGroupBinding(int index)
Parameters:
index -

removeInclude

public IncludeType removeInclude(int index)
Parameters:
index -

removePackage

public PackageType removePackage(int index)
Parameters:
index -

setAttributeBinding

public void setAttributeBinding(int index,
                                ComponentBindingType vAttributeBinding)
                         throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAttributeBinding -
Throws:
java.lang.IndexOutOfBoundsException

setAttributeBinding

public void setAttributeBinding(ComponentBindingType[] attributeBindingArray)
Parameters:
attributeBindingArray -

setComplexTypeBinding

public void setComplexTypeBinding(int index,
                                  ComponentBindingType vComplexTypeBinding)
                           throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vComplexTypeBinding -
Throws:
java.lang.IndexOutOfBoundsException

setComplexTypeBinding

public void setComplexTypeBinding(ComponentBindingType[] complexTypeBindingArray)
Parameters:
complexTypeBindingArray -

setDefaultBindingType

public void setDefaultBindingType(BindingType defaultBindingType)
Sets the value of field 'defaultBindingType'.

Parameters:
defaultBindingType - the value of field 'defaultBindingType'.

setElementBinding

public void setElementBinding(int index,
                              ComponentBindingType vElementBinding)
                       throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vElementBinding -
Throws:
java.lang.IndexOutOfBoundsException

setElementBinding

public void setElementBinding(ComponentBindingType[] elementBindingArray)
Parameters:
elementBindingArray -

setGroupBinding

public void setGroupBinding(int index,
                            ComponentBindingType vGroupBinding)
                     throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vGroupBinding -
Throws:
java.lang.IndexOutOfBoundsException

setGroupBinding

public void setGroupBinding(ComponentBindingType[] groupBindingArray)
Parameters:
groupBindingArray -

setInclude

public void setInclude(int index,
                       IncludeType vInclude)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vInclude -
Throws:
java.lang.IndexOutOfBoundsException

setInclude

public void setInclude(IncludeType[] includeArray)
Parameters:
includeArray -

setNamingXML

public void setNamingXML(NamingXMLType namingXML)
Sets the value of field 'namingXML'.

Parameters:
namingXML - the value of field 'namingXML'.

setPackage

public void setPackage(int index,
                       PackageType vPackage)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

setPackage

public void setPackage(PackageType[] _packageArray)
Parameters:
_packageArray -

unmarshalBinding

public static Binding unmarshalBinding(java.io.Reader reader)
                                throws MarshalException,
                                       ValidationException
Parameters:
reader -
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Throws:
ValidationException


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