Oracle Entitlements Server Provider SSPI API Reference

weblogic.security.service
Class ContextElement

java.lang.Object
  |
  +--weblogic.security.service.ContextElement

public class ContextElement
extends java.lang.Object

A ContextElement is an object used to represent a named value that is used in a ContextHandler.

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

Constructor Summary
ContextElement(java.lang.String name)
          Creates a ContextElement with the specified name.
ContextElement(java.lang.String name, java.lang.Object value)
          Creates a ContextElement with the specified name and value.
ContextElement(java.lang.String namespace, java.lang.String uqname, java.lang.Object value)
          Creates a ContextElement with the specified namespace, unqualified name and value.
 
Method Summary
 java.lang.String getName()
          Gets the name of the ContextElement.
 java.lang.String getNamespace()
          Gets the namespace of the ContextElement.
 java.lang.String getUnqualifiedName()
          Gets the unqualified name of the ContextElement.
 java.lang.Object getValue()
          Gets the value of the ContextElement.
 void setValue(java.lang.Object value)
          Sets the value of the ContextElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextElement

public ContextElement(java.lang.String name)
Creates a ContextElement with the specified name.

Parameters:
name - the name of the ContextElement, represented as a String.


ContextElement

public ContextElement(java.lang.String name,
                      java.lang.Object value)
Creates a ContextElement with the specified name and value.

Parameters:
name - the name of the ContextElement, represented as a String.

value - an Object that contains the value of the ContextElement.

ContextElement

public ContextElement(java.lang.String namespace,
                      java.lang.String uqname,
                      java.lang.Object value)
Creates a ContextElement with the specified namespace, unqualified name and value.

No namespace, name delimiter is assumed, so it must be explicitly included at the end of the namespace

Parameters:
namespace - the namespace of the ContextElement, represented as a String.

uqname - the unqualified name of the ContextElement, represented as a String.

value - an Object that contains the value of the ContextElement.
Method Detail

getNamespace

public java.lang.String getNamespace()
Gets the namespace of the ContextElement.

Returns:
the namespace of the ContextElement, represented as a String.


getUnqualifiedName

public java.lang.String getUnqualifiedName()
Gets the unqualified name of the ContextElement.

Returns:
the name of the ContextElement, represented as a String.


getName

public java.lang.String getName()
Gets the name of the ContextElement.

Returns:
the name of the ContextElement, represented as a String.


getValue

public java.lang.Object getValue()
Gets the value of the ContextElement.

Returns:
an Object that contains the value of the ContextElement. The caller is responsible for knowing the data type of the value.

See Also:
setValue(java.lang.Object)

setValue

public void setValue(java.lang.Object value)
Sets the value of the ContextElement.

Parameters:
value - an Object that contains the value of the ContextElement.

See Also:
getValue()