|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.ogsa.ServiceData
This class defines a wrapper around a collection of service data value
for a service data element. The name of the
Service Data object
is the same as the XML schema element representaion of the values.
The values can either be contained in the wrapper, or a callback can
be registered to dynamically obtain the values. The class can be used to
trigger notifications on a service data element
(notifyChange), and it allows service data elements
to be converted into DOM Elements
(externalizeElement) or XML strings
(externalizeString).
Field Summary
static MutabilityTypeCONSTANT
static QNameCONTENT
static QNameCREATE_EXTENSIBILITY
static QNameENTRY
static MutabilityTypeEXTENDABLE
static QNameFACTORY_LOCATOR
static QNameFIND_EXTENSIBILITY
static QNameHANDLE
static QNameHANDLE_RESOLVER_SCHEME
static QNameINTERFACE
static QNameMEMBER_LOCATOR
static QNameMEMBERSHIP_CONTENT_RULE
static MutabilityTypeMUTABLE
static QNameNAME
static QNameNOTIFIABLE_NAME
static QNameREFERENCE
static QNameSET_EXTENSIBILITY
static QNameSINK_LOCATOR
static MutabilityTypeSTATIC
static QNameSUBSCRIBE_EXTENSIBILITY
static QNameSUBSCRIPTION_EXPRESSION
static QNameTERMINATION
Constructor Summary
ServiceData(QName name,
ServiceDataSet serviceDataSet)
ServiceData(ServiceDataSet serviceDataSet)
Method Summary
voidaddValue(java.lang.Object value)
appends a new value to the service data element collection
org.w3c.dom.Element[]externalizeElement()
gets DOM Element representaions of this service data
element collection
MessageElement[]externalizeMessage()
gets an unwrapped any (SOAP Element) representaion of this service data
element collection
java.lang.String[]externalizeString()
gets XML string representaions of this service data
element collection
booleangetModifiable()
MutabilityTypegetMutability()
QNamegetName()
java.util.MapgetProperties()
java.lang.ObjectgetProperty(java.lang.String name)
java.lang.ObjectgetValue()
java.lang.ObjectgetValue(int index)
java.util.CollectiongetValues()
voidinit(ServiceDataType descriptor)
booleanisNotifiable()
voidnotifyChange()
sends out a notification to all subscribers of this service data element
voidnotifyChangeWithAck()
like notifyChange but returns first when
notifications have been sent out to all subscribers
java.lang.ObjectremoveValue(int index)
booleanremoveValue(java.lang.Object obj)
voidresetValues()
voidsetCallback(ServiceDataValueCallback callback)
voidsetModifiable(boolean modifiable)
voidsetMutability(MutabilityType mutability)
voidsetName(QName qname)
voidsetNotifiable(boolean notifiable)
enables or disables notification support of these service data elements
voidsetProperty(java.lang.String name,
java.lang.Object value)
voidsetValue(java.lang.Object value)
sets the current value, and overwrites the previous one
voidsetValues(java.util.Collection collection)
voidsetValues(java.lang.Object[] values)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
STATIC
public static final MutabilityType STATIC
CONSTANT
public static final MutabilityType CONSTANT
EXTENDABLE
public static final MutabilityType EXTENDABLE
MUTABLE
public static final MutabilityType MUTABLE
HANDLE
public static final QName HANDLE
REFERENCE
public static final QName REFERENCE
INTERFACE
public static final QName INTERFACE
FACTORY_LOCATOR
public static final QName FACTORY_LOCATOR
TERMINATION
public static final QName TERMINATION
NAME
public static final QName NAME
FIND_EXTENSIBILITY
public static final QName FIND_EXTENSIBILITY
SET_EXTENSIBILITY
public static final QName SET_EXTENSIBILITY
CREATE_EXTENSIBILITY
public static final QName CREATE_EXTENSIBILITY
HANDLE_RESOLVER_SCHEME
public static final QName HANDLE_RESOLVER_SCHEME
NOTIFIABLE_NAME
public static final QName NOTIFIABLE_NAME
SUBSCRIBE_EXTENSIBILITY
public static final QName SUBSCRIBE_EXTENSIBILITY
SUBSCRIPTION_EXPRESSION
public static final QName SUBSCRIPTION_EXPRESSION
SINK_LOCATOR
public static final QName SINK_LOCATOR
MEMBERSHIP_CONTENT_RULE
public static final QName MEMBERSHIP_CONTENT_RULE
ENTRY
public static final QName ENTRY
MEMBER_LOCATOR
public static final QName MEMBER_LOCATOR
CONTENT
public static final QName CONTENT
Constructor Detail
ServiceData
public ServiceData(ServiceDataSet serviceDataSet)
ServiceData
public ServiceData(QName name,
ServiceDataSet serviceDataSet)
Method Detail
init
public void init(ServiceDataType descriptor)
setMutability
public void setMutability(MutabilityType mutability)
getMutability
public MutabilityType getMutability()
setModifiable
public void setModifiable(boolean modifiable)
getModifiable
public boolean getModifiable()
getName
public QName getName()
setName
public void setName(QName qname)
getValues
public java.util.Collection getValues()
getValue
public java.lang.Object getValue()
setValue
public void setValue(java.lang.Object value)
value - must be serializable, that is
have a registered XML typemapping, or contain meta data that allows the
JAX-RPC engine to serialize it. Note all basic types have pre registered
typemappings and beans generated with a JAX-RPC WSDL to Java engine
typically has the required meta data to get serialized.
addValue
public void addValue(java.lang.Object value)
getValue
public java.lang.Object getValue(int index)
removeValue
public java.lang.Object removeValue(int index)
removeValue
public boolean removeValue(java.lang.Object obj)
resetValues
public void resetValues()
setValues
public void setValues(java.util.Collection collection)
setValues
public void setValues(java.lang.Object[] values)
setNotifiable
public void setNotifiable(boolean notifiable)
notifiable - if true (default) these service data elemenets will
be exposed as possible targets for subscription
isNotifiable
public boolean isNotifiable()
notifyChange
public void notifyChange()
notifyChangeWithAck
public void notifyChangeWithAck()
notifyChange but returns first when
notifications have been sent out to all subscribers
setCallback
public void setCallback(ServiceDataValueCallback callback)
externalizeMessage
public MessageElement[] externalizeMessage()
throws GridServiceException
GridServiceException
externalizeElement
public org.w3c.dom.Element[] externalizeElement()
throws GridServiceException
GridServiceException
externalizeString
public java.lang.String[] externalizeString()
throws GridServiceException
GridServiceException
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
getProperty
public java.lang.Object getProperty(java.lang.String name)
getProperties
public java.util.Map getProperties()
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD