org.exolab.castor.xml.descriptors
Class BaseDescriptor
java.lang.Object
org.exolab.castor.xml.descriptors.BaseDescriptor
- ClassDescriptor, XMLClassDescriptor
public abstract class BaseDescriptor
extends java.lang.Object
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).
This is mainly used for container object (that can contain other
objects), in this particular case the implementation returns false.
- canAccept in interface XMLClassDescriptor
name
- the name of the field to checknamespace
- the namespace of the element. This may be null. Note: A
null namespace is not the same as the default namespace unless the
default namespace is also null.object
- the object represented by this XMLCLassDescriptor
- true if the given object represented by this XMLClassDescriptor
can accept a member whose name is given.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com