FileDocCategorySizeDatePackage
EndpointReference.javaAPI DocExample3769Tue May 29 16:56:30 BST 2007com.sun.xml.ws.addressing.impl.policy

EndpointReference

public class EndpointReference extends com.sun.xml.ws.policy.PolicyAssertion
author
Abhijit Das

Fields Summary
private Address
address
private boolean
populated
Constructors Summary
public EndpointReference(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
Creates a new instance of EndpointReference

    
               
          
        super(name,nestedAssertions,nestedAlternative);
    
Methods Summary
public AddressgetAddress()

        populate();
        return address;
    
private voidpopulate()

        if(populated){
            return;
        }
        synchronized (this.getClass()){
            if(!populated){
                if ( this.hasNestedAssertions() ) {
                    Iterator <PolicyAssertion> it = this.getNestedAssertionsIterator();
                    while ( it.hasNext() ) {
                        PolicyAssertion assertion = it.next();                        
                        if ( PolicyUtil.isAddress(assertion)) {
                            this.address = (Address) assertion;
                        }
                    }
                }
                populated = true;
            }
        }