org.exolab.castor.xml.descriptors
Class ListClassDescriptor
java.lang.Object
org.exolab.castor.xml.descriptors.ListClassDescriptor
- ClassDescriptor, XMLClassDescriptor
public class ListClassDescriptor
extends java.lang.Object
The default java.util.List class descriptor
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:18 $
ListClassDescriptor
public ListClassDescriptor()
ListClassDescriptor
public ListClassDescriptor(String xmlName)
canAccept
public boolean canAccept(String fieldName,
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
fieldName
- the name of the field to checkobject
- the object represented by this XMLCLassDescriptor
- true if the given object represented by this XMLClassDescriptor
can accept a member whose name is given.
getFieldDescriptor
public XMLFieldDescriptor getFieldDescriptor(String name,
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 against
- 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
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-2003. All rights reserved http://www.intalio.com