com.bradmcevoy.property
Class CustomPropertySource
java.lang.Object
com.bradmcevoy.property.CustomPropertySource
- All Implemented Interfaces:
- PropertySource
public class CustomPropertySource
- 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 |
CustomPropertySource
public CustomPropertySource()
getProperty
public java.lang.Object getProperty(javax.xml.namespace.QName name,
Resource r)
- Specified by:
getProperty 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.
setProperty
public void setProperty(javax.xml.namespace.QName name,
java.lang.Object value,
Resource r)
- Specified by:
setProperty in interface PropertySource
hasProperty
public boolean hasProperty(javax.xml.namespace.QName name,
Resource r)
clearProperty
public void clearProperty(javax.xml.namespace.QName name,
Resource r)
- Description copied from interface:
PropertySource
- Remove the given property. There may be a semantic difference in some
cases between setting a property to a null value vs removing the property.
Generally this should completely the remove the property if possible.
- Specified by:
clearProperty in interface PropertySource
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.