org.apache.ws.policy.util
Class OMPolicyReader

java.lang.Object
  extended byorg.apache.ws.policy.util.OMPolicyReader
All Implemented Interfaces:
PolicyReader

public class OMPolicyReader
extends java.lang.Object
implements PolicyReader

OMPolicyReader implements PolicyReader interface and provides different methods to create a policy object It ueses AxisOM as its underlying mechanism to process XML.


Method Summary
 Policy readPolicy(java.io.InputStream in)
          Creates a Policy object from an InputStream.
 Policy readPolicy(org.apache.axiom.om.OMElement element)
           
 PolicyReference readPolicyReference(org.apache.axiom.om.OMElement element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readPolicy

public Policy readPolicy(java.io.InputStream in)
Description copied from interface: PolicyReader
Creates a Policy object from an InputStream.

Specified by:
readPolicy in interface PolicyReader
Parameters:
in - the inputStream of the source file
Returns:
a policy object constructed from the InputStream

readPolicy

public Policy readPolicy(org.apache.axiom.om.OMElement element)

readPolicyReference

public PolicyReference readPolicyReference(org.apache.axiom.om.OMElement element)


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.