org.exolab.castor.builder.binding
Class NamingXMLType

java.lang.Object
  extended by org.exolab.castor.builder.binding.NamingXMLType
All Implemented Interfaces:
java.io.Serializable

public class NamingXMLType
extends java.lang.Object
implements java.io.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: 1.2 $ $Date: 2005/03/05 13:41:43 $
See Also:
Serialized Form

Constructor Summary
NamingXMLType()
           
 
Method Summary
 NamingType getComplexTypeName()
          Returns the value of field 'complexTypeName'.
 NamingType getElementName()
          Returns the value of field 'elementName'.
 NamingType getModelGroupName()
          Returns the value of field 'modelGroupName'.
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 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(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

NamingXMLType

public NamingXMLType()
Method Detail

getComplexTypeName

public NamingType getComplexTypeName()
Returns the value of field 'complexTypeName'.

Returns:
the value of field 'complexTypeName'.

getElementName

public NamingType getElementName()
Returns the value of field 'elementName'.

Returns:
the value of field 'elementName'.

getModelGroupName

public NamingType getModelGroupName()
Returns the value of field 'modelGroupName'.

Returns:
the value of field 'modelGroupName'.

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws MarshalException,
                    ValidationException
Parameters:
out -
Throws:
MarshalException
ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    MarshalException,
                    ValidationException
Parameters:
handler -
Throws:
java.io.IOException
MarshalException
ValidationException

setComplexTypeName

public void setComplexTypeName(NamingType complexTypeName)
Sets the value of field 'complexTypeName'.

Parameters:
complexTypeName - the value of field 'complexTypeName'.

setElementName

public void setElementName(NamingType elementName)
Sets the value of field 'elementName'.

Parameters:
elementName - the value of field 'elementName'.

setModelGroupName

public void setModelGroupName(NamingType modelGroupName)
Sets the value of field 'modelGroupName'.

Parameters:
modelGroupName - the value of field 'modelGroupName'.

unmarshalNamingXMLType

public static NamingXMLType unmarshalNamingXMLType(java.io.Reader reader)
                                            throws MarshalException,
                                                   ValidationException
Parameters:
reader -
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Throws:
ValidationException


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com