org.apache.sandesha2.policy
Class RMPolicyToken

java.lang.Object
  extended byorg.apache.sandesha2.policy.RMPolicyToken

public class RMPolicyToken
extends java.lang.Object


Field Summary
static int COMPLEX_TOKEN
          The following values describe the type of the rm pocliy token.
static int SIMPLE_TOKEN
           
static int WITH_CONTENT
           
 
Constructor Summary
RMPolicyToken(java.lang.String token, int type, java.lang.String[] attribs)
           
RMPolicyToken(java.lang.String token, int type, java.lang.String[] attribs, java.lang.Object h)
           
 
Method Summary
 RMPolicyToken copy()
           
 java.lang.String[] getAttributes()
           
 RMPolicyToken getChildToken(java.lang.String sptName)
           
 java.lang.String getTokenName()
           
 boolean invokeProcessTokenMethod(RMProcessorContext spc)
           
 void removeChildToken(java.lang.String sptName)
           
 void setChildToken(RMPolicyToken spt)
           
 void setProcessTokenMethod(java.lang.Object h)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPLEX_TOKEN

public static final int COMPLEX_TOKEN
The following values describe the type of the rm pocliy token. A complex token starts a transaction because it contains nested tokens. A simple token does not contain nested tokens but stands allone an defines a simple assertion or property. If Content is set then this token contains additional text content, e.g. XPath expressions.

See Also:
Constant Field Values

SIMPLE_TOKEN

public static final int SIMPLE_TOKEN
See Also:
Constant Field Values

WITH_CONTENT

public static final int WITH_CONTENT
See Also:
Constant Field Values
Constructor Detail

RMPolicyToken

public RMPolicyToken(java.lang.String token,
                     int type,
                     java.lang.String[] attribs,
                     java.lang.Object h)
              throws java.lang.SecurityException,
                     java.lang.NoSuchMethodException

RMPolicyToken

public RMPolicyToken(java.lang.String token,
                     int type,
                     java.lang.String[] attribs)
Method Detail

getAttributes

public java.lang.String[] getAttributes()
Returns:
Returns the attributes.

setProcessTokenMethod

public void setProcessTokenMethod(java.lang.Object h)
                           throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

invokeProcessTokenMethod

public boolean invokeProcessTokenMethod(RMProcessorContext spc)
                                 throws java.lang.IllegalArgumentException,
                                        java.lang.IllegalAccessException,
                                        java.lang.reflect.InvocationTargetException
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

getTokenName

public java.lang.String getTokenName()

setChildToken

public void setChildToken(RMPolicyToken spt)

getChildToken

public RMPolicyToken getChildToken(java.lang.String sptName)

removeChildToken

public void removeChildToken(java.lang.String sptName)

copy

public RMPolicyToken copy()


Copyright © 2005-2006 Apache Web Services. All Rights Reserved.