org.apache.ws.policy.util
Class DOMPolicyReader

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

public class DOMPolicyReader
extends java.lang.Object
implements PolicyReader

DOMPolicyReader implements PolicyReader and provides different methods to create a policy object. It uses DOM as it underlying mechanism to XML.


Field Summary
static java.lang.String XMLNS_NS_URI
           
 
Method Summary
 Policy readPolicy(org.w3c.dom.Element element)
           
 Policy readPolicy(java.io.InputStream in)
          Creates a Policy object from an InputStream.
 PolicyReference readPolicyReference(org.w3c.dom.Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XMLNS_NS_URI

public static final java.lang.String XMLNS_NS_URI
See Also:
Constant Field Values
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.w3c.dom.Element element)

readPolicyReference

public PolicyReference readPolicyReference(org.w3c.dom.Element element)


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