com.bradmcevoy.property
Class MultiNamespaceCustomPropertySource
java.lang.Object
com.bradmcevoy.property.MultiNamespaceCustomPropertySource
- All Implemented Interfaces:
- PropertySource
public class MultiNamespaceCustomPropertySource
- extends java.lang.Object
- implements PropertySource
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiNamespaceCustomPropertySource
public MultiNamespaceCustomPropertySource()
getProperty
public java.lang.Object getProperty(javax.xml.namespace.QName name,
Resource r)
- Specified by:
getProperty in interface PropertySource
setProperty
public void setProperty(javax.xml.namespace.QName name,
java.lang.Object value,
Resource r)
- Specified by:
setProperty in interface PropertySource
getPropertyMetaData
public PropertySource.PropertyMetaData getPropertyMetaData(javax.xml.namespace.QName name,
Resource r)
- Description copied from interface:
PropertySource
- Check to see if the property is known, and if it is writable.
The returned value also contains a class which is the most specific known
class of the values which can be contained in this property. This class
must be sufficient to locate a ValueWriter to parse the textual representation
sent in PROPPATCH requests.
- Specified by:
getPropertyMetaData in interface PropertySource
- Parameters:
name - - the qualified name of the propertyr - - the resource which might contain the property
- Returns:
- - never null, contains an enum value indicating if the property is known
to this source, and if it is writable, and a class indicating the type of the property.
clearProperty
public void clearProperty(javax.xml.namespace.QName name,
Resource r)
- Just calls setProperty(.. null ..);
- Specified by:
clearProperty in interface PropertySource
- Parameters:
name - r -
getAllPropertyNames
public java.util.List<javax.xml.namespace.QName> getAllPropertyNames(Resource r)
- Specified by:
getAllPropertyNames in interface PropertySource
- Parameters:
r - - the resource which may contain properties
- Returns:
- - all properties known by this source on the given resource.
This list should be exclusive. Ie only return properties not returned
by any other source
Copyright © 2011. All Rights Reserved.