|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.binding.FieldType
public class FieldType
This type represents the binding for class member. It allows the definition of its name and java type as well as an implementation of FieldHandler to help the Marshalling framework in handling that member. Defining a validator is also possible. The names given for the validator and the fieldHandler must be fully qualified
Constructor Summary | |
---|---|
FieldType()
|
Method Summary | |
---|---|
void |
deleteWrapper()
|
FieldTypeCollectionType |
getCollection()
Returns the value of field 'collection'. |
java.lang.String |
getHandler()
Returns the value of field 'handler'. |
java.lang.String |
getJavaType()
Returns the value of field 'javaType'. |
java.lang.String |
getName()
Returns the value of field 'name'. |
java.lang.String |
getValidator()
Returns the value of field 'validator'. |
boolean |
getWrapper()
Returns the value of field 'wrapper'. |
boolean |
hasWrapper()
|
boolean |
isValid()
|
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
setCollection(FieldTypeCollectionType collection)
Sets the value of field 'collection'. |
void |
setHandler(java.lang.String handler)
Sets the value of field 'handler'. |
void |
setJavaType(java.lang.String javaType)
Sets the value of field 'javaType'. |
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
void |
setValidator(java.lang.String validator)
Sets the value of field 'validator'. |
void |
setWrapper(boolean wrapper)
Sets the value of field 'wrapper'. |
static FieldType |
unmarshalFieldType(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 |
---|
public FieldType()
Method Detail |
---|
public void deleteWrapper()
public FieldTypeCollectionType getCollection()
public java.lang.String getHandler()
public java.lang.String getJavaType()
public java.lang.String getName()
public java.lang.String getValidator()
public boolean getWrapper()
public boolean hasWrapper()
public boolean isValid()
public void marshal(java.io.Writer out) throws MarshalException, ValidationException
out
-
MarshalException
ValidationException
public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, MarshalException, ValidationException
handler
-
java.io.IOException
MarshalException
ValidationException
public void setCollection(FieldTypeCollectionType collection)
collection
- the value of field 'collection'.public void setHandler(java.lang.String handler)
handler
- the value of field 'handler'.public void setJavaType(java.lang.String javaType)
javaType
- the value of field 'javaType'.public void setName(java.lang.String name)
name
- the value of field 'name'.public void setValidator(java.lang.String validator)
validator
- the value of field 'validator'.public void setWrapper(boolean wrapper)
wrapper
- the value of field 'wrapper'.public static FieldType unmarshalFieldType(java.io.Reader reader) throws MarshalException, ValidationException
reader
-
MarshalException
ValidationException
public void validate() throws ValidationException
ValidationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |