com.sun.xml.ws.policy
Class NestedPolicy

java.lang.Object
  extended by com.sun.xml.ws.policy.Policy
      extended by com.sun.xml.ws.policy.NestedPolicy
All Implemented Interfaces:
Iterable<AssertionSet>

public final class NestedPolicy
extends Policy

A special policy implementation that assures that only no or single policy alternative is possible within this type of policy.

Author:
Marek Potociar

Method Summary
 boolean equals(Object obj)
          An Object.equals(Object obj) method override.
 AssertionSet getAssertionSet()
          Returns the AssertionSet instance representing a single policy alterantive held wihtin this nested policy object.
 int hashCode()
          An Object.hashCode() method override.
 String toString()
          An Object.toString() method override.
 
Methods inherited from class com.sun.xml.ws.policy.Policy
contains, contains, createEmptyPolicy, createEmptyPolicy, createEmptyPolicy, createNullPolicy, createNullPolicy, createNullPolicy, createPolicy, createPolicy, createPolicy, getId, getIdOrName, getName, getNamespaceVersion, getNumberOfAssertionSets, getVocabulary, isEmpty, isNull, iterator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getAssertionSet

public AssertionSet getAssertionSet()
Returns the AssertionSet instance representing a single policy alterantive held wihtin this nested policy object. If the nested policy represents a policy with no alternatives (i.e. nothing is allowed) the method returns null.

Returns:
nested policy alternative represented by AssertionSet object. May return null in case the nested policy represents 'nothing allowed' policy.

equals

public boolean equals(Object obj)
An Object.equals(Object obj) method override.

Overrides:
equals in class Policy

hashCode

public int hashCode()
Description copied from class: Policy
An Object.hashCode() method override.

Overrides:
hashCode in class Policy

toString

public String toString()
An Object.toString() method override.

Overrides:
toString in class Policy


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.