/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ECPFactory.java,v 1.2 2008/06/25 05:47:46 qcheng Exp $
*
*/
/**
* This is the factory class to obtain object instances for concrete elements in
* the ecp schema. This factory class provides 3 methods for each element.
* <code>createElementName()</code>,
* <code>createElementName(String value)</code>,
* <code>createElementName(org.w3c.dom.Element value)</code>.
*
* @supported.all.api
*/
public class ECPFactory {
/* Constructor for ECPFactory */
private ECPFactory() {
}
/**
* Returns an instance of the <code>ECPFactory</code> Object.
*
* @return an instance of the <code>ECPFactory</code> object.
*/
return ecpInstance;
}
/**
* Returns the <code>ECPRelayState</code> Object.
*
* @return the <code>ECPRelayState</code> object.
* @throws SAML2Exception if <code>ECPRelayState</code> cannot be created.
*/
return new ECPRelayStateImpl();
} else {
return (ECPRelayState) obj;
}
}
/**
* Returns the <code>ECPRelayState</code> Object.
*
* @param value the Document Element of ECP <code>RelayState</code> object.
* @return the <code>ECPRelayState</code> object.
* @throws SAML2Exception if <code>ECPRelayState</code> cannot be created.
*/
throws SAML2Exception {
return new ECPRelayStateImpl(value);
} else {
return (ECPRelayState) obj;
}
}
/**
* Returns the <code>ECPRelayState</code> Object.
*
* @param value ECP <code>RelayState</code> XML String.
* @return the <code>ECPRelayState</code> object.
* @throws SAML2Exception if <code>ECPRelayState</code> cannot be created.
*/
throws SAML2Exception {
return new ECPRelayStateImpl(value);
} else {
return (ECPRelayState) obj;
}
}
/**
* Returns the <code>ECPRequest</code> Object.
*
* @return the <code>ECPRequest</code> object.
* @throws SAML2Exception if <code>ECPRequest</code> cannot be created.
*/
return new ECPRequestImpl();
} else {
return (ECPRequest) obj;
}
}
/**
* Returns the <code>ECPRequest</code> Object.
*
* @param value the Document Element of ECP <code>Request</code> object.
* @return the <code>ECPRequest</code> object.
* @throws SAML2Exception if <code>ECPRequest</code> cannot be created.
*/
throws SAML2Exception {
return new ECPRequestImpl(value);
} else {
return (ECPRequest) obj;
}
}
/**
* Returns the <code>ECPRequest</code> Object.
*
* @param value ECP <code>Request</code> XML String.
* @return the <code>ECPRequest</code> object.
* @throws SAML2Exception if <code>ECPRequest</code> cannot be created.
*/
throws SAML2Exception {
return new ECPRequestImpl(value);
} else {
return (ECPRequest) obj;
}
}
/**
* Returns the <code>ECPResponse</code> Object.
*
* @return the <code>ECPResponse</code> object.
* @throws SAML2Exception if <code>ECPResponse</code> cannot be created.
*/
return new ECPResponseImpl();
} else {
return (ECPResponse) obj;
}
}
/**
* Returns the <code>ECPResponse</code> Object.
*
* @param value the Document Element of ECP <code>Response</code> object.
* @return the <code>ECPResponse</code> object.
* @throws SAML2Exception if <code>ECPResponse</code> cannot be created.
*/
throws SAML2Exception {
return new ECPResponseImpl(value);
} else {
return (ECPResponse) obj;
}
}
/**
* Returns the <code>ECPResponse</code> Object.
*
* @param value ECP <code>Response</code> XML String.
* @return the <code>ECPResponse</code> object.
* @throws SAML2Exception if <code>ECPResponse</code> cannot be created.
*/
throws SAML2Exception {
return new ECPResponseImpl(value);
} else {
return (ECPResponse) obj;
}
}
}