|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.mapping.xml.FieldHandlerDef
public class FieldHandlerDef
Class FieldHandlerDef.
Constructor Summary | |
---|---|
FieldHandlerDef()
|
Method Summary | |
---|---|
void |
addParam(int index,
Param vParam)
|
void |
addParam(Param vParam)
|
java.util.Enumeration<? extends Param> |
enumerateParam()
Method enumerateParam. |
java.lang.String |
getClazz()
Returns the value of field 'clazz'. |
java.lang.String |
getName()
Returns the value of field 'name'. |
Param[] |
getParam()
Method getParam.Returns the contents of the collection in an Array. |
Param |
getParam(int index)
Method getParam. |
int |
getParamCount()
Method getParamCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends Param> |
iterateParam()
Method iterateParam. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllParam()
|
boolean |
removeParam(Param vParam)
Method removeParam. |
Param |
removeParamAt(int index)
Method removeParamAt. |
void |
setClazz(java.lang.String clazz)
Sets the value of field 'clazz'. |
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
void |
setParam(int index,
Param vParam)
|
void |
setParam(Param[] vParamArray)
|
static FieldHandlerDef |
unmarshal(java.io.Reader reader)
Method unmarshal. |
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldHandlerDef()
Method Detail |
---|
public void addParam(Param vParam) throws java.lang.IndexOutOfBoundsException
vParam
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addParam(int index, Param vParam) throws java.lang.IndexOutOfBoundsException
index
- vParam
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Param> enumerateParam()
public java.lang.String getClazz()
public java.lang.String getName()
public Param getParam(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Param[] getParam()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getParamCount()
public boolean isValid()
public java.util.Iterator<? extends Param> iterateParam()
public void marshal(java.io.Writer out) throws MarshalException, ValidationException
out
-
MarshalException
- if object is
null or if any SAXException is thrown during marshaling
ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, MarshalException, ValidationException
handler
-
java.io.IOException
- if an IOException occurs during
marshaling
ValidationException
- if this
object is an invalid instance according to the schema
MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllParam()
public boolean removeParam(Param vParam)
vParam
-
public Param removeParamAt(int index)
index
-
public void setClazz(java.lang.String clazz)
clazz
- the value of field 'clazz'.public void setName(java.lang.String name)
name
- the value of field 'name'.public void setParam(int index, Param vParam) throws java.lang.IndexOutOfBoundsException
index
- vParam
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setParam(Param[] vParamArray)
vParamArray
- public static FieldHandlerDef unmarshal(java.io.Reader reader) throws MarshalException, ValidationException
reader
-
MarshalException
- if object is
null or if any SAXException is thrown during marshaling
ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws ValidationException
ValidationException
- if this
object is an invalid instance according to the schema
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |