com.sun.identity.saml.assertion
Class Advice

java.lang.Object
  extended bycom.sun.identity.saml.assertion.Advice

public class Advice
extends java.lang.Object

The element contains additional information that the issuer wish to provide. This information MAY be ignored by applications without affecting either the semantics or validity. Advice elements MAY be specified in an extension schema.


Constructor Summary
Advice(org.w3c.dom.Element element)
          Constructors an Advice element from an existing XML block.
Advice(java.util.List assertionidreference, java.util.List assertion, java.util.List otherelement)
          Constructor
 
Method Summary
 java.util.List getAssertion()
          Get access to the Assertion in this Advice element
 java.util.List getAssertionIDReference()
          Returns access to the AssertionIDReference in this Advice element.
 java.util.List getOtherElement()
          Get other element contained within the Advice element
 java.lang.String toString()
          Create a String representation of the element
 java.lang.String toString(boolean includeNS, boolean declareNS)
          Returns a String representation of the <saml:Advice> element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Advice

public Advice(org.w3c.dom.Element element)
       throws SAMLException
Constructors an Advice element from an existing XML block.

Parameters:
element - representing a DOM tree element
Throws:
SAMLException - if there is an error in the sender or in the element definition.

Advice

public Advice(java.util.List assertionidreference,
              java.util.List assertion,
              java.util.List otherelement)
Constructor

Parameters:
assertionidreference - A List of AssertionIDReference.
assertion - A List of Assertion
otherelement - A List of any element defined as <any namespace="##other" processContents="lax">;
Method Detail

getAssertionIDReference

public java.util.List getAssertionIDReference()
Returns access to the AssertionIDReference in this Advice element.

Returns:
A list of AssertionIDReference in this Advice element.

getAssertion

public java.util.List getAssertion()
Get access to the Assertion in this Advice element

Returns:
A list of Assertion in this Advice element

getOtherElement

public java.util.List getOtherElement()
Get other element contained within the Advice element

Returns:
A list of other elements.

toString

public java.lang.String toString()
Create a String representation of the element

Returns:
A String representing the valid XML for this element

toString

public java.lang.String toString(boolean includeNS,
                                 boolean declareNS)
Returns a String representation of the <saml:Advice> element.

Parameters:
includeNS - Determines whether or not the namespace qualifier is prepended to the Element when converted
declareNS - Determines whether or not the namespace is declared within the Element.
Returns:
A string containing the valid XML for this element


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.