org.exolab.castor.xml.descriptors
Class ListClassDescriptor
- ClassDescriptor, XMLClassDescriptor
public class ListClassDescriptor
The default java.util.List class descriptor.
$Revision: 7296 $ $Date: 2004-12-16 22:49:25 -0700 (Thu, 16 Dec 2004) $
ListClassDescriptor
public ListClassDescriptor()
No-arg constructor.
ListClassDescriptor
public ListClassDescriptor(String xmlName)
Constructs a List Class Descriptor with the given XML name.
xmlName
- XML schema item name of the element we describe.
canAccept
public boolean canAccept(String name,
String namespace,
Object object)
Returns true if the given object represented by this XMLClassDescriptor
can accept a member whose name is given. An XMLClassDescriptor can accept
a field if it contains a descriptor that matches the given name and if
the given object can hold this field (i.e a value is not already set for
this field).
- canAccept in interface XMLClassDescriptor
- canAccept in interface BaseDescriptor
name
- the xml name of the field to checknamespace
- the namespace uriobject
- the object represented by this XMLCLassDescriptor
- true if the given object represented by this XMLClassDescriptor
can accept a member whose name is given.
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
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
setValidator
public void setValidator(TypeValidator validator)
Sets the type validator to use for this list.
validator
- the type validator to use for this list.
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