org.exolab.castor.builder.binding
Class ComponentBindingType

java.lang.Object
  extended by org.exolab.castor.builder.binding.ComponentBindingType
All Implemented Interfaces:
java.io.Serializable

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

A binding element is defined to express the binding between an XML Schema Component and Java class OR a java interface or a java member class. The XML Schema component can be an element, an attribute, a complexType or a group. Attribute cannot be mapped to class, the reader of a binding file will take care that class or interface are not used for component whose xml-type is attribute.

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

Constructor Summary
ComponentBindingType()
           
 
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)
           
 java.util.Enumeration enumerateAttributeBinding()
           
 java.util.Enumeration enumerateComplexTypeBinding()
           
 java.util.Enumeration enumerateElementBinding()
           
 java.util.Enumeration enumerateGroupBinding()
           
 ComponentBindingType[] getAttributeBinding()
           
 ComponentBindingType getAttributeBinding(int index)
           
 int getAttributeBindingCount()
           
 ComponentBindingType[] getComplexTypeBinding()
           
 ComponentBindingType getComplexTypeBinding(int index)
           
 int getComplexTypeBindingCount()
           
 ComponentBindingTypeChoice getComponentBindingTypeChoice()
          Returns the value of field 'componentBindingTypeChoice'.
 ComponentBindingType[] getElementBinding()
           
 ComponentBindingType getElementBinding(int index)
           
 int getElementBindingCount()
           
 ComponentBindingType[] getGroupBinding()
           
 ComponentBindingType getGroupBinding(int index)
           
 int getGroupBindingCount()
           
 java.lang.String getName()
          Returns the value of field 'name'.
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllAttributeBinding()
           
 void removeAllComplexTypeBinding()
           
 void removeAllElementBinding()
           
 void removeAllGroupBinding()
           
 ComponentBindingType removeAttributeBinding(int index)
           
 ComponentBindingType removeComplexTypeBinding(int index)
           
 ComponentBindingType removeElementBinding(int index)
           
 ComponentBindingType removeGroupBinding(int index)
           
 void setAttributeBinding(ComponentBindingType[] attributeBindingArray)
           
 void setAttributeBinding(int index, ComponentBindingType vAttributeBinding)
           
 void setComplexTypeBinding(ComponentBindingType[] complexTypeBindingArray)
           
 void setComplexTypeBinding(int index, ComponentBindingType vComplexTypeBinding)
           
 void setComponentBindingTypeChoice(ComponentBindingTypeChoice componentBindingTypeChoice)
          Sets the value of field 'componentBindingTypeChoice'.
 void setElementBinding(ComponentBindingType[] elementBindingArray)
           
 void setElementBinding(int index, ComponentBindingType vElementBinding)
           
 void setGroupBinding(ComponentBindingType[] groupBindingArray)
           
 void setGroupBinding(int index, ComponentBindingType vGroupBinding)
           
 void setName(java.lang.String name)
          Sets the value of field 'name'.
static ComponentBindingType unmarshalComponentBindingType(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

ComponentBindingType

public ComponentBindingType()
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

enumerateAttributeBinding

public java.util.Enumeration enumerateAttributeBinding()

enumerateComplexTypeBinding

public java.util.Enumeration enumerateComplexTypeBinding()

enumerateElementBinding

public java.util.Enumeration enumerateElementBinding()

enumerateGroupBinding

public java.util.Enumeration enumerateGroupBinding()

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()

getComponentBindingTypeChoice

public ComponentBindingTypeChoice getComponentBindingTypeChoice()
Returns the value of field 'componentBindingTypeChoice'.

Returns:
the value of field 'componentBindingTypeChoice'.

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()

getName

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

Returns:
the value of field 'name'.

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()

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 -

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 -

setComponentBindingTypeChoice

public void setComponentBindingTypeChoice(ComponentBindingTypeChoice componentBindingTypeChoice)
Sets the value of field 'componentBindingTypeChoice'.

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

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 -

setName

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

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

unmarshalComponentBindingType

public static ComponentBindingType unmarshalComponentBindingType(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