org.exolab.castor.xml.descriptors
Class RootArrayDescriptor
- ClassDescriptor, XMLClassDescriptor
public class RootArrayDescriptor
The default class descriptor for Arrays that are passed in as the root-level
class.
$Revision: 7296 $ $Date: 2004-12-16 22:49:25 -0700 (Thu, 16 Dec 2004) $RootArrayDescriptor(Class array) - Creates a new RootArrayDescriptor for an array of the provided type.
|
RootArrayDescriptor
public RootArrayDescriptor(Class array)
Creates a new RootArrayDescriptor for an array of the provided type.
array
- An array to create a RootArrayDescriptor for.
getAccessMode
public AccessMode getAccessMode()
Returns the access mode specified for this class.
getFieldDescriptor
public XMLFieldDescriptor getFieldDescriptor(String name,
String namespace,
NodeType nodeType)
Returns the XML field descriptor matching the given xml name and
nodeType. If NodeType is null, then either an AttributeDescriptor, or
ElementDescriptor may be returned. Null is returned if no matching
descriptor is available.
- getFieldDescriptor in interface XMLClassDescriptor
name
- the xml name to match againstnamespace
- the namespace urinodeType
- the NodeType to match against, or null if the node type
is not known.
- the matching descriptor, or null if no matching descriptor is
available.
getJavaClass
public Class getJavaClass()
Returns the Class that this ClassDescriptor describes.
- getJavaClass in interface ClassDescriptor
- the Class that this ClassDescriptor describes.
getNameSpacePrefix
public String getNameSpacePrefix()
Returns the namespace prefix to use when marshalling as XML.
- getNameSpacePrefix in interface XMLClassDescriptor
- the namespace prefix to use when marshalling as XML.
getNameSpaceURI
public String getNameSpaceURI()
Returns the namespace URI used when marshaling and unmarshaling as XML.
- getNameSpaceURI in interface XMLClassDescriptor
- the namespace URI used when marshaling and unmarshaling as XML.
getValidator
public TypeValidator getValidator()
Returns a specific validator for the class described by this
ClassDescriptor. A null value may be returned if no specific validator
exists.
- getValidator in interface XMLClassDescriptor
- the type validator for the class described by this
ClassDescriptor.
setNameSpaceURI
public void setNameSpaceURI(String nsURI)
Sets the desired namespace URI for the described object.
nsURI
- is the desired namespace URI
setXMLName
public void setXMLName(String xmlName)
Sets the XML Name for the described object.
xmlName
- the XML name to use for the described object.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com