Class NamingXMLType
java.lang.Object
org.exolab.castor.builder.binding.xml.NamingXMLType
- All Implemented Interfaces:
Serializable
This element allows to define naming convention when naming a
complexType, element or
modelGroup. Indeed the user can decide of a prefix to add to
each class name as well
as a suffix. This naming style won't affect the names entered
in the binding file but only
the XML Names.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of field 'complexTypeName'.Returns the value of field 'elementName'.Returns the value of field 'modelGroupName'.boolean
isValid()
Method isValid.void
void
marshal
(ContentHandler handler) void
setComplexTypeName
(NamingType complexTypeName) Sets the value of field 'complexTypeName'.void
setElementName
(NamingType elementName) Sets the value of field 'elementName'.void
setModelGroupName
(NamingType modelGroupName) Sets the value of field 'modelGroupName'.static NamingXMLType
unmarshalNamingXMLType
(Reader reader) Method unmarshalNamingXMLType.void
validate()
-
Constructor Details
-
NamingXMLType
public NamingXMLType()
-
-
Method Details
-
getComplexTypeName
Returns the value of field 'complexTypeName'.- Returns:
- the value of field 'ComplexTypeName'.
-
getElementName
Returns the value of field 'elementName'.- Returns:
- the value of field 'ElementName'.
-
getModelGroupName
Returns the value of field 'modelGroupName'.- Returns:
- the value of field 'ModelGroupName'.
-
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
-
setComplexTypeName
Sets the value of field 'complexTypeName'.- Parameters:
complexTypeName
- the value of field 'complexTypeName'.
-
setElementName
Sets the value of field 'elementName'.- Parameters:
elementName
- the value of field 'elementName'.
-
setModelGroupName
Sets the value of field 'modelGroupName'.- Parameters:
modelGroupName
- the value of field 'modelGroupName'.
-
unmarshalNamingXMLType
public static NamingXMLType unmarshalNamingXMLType(Reader reader) throws MarshalException, ValidationException Method unmarshalNamingXMLType.- Parameters:
reader
-- Returns:
- the unmarshaled org.exolab.castor.builder.binding.xml.NamingXMLType
- 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
-