Class Context
- java.lang.Object
- 
- com.ibm.wsspi.security.wim.model.Context
 
- 
 public class Context extends java.lang.ObjectJava 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 SummaryConstructors Constructor Description Context()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.String propName)Gets the value of the requested propertyjava.lang.StringgetDataType(java.lang.String propName)Gets the Java type of the value of the provided property.java.lang.StringgetKey()Gets the value of the key property.static java.util.ListgetPropertyNames(java.lang.String entityTypeName)Gets a list of all supported properties for this model object, Contextstatic java.util.HashSetgetSubTypes()Gets a set of any model objects which extend this model object, Contextjava.util.ArrayListgetSuperTypes()Gets a list of any model objects which this model object, Context is an extension of.java.lang.StringgetTypeName()Gets the name of this model object, Contextjava.lang.ObjectgetValue()Gets the value of the value property.booleanisSet(java.lang.String propName)Returns true if the requested property is set; false, otherwise.booleanisSetKey()Returns true if the key property is set; false, otherwise.booleanisSetValue()Returns true if the value property is set; false, otherwise.booleanisSubType(java.lang.String superTypeName)Returns a true if the provided model object is one that this model object extends; false, otherwise.voidset(java.lang.String propName, java.lang.Object value)Sets the value of the provided property to the provided value.voidsetKey(java.lang.String value)Sets the value of the key property.voidsetValue(java.lang.Object value)Sets the value of the value property.java.lang.StringtoString()Returns this model object, Context, and its contents as a Stringvoidunset(java.lang.String propName)Sets the value of provided property to null.
 
- 
- 
- 
Method Detail- 
getKeypublic java.lang.String getKey() Gets the value of the key property.- Returns:
- possible object is String
 
 - 
setKeypublic void setKey(java.lang.String value) Sets the value of the key property.- Parameters:
- value- allowed object is- String
 
 - 
isSetKeypublic boolean isSetKey() Returns true if the key property is set; false, otherwise.- Returns:
- returned object is boolean
 
 - 
getValuepublic java.lang.Object getValue() Gets the value of the value property.- Returns:
- possible object is Object
 
 - 
setValuepublic void setValue(java.lang.Object value) Sets the value of the value property.- Parameters:
- value- allowed object is- Object
 
 - 
isSetValuepublic boolean isSetValue() Returns true if the value property is set; false, otherwise.- Returns:
- returned object is boolean
 
 - 
getpublic java.lang.Object get(java.lang.String propName) Gets the value of the requested property- Parameters:
- propName- allowed object is- String
- Returns:
- returned object is Object
 
 - 
isSetpublic boolean isSet(java.lang.String propName) Returns true if the requested property is set; false, otherwise.- Returns:
- returned object is boolean
 
 - 
setpublic void set(java.lang.String propName, java.lang.Object value)Sets the value of the provided property to the provided value.- Parameters:
- propName- allowed object is- String
- value- allowed object is- Object
 
 - 
unsetpublic void unset(java.lang.String propName) Sets the value of provided property to null.- Parameters:
- propName- allowed object is- String
 
 - 
getTypeNamepublic java.lang.String getTypeName() Gets the name of this model object, Context- Returns:
- returned object is String
 
 - 
getPropertyNamespublic static java.util.List getPropertyNames(java.lang.String entityTypeName) Gets a list of all supported properties for this model object, Context- Parameters:
- entityTypeName- allowed object is- String
- Returns:
- returned object is List
 
 - 
getDataTypepublic java.lang.String getDataType(java.lang.String propName) Gets the Java type of the value of the provided property. For example: String, List- Parameters:
- propName- allowed object is- String
- Returns:
- returned object is String
 
 - 
getSuperTypespublic java.util.ArrayList getSuperTypes() Gets a list of any model objects which this model object, Context is an extension of.- Returns:
- returned object is ArrayList
 
 - 
isSubTypepublic boolean isSubType(java.lang.String superTypeName) Returns a true if the provided model object is one that this model object extends; false, otherwise.- Parameters:
- superTypeName- allowed object is- String
- Returns:
- returned object is boolean
 
 - 
getSubTypespublic static java.util.HashSet getSubTypes() Gets a set of any model objects which extend this model object, Context- Returns:
- returned object is HashSet
 
 - 
toStringpublic java.lang.String toString() Returns this model object, Context, and its contents as a String- Overrides:
- toStringin class- java.lang.Object
- Returns:
- returned object is String
 
 
- 
 
-