Oracle Entitlements Server for Java API Reference

com.bea.security
Class SimpleContextElement

java.lang.Object
  |
  +--com.bea.security.AppContextElement
        |
        +--com.bea.security.SimpleContextElement

public class SimpleContextElement
extends AppContextElement

An extention of a context element for an application context.

You can use the SimpleContextElement class with the HashMapContext class in security runtime applications to present the application's context information.

Author:
Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.
See Also:
HashMapContext

Field Summary
protected  java.lang.String name
          The name of this context element.
protected  java.lang.String namespace
          The namespace of this context element.
protected  java.lang.String uqname
          The unqualified (no namespace) name of this context element
protected  java.lang.Object value
          A reference to the value of this context element.
 
Constructor Summary
SimpleContextElement(AppContextElement source)
          Constructs this object based on existing element.
SimpleContextElement(java.lang.String elemname)
          Constructs this element giving it a name.
SimpleContextElement(java.lang.String elemname, java.lang.Object elemvalue)
          Constructs this object giving it a name and a value.
SimpleContextElement(java.lang.String elemns, java.lang.String elemuqname, java.lang.Object elemvalue)
          Constructs this object giving it a namespace, name and a value.
 
Method Summary
 java.lang.String getName()
          Gets this element's name.
 java.lang.String getNamespace()
          Gets this element's namespace.
 java.lang.String getUnqualifiedName()
          Gets this element's unqualified (no namespace) name.
 java.lang.Object getValue()
          Gets this element's value.
 void setValue(java.lang.Object elemvalue)
          Sets this element's value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespace

protected java.lang.String namespace
The namespace of this context element.

name

protected java.lang.String name
The name of this context element.

uqname

protected java.lang.String uqname
The unqualified (no namespace) name of this context element

value

protected java.lang.Object value
A reference to the value of this context element.
Constructor Detail

SimpleContextElement

public SimpleContextElement(java.lang.String elemname)
Constructs this element giving it a name.

Parameters:
elemname - The name of this element as a String.

SimpleContextElement

public SimpleContextElement(java.lang.String elemname,
                            java.lang.Object elemvalue)
Constructs this object giving it a name and a value.

Parameters:
elemname - The name of this element as a String.
elemvalue - The value of this element as an Object.

SimpleContextElement

public SimpleContextElement(java.lang.String elemns,
                            java.lang.String elemuqname,
                            java.lang.Object elemvalue)
Constructs this object giving it a namespace, name and a value. The full name of the element is obtained by concatenating the namespace and unqualified name No namespace delimiter is assumed, so it must be explicitly included at the end of the namespace.

Parameters:
elemns - The namespace of this element as a String.
elemuqname - The unqualified name (no namespace) of this element as a String.
elemvalue - The value of this element as an Object.

SimpleContextElement

public SimpleContextElement(AppContextElement source)
Constructs this object based on existing element.

Parameters:
source - The source element to copy the namespace, name, and value from.
Method Detail

getNamespace

public java.lang.String getNamespace()
Gets this element's namespace.

Returns:
The namespace of this element.
Overrides:
getNamespace in class AppContextElement

getName

public java.lang.String getName()
Gets this element's name.

Returns:
The name of this element.
Overrides:
getName in class AppContextElement

getUnqualifiedName

public java.lang.String getUnqualifiedName()
Gets this element's unqualified (no namespace) name.

Returns:
The unqualified name of this element.
Overrides:
getUnqualifiedName in class AppContextElement

getValue

public java.lang.Object getValue()
Gets this element's value.

Returns:
The value of this element.
Overrides:
getValue in class AppContextElement

setValue

public void setValue(java.lang.Object elemvalue)
Sets this element's value.

Parameters:
elemvalue - A value to associate with this element as an Object.