|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.ResourcePropertyTopic
This class can be used to expose arbitrary ResourceProperty as a Topic.
| Field Summary | |
protected boolean |
autoNotify
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
protected ResourceProperty |
rp
|
protected boolean |
sendOldValue
|
protected Topic |
topic
|
| Constructor Summary | |
protected |
ResourcePropertyTopic()
|
|
ResourcePropertyTopic(ResourceProperty rp)
Construct a new ResourcePropertyTopic. |
|
ResourcePropertyTopic(ResourceProperty rp,
javax.xml.namespace.QName qname)
Construct a new ResourcePropertyTopic |
| Method Summary | |
void |
add(java.lang.Object value)
Adds a value. |
void |
addTopic(Topic topic)
Add a sub-topic. |
void |
addTopicListener(TopicListener listener)
Add a topic listener |
boolean |
autoNotify()
|
void |
clear()
Removes all values. |
private ResourcePropertyValueChangeNotificationElementType |
createValueChangeMessage(boolean sendOld)
|
protected void |
fireNotification(ResourcePropertyValueChangeNotificationElementType message)
|
java.lang.Object |
get(int index)
Retrieves a value at a specific index. |
java.lang.Object |
getCurrentMessage()
Get the current notification message if there is any |
ResourcePropertyMetaData |
getMetaData()
Gets meta data of this resource property. |
javax.xml.namespace.QName |
getName()
Get the name of the topic. |
ResourceProperty |
getResourceProperty()
Get the resource property associated with this topic |
boolean |
getSendOldValue()
Determine whether notifications send the old resource property value as well as the new value. |
Topic |
getTopic(javax.xml.namespace.QName topicName)
Get the sub-topic with the given topic name |
java.util.List |
getTopicPath()
Get the topic path. |
TopicExpressionType |
getTopicReference()
Get the topic expression for the topic(s) that this topic references. |
boolean |
isEmpty()
Returns true if the resource property has any values. |
boolean |
isReference()
Is this a topic reference? |
java.util.Iterator |
iterator()
Returns iterator over the values of this resource property. |
void |
notify(java.lang.Object obj)
Send out a notification on this topic |
boolean |
remove(java.lang.Object value)
Removes a specific value. |
void |
removeTopic(Topic topic)
Remove a sub-topic |
void |
removeTopicListener(TopicListener listener)
Remove a topic listener |
void |
set(int index,
java.lang.Object value)
Sets a value at a specific index. |
void |
setAutoNotify(boolean autoNotify)
|
private void |
setNewValue(ResourcePropertyValueChangeNotificationElementType message)
|
void |
setSendOldValue(boolean sendOldValue)
Set the "send old value" behavior. |
void |
setTopicPath(java.util.List topicPath)
Set the topic path. |
void |
setTopicReference(TopicExpressionType topicPath)
Set the topic expression that resolves to a set of topics that this topic references. |
int |
size()
Returns the number of values in the resource property. |
org.w3c.dom.Element[] |
toElements()
Converts the resource property value into a DOM Element array. |
java.util.Iterator |
topicIterator()
Iterator for the set of child topics |
java.util.Iterator |
topicListenerIterator()
Get a iterator for the list of TopicListeners. |
javax.xml.soap.SOAPElement[] |
toSOAPElements()
Converts the resource property value into a SOAPElement array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
protected ResourceProperty rp
protected Topic topic
protected boolean autoNotify
protected boolean sendOldValue
| Constructor Detail |
protected ResourcePropertyTopic()
public ResourcePropertyTopic(ResourceProperty rp,
javax.xml.namespace.QName qname)
rp - A ResourceProperty object.qname - A name of the topic.public ResourcePropertyTopic(ResourceProperty rp)
rp - A ResourceProperty object.| Method Detail |
public ResourceProperty getResourceProperty()
public javax.xml.namespace.QName getName()
Topic
getName in interface Topic
public void addTopic(Topic topic)
throws java.lang.Exception
Topic
addTopic in interface Topictopic - The sub-topic to add
java.lang.Exceptionpublic void addTopicListener(TopicListener listener)
TopicListenerList
addTopicListener in interface TopicListenerListlistener - The topic listener to addTopicListenerpublic java.lang.Object getCurrentMessage()
Topic
getCurrentMessage in interface Topicpublic Topic getTopic(javax.xml.namespace.QName topicName)
Topic
getTopic in interface TopictopicName - The topic name of the sub topic
public java.util.List getTopicPath()
Topic
getTopicPath in interface Topicpublic TopicExpressionType getTopicReference()
Topic
getTopicReference in interface Topicpublic boolean isReference()
Topic
isReference in interface Topicpublic java.util.Iterator topicIterator()
Topic
topicIterator in interface Topic
public void notify(java.lang.Object obj)
throws java.lang.Exception
Topic
notify in interface Topicobj - Object representation of the message to send
java.lang.Exceptionpublic void removeTopic(Topic topic)
Topic
removeTopic in interface Topictopic - The sub-topic to removepublic void removeTopicListener(TopicListener listener)
TopicListenerList
removeTopicListener in interface TopicListenerListlistener - The topic listener to remove.TopicListenerpublic java.util.Iterator topicListenerIterator()
TopicListenerListTopicListenerList instance.
topicListenerIterator in interface TopicListenerListTopicListenerpublic void setTopicPath(java.util.List topicPath)
Topic
setTopicPath in interface TopictopicPath - The topic path to associate with this topicpublic void setTopicReference(TopicExpressionType topicPath)
Topic
setTopicReference in interface TopictopicPath - The topic expression to set.public boolean autoNotify()
public void setAutoNotify(boolean autoNotify)
autoNotify - The autoNotify to set.protected void fireNotification(ResourcePropertyValueChangeNotificationElementType message)
public void add(java.lang.Object value)
ResourceProperty
add in interface ResourcePropertyvalue - the value to add.
public void set(int index,
java.lang.Object value)
ResourceProperty
set in interface ResourcePropertyindex - the index to set value at.value - the new valuepublic boolean remove(java.lang.Object value)
ResourceProperty
remove in interface ResourcePropertyvalue - value to remove.
public java.lang.Object get(int index)
ResourceProperty
get in interface ResourcePropertyindex - the index of value to retrieve.
public void clear()
ResourceProperty
clear in interface ResourcePropertypublic int size()
ResourceProperty
size in interface ResourcePropertypublic boolean isEmpty()
ResourceProperty
isEmpty in interface ResourcePropertypublic java.util.Iterator iterator()
ResourceProperty
iterator in interface ResourcePropertypublic ResourcePropertyMetaData getMetaData()
ResourceProperty
getMetaData in interface ResourceProperty
public javax.xml.soap.SOAPElement[] toSOAPElements()
throws SerializationException
ResourceProperty
toSOAPElements in interface ResourcePropertySerializationException - if conversion fails.
public org.w3c.dom.Element[] toElements()
throws SerializationException
ResourceProperty
toElements in interface ResourcePropertySerializationException - if conversion fails.public boolean getSendOldValue()
public void setSendOldValue(boolean sendOldValue)
sendOldValue - If true the old value will be sent, if false
(default) only the new value will be sent.private void setNewValue(ResourcePropertyValueChangeNotificationElementType message)
private ResourcePropertyValueChangeNotificationElementType createValueChangeMessage(boolean sendOld)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||