Package org.exolab.castor.mapping.xml
Class Container
java.lang.Object
org.exolab.castor.mapping.xml.Container
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Returns the value of field 'createMethod'.Returns the value of field 'description'.boolean
Returns the value of field 'direct'.Returns the value of field 'fieldMapping'.Returns the value of field 'getMethod'.getName()
Returns the value of field 'name'.boolean
Returns the value of field 'required'.Returns the value of field 'setMethod'.getType()
Returns the value of field 'type'.boolean
Method hasDirect.boolean
Method hasRequired.boolean
isDirect()
Returns the value of field 'direct'.boolean
Returns the value of field 'required'.boolean
isValid()
Method isValid.void
void
marshal
(ContentHandler handler) void
setCreateMethod
(String createMethod) Sets the value of field 'createMethod'.void
setDescription
(String description) Sets the value of field 'description'.void
setDirect
(boolean direct) Sets the value of field 'direct'.void
setFieldMapping
(FieldMapping fieldMapping) Sets the value of field 'fieldMapping'.void
setGetMethod
(String getMethod) Sets the value of field 'getMethod'.void
Sets the value of field 'name'.void
setRequired
(boolean required) Sets the value of field 'required'.void
setSetMethod
(String setMethod) Sets the value of field 'setMethod'.void
Sets the value of field 'type'.static Container
Method unmarshal.void
validate()
-
Constructor Details
-
Container
public Container()
-
-
Method Details
-
deleteDirect
public void deleteDirect() -
deleteRequired
public void deleteRequired() -
getCreateMethod
Returns the value of field 'createMethod'.- Returns:
- the value of field 'CreateMethod'.
-
getDescription
Returns the value of field 'description'.- Returns:
- the value of field 'Description'.
-
getDirect
public boolean getDirect()Returns the value of field 'direct'.- Returns:
- the value of field 'Direct'.
-
getFieldMapping
Returns the value of field 'fieldMapping'. The field 'fieldMapping' has the following description: The 'field' element is used to describe the property of a Java object.- Returns:
- the value of field 'FieldMapping'.
-
getGetMethod
Returns the value of field 'getMethod'.- Returns:
- the value of field 'GetMethod'.
-
getName
-
getRequired
public boolean getRequired()Returns the value of field 'required'.- Returns:
- the value of field 'Required'.
-
getSetMethod
Returns the value of field 'setMethod'.- Returns:
- the value of field 'SetMethod'.
-
getType
-
hasDirect
public boolean hasDirect()Method hasDirect.- Returns:
- true if at least one Direct has been added
-
hasRequired
public boolean hasRequired()Method hasRequired.- Returns:
- true if at least one Required has been added
-
isDirect
public boolean isDirect()Returns the value of field 'direct'.- Returns:
- the value of field 'Direct'.
-
isRequired
public boolean isRequired()Returns the value of field 'required'.- Returns:
- the value of field 'Required'.
-
isValid
public boolean isValid()Method isValid.- Returns:
- true if this object is valid according to the schema
-
marshal
- Parameters:
out
-- Throws:
MarshalException
- if object is null or if any SAXException is thrown during marshalingValidationException
- if this object is an invalid instance according to the schema
-
marshal
public void marshal(ContentHandler handler) throws IOException, MarshalException, ValidationException - Parameters:
handler
-- Throws:
IOException
- if an IOException occurs during marshalingValidationException
- if this object is an invalid instance according to the schemaMarshalException
- if object is null or if any SAXException is thrown during marshaling
-
setCreateMethod
Sets the value of field 'createMethod'.- Parameters:
createMethod
- the value of field 'createMethod'.
-
setDescription
Sets the value of field 'description'.- Parameters:
description
- the value of field 'description'.
-
setDirect
public void setDirect(boolean direct) Sets the value of field 'direct'.- Parameters:
direct
- the value of field 'direct'.
-
setFieldMapping
Sets the value of field 'fieldMapping'. The field 'fieldMapping' has the following description: The 'field' element is used to describe the property of a Java object.- Parameters:
fieldMapping
- the value of field 'fieldMapping'.
-
setGetMethod
Sets the value of field 'getMethod'.- Parameters:
getMethod
- the value of field 'getMethod'.
-
setName
Sets the value of field 'name'.- Parameters:
name
- the value of field 'name'.
-
setRequired
public void setRequired(boolean required) Sets the value of field 'required'.- Parameters:
required
- the value of field 'required'.
-
setSetMethod
Sets the value of field 'setMethod'.- Parameters:
setMethod
- the value of field 'setMethod'.
-
setType
Sets the value of field 'type'.- Parameters:
type
- the value of field 'type'.
-
unmarshal
Method unmarshal.- Parameters:
reader
-- Returns:
- the unmarshaled org.exolab.castor.mapping.xml.Container
- Throws:
MarshalException
- if object is null or if any SAXException is thrown during marshalingValidationException
- if this object is an invalid instance according to the schema
-
validate
- Throws:
ValidationException
- if this object is an invalid instance according to the schema
-