com.bradmcevoy.property
Class MultiNamespaceCustomPropertySource

java.lang.Object
  extended by com.bradmcevoy.property.MultiNamespaceCustomPropertySource
All Implemented Interfaces:
PropertySource

public class MultiNamespaceCustomPropertySource
extends java.lang.Object
implements PropertySource

Author:
brad

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.bradmcevoy.property.PropertySource
PropertySource.PropertyAccessibility, PropertySource.PropertyMetaData, PropertySource.PropertySetException
 
Constructor Summary
MultiNamespaceCustomPropertySource()
           
 
Method Summary
 void clearProperty(javax.xml.namespace.QName name, Resource r)
          Just calls setProperty(..
 java.util.List<javax.xml.namespace.QName> getAllPropertyNames(Resource r)
           
 java.lang.Object getProperty(javax.xml.namespace.QName name, Resource r)
           
 PropertySource.PropertyMetaData getPropertyMetaData(javax.xml.namespace.QName name, Resource r)
          Check to see if the property is known, and if it is writable.
 void setProperty(javax.xml.namespace.QName name, java.lang.Object value, Resource r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiNamespaceCustomPropertySource

public MultiNamespaceCustomPropertySource()
Method Detail

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 property
r - - 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.