Package org.exolab.castor.mapping.xml
Class MapTo
java.lang.Object
org.exolab.castor.mapping.xml.MapTo
- All Implemented Interfaces:
Serializable
The 'map-to' element is used for specifying the name of the item
that should be associated with the given Java object.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
Returns the value of field 'elementDefinition'.Returns the value of field 'ldapDn'.Returns the value of field 'ldapOc'.Returns the value of field 'nsPrefix'.getNsUri()
Returns the value of field 'nsUri'.getTable()
Returns the value of field 'table'.getXml()
Returns the value of field 'xml'.boolean
Method hasElementDefinition.boolean
Returns the value of field 'elementDefinition'.boolean
isValid()
Method isValid.void
void
marshal
(ContentHandler handler) void
setElementDefinition
(boolean elementDefinition) Sets the value of field 'elementDefinition'.void
Sets the value of field 'ldapDn'.void
Sets the value of field 'ldapOc'.void
setNsPrefix
(String nsPrefix) Sets the value of field 'nsPrefix'.void
Sets the value of field 'nsUri'.void
Sets the value of field 'table'.void
Sets the value of field 'xml'.static MapTo
Method unmarshal.void
validate()
-
Constructor Details
-
MapTo
public MapTo()
-
-
Method Details
-
deleteElementDefinition
public void deleteElementDefinition() -
getElementDefinition
public boolean getElementDefinition()Returns the value of field 'elementDefinition'.- Returns:
- the value of field 'ElementDefinition'.
-
getLdapDn
Returns the value of field 'ldapDn'.- Returns:
- the value of field 'LdapDn'.
-
getLdapOc
Returns the value of field 'ldapOc'.- Returns:
- the value of field 'LdapOc'.
-
getNsPrefix
Returns the value of field 'nsPrefix'.- Returns:
- the value of field 'NsPrefix'.
-
getNsUri
Returns the value of field 'nsUri'.- Returns:
- the value of field 'NsUri'.
-
getTable
Returns the value of field 'table'. The field 'table' has the following description: An optional attribute used to specify the name of the table to which the given Java object is associated.- Returns:
- the value of field 'Table'.
-
getXml
Returns the value of field 'xml'.- Returns:
- the value of field 'Xml'.
-
hasElementDefinition
public boolean hasElementDefinition()Method hasElementDefinition.- Returns:
- true if at least one ElementDefinition has been added
-
isElementDefinition
public boolean isElementDefinition()Returns the value of field 'elementDefinition'.- Returns:
- the value of field 'ElementDefinition'.
-
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
-
setElementDefinition
public void setElementDefinition(boolean elementDefinition) Sets the value of field 'elementDefinition'.- Parameters:
elementDefinition
- the value of field 'elementDefinition'.
-
setLdapDn
Sets the value of field 'ldapDn'.- Parameters:
ldapDn
- the value of field 'ldapDn'.
-
setLdapOc
Sets the value of field 'ldapOc'.- Parameters:
ldapOc
- the value of field 'ldapOc'.
-
setNsPrefix
Sets the value of field 'nsPrefix'.- Parameters:
nsPrefix
- the value of field 'nsPrefix'.
-
setNsUri
Sets the value of field 'nsUri'.- Parameters:
nsUri
- the value of field 'nsUri'.
-
setTable
Sets the value of field 'table'. The field 'table' has the following description: An optional attribute used to specify the name of the table to which the given Java object is associated.- Parameters:
table
- the value of field 'table'.
-
setXml
Sets the value of field 'xml'.- Parameters:
xml
- the value of field 'xml'.
-
unmarshal
Method unmarshal.- Parameters:
reader
-- Returns:
- the unmarshaled org.exolab.castor.mapping.xml.MapTo
- 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
-