|
|||||||||||
| 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 javax.xml.namespace.QNameCONTENT
static javax.xml.namespace.QNameCREATE_EXTENSIBILITY
static javax.xml.namespace.QNameENTRY
static MutabilityTypeEXTENDABLE
static javax.xml.namespace.QNameFACTORY_LOCATOR
static javax.xml.namespace.QNameFIND_EXTENSIBILITY
static javax.xml.namespace.QNameHANDLE
static javax.xml.namespace.QNameHANDLE_RESOLVER_SCHEME
static javax.xml.namespace.QNameINTERFACE
static javax.xml.namespace.QNameMEMBER_LOCATOR
static javax.xml.namespace.QNameMEMBERSHIP_CONTENT_RULE
static MutabilityTypeMUTABLE
static javax.xml.namespace.QNameNAME
static javax.xml.namespace.QNameNOTIFIABLE_NAME
static javax.xml.namespace.QNameREFERENCE
static javax.xml.namespace.QNameSET_EXTENSIBILITY
static javax.xml.namespace.QNameSINK_LOCATOR
static MutabilityTypeSTATIC
static javax.xml.namespace.QNameSUBSCRIBE_EXTENSIBILITY
static javax.xml.namespace.QNameSUBSCRIPTION_EXPRESSION
static javax.xml.namespace.QNameTERMINATION
Constructor Summary
ServiceData(javax.xml.namespace.QName name)
ServiceData(javax.xml.namespace.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
org.apache.axis.message.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()
javax.xml.namespace.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(javax.xml.namespace.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 javax.xml.namespace.QName HANDLE
REFERENCE
public static final javax.xml.namespace.QName REFERENCE
INTERFACE
public static final javax.xml.namespace.QName INTERFACE
FACTORY_LOCATOR
public static final javax.xml.namespace.QName FACTORY_LOCATOR
TERMINATION
public static final javax.xml.namespace.QName TERMINATION
NAME
public static final javax.xml.namespace.QName NAME
FIND_EXTENSIBILITY
public static final javax.xml.namespace.QName FIND_EXTENSIBILITY
SET_EXTENSIBILITY
public static final javax.xml.namespace.QName SET_EXTENSIBILITY
CREATE_EXTENSIBILITY
public static final javax.xml.namespace.QName CREATE_EXTENSIBILITY
HANDLE_RESOLVER_SCHEME
public static final javax.xml.namespace.QName HANDLE_RESOLVER_SCHEME
NOTIFIABLE_NAME
public static final javax.xml.namespace.QName NOTIFIABLE_NAME
SUBSCRIBE_EXTENSIBILITY
public static final javax.xml.namespace.QName SUBSCRIBE_EXTENSIBILITY
SUBSCRIPTION_EXPRESSION
public static final javax.xml.namespace.QName SUBSCRIPTION_EXPRESSION
SINK_LOCATOR
public static final javax.xml.namespace.QName SINK_LOCATOR
MEMBERSHIP_CONTENT_RULE
public static final javax.xml.namespace.QName MEMBERSHIP_CONTENT_RULE
ENTRY
public static final javax.xml.namespace.QName ENTRY
MEMBER_LOCATOR
public static final javax.xml.namespace.QName MEMBER_LOCATOR
CONTENT
public static final javax.xml.namespace.QName CONTENT
Constructor Detail
ServiceData
public ServiceData(ServiceDataSet serviceDataSet)
ServiceData
public ServiceData(javax.xml.namespace.QName name)
ServiceData
public ServiceData(javax.xml.namespace.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 javax.xml.namespace.QName getName()
setName
public void setName(javax.xml.namespace.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 org.apache.axis.message.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
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.