org.exolab.castor.builder.binding
Class ComponentBindingType
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentBindingType
public ComponentBindingType()
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