public class Context
extends java.lang.Object
Java class for Context complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Context">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="value" type="{http://www.w3.org/2001/XMLSchema}anySimpleType"/>
b </sequence>
</restriction>
</complexContent>
</complexType>
The Context object is used for storing contextual information.
A client may communicate contextual information to VMM. For example, when creating a Person, the client application may need to specify the realm to create the Person under. The realm itself is not a part of the Person object's data. Another example is VMM may need the client application to pass in an ip address.
The Context object is used for storing this contextual information. The Context object supports arbitrary key -> object mappings in order to support attributes that are not already pre-defined in the VMM schema
The Context object consists of key-value pair mappings of contextual information.
| Constructor and Description |
|---|
Context() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.String propName)
Gets the value of the requested property
|
java.lang.String |
getDataType(java.lang.String propName)
Gets the Java type of the value of the provided property.
|
java.lang.String |
getKey()
Gets the value of the key property.
|
static java.util.List |
getPropertyNames(java.lang.String entityTypeName)
Gets a list of all supported properties for this model object, Context
|
static java.util.HashSet |
getSubTypes()
Gets a set of any model objects which extend this model object, Context
|
java.util.ArrayList |
getSuperTypes()
Gets a list of any model objects which this model object, Context is
an extension of.
|
java.lang.String |
getTypeName()
Gets the name of this model object, Context
|
java.lang.Object |
getValue()
Gets the value of the value property.
|
boolean |
isSet(java.lang.String propName)
Returns true if the requested property is set; false, otherwise.
|
boolean |
isSetKey()
Returns true if the key property is set; false, otherwise.
|
boolean |
isSetValue()
Returns true if the value property is set; false, otherwise.
|
boolean |
isSubType(java.lang.String superTypeName)
Returns a true if the provided model object is one that this
model object extends; false, otherwise.
|
void |
set(java.lang.String propName,
java.lang.Object value)
Sets the value of the provided property to the provided value.
|
void |
setKey(java.lang.String value)
Sets the value of the key property.
|
void |
setValue(java.lang.Object value)
Sets the value of the value property.
|
java.lang.String |
toString()
Returns this model object, Context, and its contents as a String
|
void |
unset(java.lang.String propName)
Sets the value of provided property to null.
|
public java.lang.String getKey()
Stringpublic void setKey(java.lang.String value)
value - allowed object is Stringpublic boolean isSetKey()
boolean public java.lang.Object getValue()
Objectpublic void setValue(java.lang.Object value)
value - allowed object is Objectpublic boolean isSetValue()
boolean public java.lang.Object get(java.lang.String propName)
propName - allowed object is StringObjectpublic boolean isSet(java.lang.String propName)
boolean public void set(java.lang.String propName,
java.lang.Object value)
propName - allowed object is Stringvalue - allowed object is Objectpublic void unset(java.lang.String propName)
propName - allowed object is Stringpublic java.lang.String getTypeName()
Stringpublic static java.util.List getPropertyNames(java.lang.String entityTypeName)
entityTypeName - allowed object is StringListpublic java.lang.String getDataType(java.lang.String propName)
propName - allowed object is StringStringpublic java.util.ArrayList getSuperTypes()
ArrayListpublic boolean isSubType(java.lang.String superTypeName)
superTypeName - allowed object is Stringbooleanpublic static java.util.HashSet getSubTypes()
HashSetpublic java.lang.String toString()
toString in class java.lang.ObjectString