Class Context
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.
- key: specifies the name of a contextual property. The following are two examples of possible keys: realm, ipAddress
- value: specifies the value of a contextual property. Since value can be a String or any arbitrary object, the type of the property value is anySimpleType. This property can either be a single value or multi-valued.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the requested propertygetDataType
(String propName) Gets the Java type of the value of the provided property.getKey()
Gets the value of the key property.static List
getPropertyNames
(String entityTypeName) Gets a list of all supported properties for this model object, Contextstatic HashSet
Gets a set of any model objects which extend this model object, ContextGets a list of any model objects which this model object, Context is an extension of.Gets the name of this model object, ContextgetValue()
Gets the value of the value property.boolean
Returns true if the requested property is set; false, otherwise.boolean
isSetKey()
Returns true if the key property is set; false, otherwise.boolean
Returns true if the value property is set; false, otherwise.boolean
Returns a true if the provided model object is one that this model object extends; false, otherwise.void
Sets the value of the provided property to the provided value.void
Sets the value of the key property.void
Sets the value of the value property.toString()
Returns this model object, Context, and its contents as a Stringvoid
Sets the value of provided property to null.
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
getKey
Gets the value of the key property.- Returns:
- possible object is
String
-
setKey
Sets the value of the key property.- Parameters:
value
- allowed object isString
-
isSetKey
public boolean isSetKey()Returns true if the key property is set; false, otherwise.- Returns:
- returned object is
boolean
-
getValue
Gets the value of the value property.- Returns:
- possible object is
Object
-
setValue
Sets the value of the value property.- Parameters:
value
- allowed object isObject
-
isSetValue
public boolean isSetValue()Returns true if the value property is set; false, otherwise.- Returns:
- returned object is
boolean
-
get
Gets the value of the requested property -
isSet
Returns true if the requested property is set; false, otherwise.- Returns:
- returned object is
boolean
-
set
Sets the value of the provided property to the provided value. -
unset
Sets the value of provided property to null.- Parameters:
propName
- allowed object isString
-
getTypeName
Gets the name of this model object, Context- Returns:
- returned object is
String
-
getPropertyNames
Gets a list of all supported properties for this model object, Context -
getDataType
Gets the Java type of the value of the provided property. For example: String, List -
getSuperTypes
Gets a list of any model objects which this model object, Context is an extension of.- Returns:
- returned object is
ArrayList
-
isSubType
Returns a true if the provided model object is one that this model object extends; false, otherwise.- Parameters:
superTypeName
- allowed object isString
- Returns:
- returned object is
boolean
-
getSubTypes
Gets a set of any model objects which extend this model object, Context- Returns:
- returned object is
HashSet
-
toString
Returns this model object, Context, and its contents as a String
-