public abstract class PolicyAssertion extends Object
SimpleAssertion
or ComplexAssertion should be used as a base class instead.| Modifier | Constructor and Description |
|---|---|
protected |
PolicyAssertion() |
protected |
PolicyAssertion(AssertionData assertionData,
Collection<? extends PolicyAssertion> assertionParameters)
Creates generic assertionand stores the data specified in input parameters
|
protected |
PolicyAssertion(AssertionData assertionData,
Collection<? extends PolicyAssertion> assertionParameters,
AssertionSet nestedAlternative)
Deprecated.
Non-abstract assertion types should derive from
SimpleAssertion
or ComplexAssertion instead. Policy class will not provide support for
nested policy alternatives in the future. This responsibility is delegated to
ComplexAssertion class instead. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
An
Object.equals(Object obj) method override. |
Map<QName,String> |
getAttributes()
Returns the disconnected map of attributes attached to the assertion.
|
Set<Map.Entry<QName,String>> |
getAttributesSet()
Returns the disconnected set of attributes attached to the assertion.
|
String |
getAttributeValue(QName name)
Returns the value of an attribute.
|
<T extends PolicyAssertion> |
getImplementation(Class<T> type)
Casts the assertion to the implementation type.
|
QName |
getName()
Returns the fully qualified name of the assertion.
|
Iterator<PolicyAssertion> |
getNestedAssertionsIterator()
Deprecated.
Use getNestedParametersIterator() instead
|
NestedPolicy |
getNestedPolicy()
Returns the nested policy if any.
|
Iterator<PolicyAssertion> |
getParametersIterator()
Returns the assertion's parameter collection iterator.
|
String |
getValue()
Returns the value of the assertion - the character data content contained in the assertion element representation.
|
int |
hashCode()
An
Object.hashCode() method override. |
boolean |
hasNestedAssertions()
Deprecated.
Use hasParameters() instead
|
boolean |
hasNestedPolicy()
Returns the boolean information whether this assertion contains nested policy.
|
boolean |
hasParameters()
Returns the boolean information whether this assertion contains any parameters.
|
boolean |
isIgnorable()
Method specifies whether the assertion is ignorable or not.
|
boolean |
isOptional()
Method specifies whether the assertion is otpional or not.
|
boolean |
isPrivate()
Method specifies whether the assertion is private or not.
|
String |
toString()
An
Object.toString() method override. |
protected StringBuffer |
toString(int indentLevel,
StringBuffer buffer)
A helper method that appends indented string representation of this instance to the input string buffer.
|
protected PolicyAssertion()
@Deprecated protected PolicyAssertion(AssertionData assertionData, Collection<? extends PolicyAssertion> assertionParameters, AssertionSet nestedAlternative)
SimpleAssertion
or ComplexAssertion instead. Policy class will not provide support for
nested policy alternatives in the future. This responsibility is delegated to
ComplexAssertion class instead.assertionData - assertion creation data specifying the details of newly created assertion. May be null.assertionParameters - collection of assertions parameters of this policy assertion. May be null.nestedAlternative - assertion set specifying nested policy alternative. May be null.protected PolicyAssertion(AssertionData assertionData, Collection<? extends PolicyAssertion> assertionParameters)
assertionData - assertion creation data specifying the details of newly created assertionassertionParameters - collection of assertions parameters of this policy assertion. May be null.public final QName getName()
public final String getValue()
null if there is no value set for the assertion.public boolean isOptional()
true if the wsp:optional attribute
is present on the assertion and its value is 'true'. Otherwise the method returns false.'true' if the assertion is optional. Returns false otherwise.public boolean isIgnorable()
true if the wsp:Ignorable attribute
is present on the assertion and its value is 'true'. Otherwise the method returns false.'true' if the assertion is ignorable. Returns false otherwise.public final boolean isPrivate()
'true' if the assertion is marked as private (i.e. should not be marshalled int generated WSDL documents). Returns false otherwise.public final Set<Map.Entry<QName,String>> getAttributesSet()
Map.Entry<attributeName, attributeValue> element.
'Disconnected' means, that the result of this method will not be synchronized with any consequent assertion's attribute modification. It is
also important to notice that a manipulation with returned set of attributes will not have any effect on the actual assertion's
attributes.public final Map<QName,String> getAttributes()
public final String getAttributeValue(QName name)
name - The fully qualified name of the attributenull if there is no such attribute or if it's value is null.@Deprecated public final boolean hasNestedAssertions()
true if the assertion contains parameters. Returns false otherwise.public final boolean hasParameters()
true if the assertion contains parameters. Returns false otherwise.@Deprecated public final Iterator<PolicyAssertion> getNestedAssertionsIterator()
public final Iterator<PolicyAssertion> getParametersIterator()
public boolean hasNestedPolicy()
true if the assertion contains child (nested) policy. Returns false otherwise.public NestedPolicy getNestedPolicy()
null otherwise.public <T extends PolicyAssertion> T getImplementation(Class<T> type)
T - The implementation type of the assertion.type - The implementation type of the assertion. May not be null.public String toString()
Object.toString() method override.protected StringBuffer toString(int indentLevel, StringBuffer buffer)
indentLevel - indentation level to be used.buffer - buffer to be used for appending string representation of this instancepublic boolean equals(Object obj)
Object.equals(Object obj) method override.Copyright © 2006–2017 Oracle Corporation. All rights reserved.