|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.SimpleResourcePropertySet
Simple in-memory implementation of ResourcePropertySet.
This class is not thread-safe.
| Field Summary | |
private static org.globus.util.I18n |
i18n
|
private boolean |
localNameMatching
|
private javax.xml.namespace.QName |
name
|
private boolean |
openContent
|
private java.util.List |
propertiesList
|
private java.util.Map |
propertiesMap
|
| Constructor Summary | |
SimpleResourcePropertySet(javax.xml.namespace.QName name)
|
|
| Method Summary | |
boolean |
add(ResourceProperty property)
Adds a resource property to the set and makes it available to queries and subscriptions, etc. |
void |
clear()
Removes all resource properties. |
ResourceProperty |
create(ResourcePropertyMetaData rpMetaData)
Creates a resource property entry with the specified meta data. |
ResourceProperty |
get(javax.xml.namespace.QName name)
Retrieves a resource property. |
javax.xml.namespace.QName |
getName()
Returns the element name of the entire resource properties document. |
boolean |
isEmpty()
Returns true if the set has at least one resource property. |
boolean |
isLocalNameMatching()
Returns whether local name matching is allowed. |
boolean |
isOpenContent()
Indicates if the resource property set allows adding of new arbitrary resource property elements. |
java.util.Iterator |
iterator()
Returns an iterator over ResourceProperty entries. |
boolean |
remove(javax.xml.namespace.QName name)
Removes a resource property. |
void |
setLocalNameMatching(boolean matching)
Configures if ResourceProperty can be retrieved just by matching the local name (namespace part is ignored). |
void |
setOpenContent(boolean open)
Configures open content property. |
int |
size()
Returns the number of resource properties this set contains. |
org.w3c.dom.Element |
toElement()
Returns the entire Resource Property document as a DOM Element. |
protected org.w3c.dom.Element |
toElementGeneral()
|
protected org.w3c.dom.Element |
toElementSpecific()
|
javax.xml.soap.SOAPElement |
toSOAPElement()
Returns the entire Resource Property document as a SOAPElement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.globus.util.I18n i18n
private javax.xml.namespace.QName name
private java.util.Map propertiesMap
private java.util.List propertiesList
private boolean openContent
private boolean localNameMatching
| Constructor Detail |
public SimpleResourcePropertySet(javax.xml.namespace.QName name)
| Method Detail |
public javax.xml.namespace.QName getName()
ResourcePropertySet
getName in interface ResourcePropertySetpublic ResourceProperty create(ResourcePropertyMetaData rpMetaData)
ResourcePropertySetadd method is called.
create in interface ResourcePropertySetpublic ResourceProperty get(javax.xml.namespace.QName name)
ResourcePropertySet
get in interface ResourcePropertySetname - the name of the ResourceProperty to
retrieve.
ResourceProperty that was retrieved. Null if
the property does not exist.public boolean add(ResourceProperty property)
ResourcePropertySet
add in interface ResourcePropertySetproperty - the ResourceProperty to add.
public boolean remove(javax.xml.namespace.QName name)
ResourcePropertySet
remove in interface ResourcePropertySetname - the name of the ResourceProperty to remove.
public java.util.Iterator iterator()
ResourcePropertySetResourceProperty entries.
iterator in interface ResourcePropertySetResourceProperty entries.public boolean isOpenContent()
ResourcePropertySet
isOpenContent in interface ResourcePropertySetisOpenContent might
return true but only certain subset of resource
properties will be allowed to be added.public void clear()
ResourcePropertySet
clear in interface ResourcePropertySetpublic int size()
ResourcePropertySet
size in interface ResourcePropertySetpublic boolean isEmpty()
ResourcePropertySet
isEmpty in interface ResourcePropertySetpublic void setOpenContent(boolean open)
open - true if arbitrary resource property can be added to the set.public boolean isLocalNameMatching()
public void setLocalNameMatching(boolean matching)
matching - true to allow local name matching.
public org.w3c.dom.Element toElement()
throws SerializationException
ResourcePropertySet
toElement in interface ResourcePropertySetSerializationException
protected org.w3c.dom.Element toElementGeneral()
throws SerializationException
SerializationException
protected org.w3c.dom.Element toElementSpecific()
throws SerializationException
SerializationException
public javax.xml.soap.SOAPElement toSOAPElement()
throws SerializationException
ResourcePropertySet
toSOAPElement in interface ResourcePropertySetSerializationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||