org.apache.neethi
Class Constants

java.lang.Object
  extended by org.apache.neethi.Constants

public final class Constants
extends Object

Constants contains the set of Constants that are used throughout the Neethi2 framework.


Field Summary
static String ATTR_ID
           
static String ATTR_IGNORABLE
           
static String ATTR_NAME
           
static String ATTR_OPTIONAL
           
static String ATTR_POLICYURIS
           
static String ATTR_URI
           
static String ATTR_WSP
           
static String ATTR_WSU
           
static String ELEM_ALL
           
static String ELEM_EXACTLYONE
           
static String ELEM_POLICY
           
static String ELEM_POLICY_APPLIES_TO
           
static String ELEM_POLICY_ATTACHMENT
           
static String ELEM_POLICY_REF
           
static QName Q_ELEM_IGNORABLE_15_ATTR
           
static QName Q_ELEM_OPTIONAL_15_ATTR
           
static QName Q_ELEM_OPTIONAL_ATTR
           
static QName Q_ELEM_POLICY
           
static QName Q_ELEM_POLICY_15
           
static short TYPE_ALL
           
static short TYPE_ASSERTION
           
static short TYPE_EXACTLYONE
           
static short TYPE_POLICY
           
static short TYPE_POLICY_REF
           
static String URI_POLICY_13_NS
           
static String URI_POLICY_15_DEPRECATED_NS
           
static String URI_POLICY_15_NS
           
static String URI_POLICY_NS
           
static String URI_WSU_NS
           
 
Method Summary
static String findPolicyNamespace(javax.xml.stream.XMLStreamWriter writer)
           
static boolean isAppliesToElem(QName qn)
           
static boolean isIgnorableAttribute(QName qn)
           
static boolean isInPolicyNS(QName q)
           
static boolean isOptionalAttribute(QName qn)
           
static boolean isPolicyElement(QName q)
           
static boolean isPolicyElement(String ns, String local)
           
static boolean isPolicyNS(String ns)
          Check if the given namespace URI refers to one of the supported WS-Policy versions.
static boolean isPolicyRef(QName q)
           
static boolean isPolicyRef(String ns, String local)
           
static boolean isPolicyURIsAttr(QName qn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_NAME

public static final String ATTR_NAME
See Also:
Constant Field Values

ATTR_ID

public static final String ATTR_ID
See Also:
Constant Field Values

ATTR_WSP

public static final String ATTR_WSP
See Also:
Constant Field Values

ATTR_WSU

public static final String ATTR_WSU
See Also:
Constant Field Values

ATTR_URI

public static final String ATTR_URI
See Also:
Constant Field Values

URI_POLICY_13_NS

public static final String URI_POLICY_13_NS
See Also:
Constant Field Values

URI_POLICY_15_DEPRECATED_NS

public static final String URI_POLICY_15_DEPRECATED_NS
See Also:
Constant Field Values

URI_POLICY_15_NS

public static final String URI_POLICY_15_NS
See Also:
Constant Field Values

URI_POLICY_NS

public static final String URI_POLICY_NS
See Also:
Constant Field Values

URI_WSU_NS

public static final String URI_WSU_NS
See Also:
Constant Field Values

ELEM_POLICY

public static final String ELEM_POLICY
See Also:
Constant Field Values

ELEM_EXACTLYONE

public static final String ELEM_EXACTLYONE
See Also:
Constant Field Values

ELEM_ALL

public static final String ELEM_ALL
See Also:
Constant Field Values

ELEM_POLICY_REF

public static final String ELEM_POLICY_REF
See Also:
Constant Field Values

ELEM_POLICY_ATTACHMENT

public static final String ELEM_POLICY_ATTACHMENT
See Also:
Constant Field Values

TYPE_POLICY

public static final short TYPE_POLICY
See Also:
Constant Field Values

TYPE_EXACTLYONE

public static final short TYPE_EXACTLYONE
See Also:
Constant Field Values

TYPE_ALL

public static final short TYPE_ALL
See Also:
Constant Field Values

TYPE_POLICY_REF

public static final short TYPE_POLICY_REF
See Also:
Constant Field Values

TYPE_ASSERTION

public static final short TYPE_ASSERTION
See Also:
Constant Field Values

ATTR_OPTIONAL

public static final String ATTR_OPTIONAL
See Also:
Constant Field Values

ATTR_IGNORABLE

public static final String ATTR_IGNORABLE
See Also:
Constant Field Values

ATTR_POLICYURIS

public static final String ATTR_POLICYURIS
See Also:
Constant Field Values

ELEM_POLICY_APPLIES_TO

public static final String ELEM_POLICY_APPLIES_TO
See Also:
Constant Field Values

Q_ELEM_POLICY

public static final QName Q_ELEM_POLICY

Q_ELEM_POLICY_15

public static final QName Q_ELEM_POLICY_15

Q_ELEM_OPTIONAL_ATTR

public static final QName Q_ELEM_OPTIONAL_ATTR

Q_ELEM_OPTIONAL_15_ATTR

public static final QName Q_ELEM_OPTIONAL_15_ATTR

Q_ELEM_IGNORABLE_15_ATTR

public static final QName Q_ELEM_IGNORABLE_15_ATTR
Method Detail

isPolicyNS

public static boolean isPolicyNS(String ns)
Check if the given namespace URI refers to one of the supported WS-Policy versions.

Parameters:
ns - the namespace URI
Returns:
true if the specification identified by the namespace URI is supported by Neethi, false if it is null or not supported

isInPolicyNS

public static boolean isInPolicyNS(QName q)

isPolicyElement

public static boolean isPolicyElement(String ns,
                                      String local)

isPolicyElement

public static boolean isPolicyElement(QName q)

isPolicyRef

public static boolean isPolicyRef(String ns,
                                  String local)

isPolicyRef

public static boolean isPolicyRef(QName q)

isOptionalAttribute

public static boolean isOptionalAttribute(QName qn)

isIgnorableAttribute

public static boolean isIgnorableAttribute(QName qn)

isAppliesToElem

public static boolean isAppliesToElem(QName qn)

isPolicyURIsAttr

public static boolean isPolicyURIsAttr(QName qn)

findPolicyNamespace

public static String findPolicyNamespace(javax.xml.stream.XMLStreamWriter writer)
                                  throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.