Class ObjectFactory


  • public class ObjectFactory
    extends DefaultJAXBContextImpl
    This object contains factory methods for each Java content interface and Java element interface generated in the com.sun.identity.wsfederation.jaxb.wspolicy package.

    An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of these are provided in this class.

    • Field Detail

      • grammarInfo

        public static final GrammarInfo grammarInfo
      • version

        public static final Class version
    • Constructor Detail

      • ObjectFactory

        public ObjectFactory()
        Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.sun.identity.wsfederation.jaxb.wspolicy
    • Method Detail

      • newInstance

        public Object newInstance​(Class javaContentInterface)
                           throws JAXBException
        Create an instance of the specified Java content interface.
        Overrides:
        newInstance in class DefaultJAXBContextImpl
        Parameters:
        javaContentInterface - the Class object of the javacontent interface to instantiate
        Returns:
        a new instance
        Throws:
        JAXBException - if an error occurs
      • getProperty

        public Object getProperty​(String name)
                           throws PropertyException
        Get the specified property. This method can only be used to get provider specific properties. Attempting to get an undefined property will result in a PropertyException being thrown.
        Overrides:
        getProperty in class DefaultJAXBContextImpl
        Parameters:
        name - the name of the property to retrieve
        Returns:
        the value of the requested property
        Throws:
        PropertyException - when there is an error retrieving the given property or value
      • setProperty

        public void setProperty​(String name,
                                Object value)
                         throws PropertyException
        Set the specified property. This method can only be used to set provider specific properties. Attempting to set an undefined property will result in a PropertyException being thrown.
        Overrides:
        setProperty in class DefaultJAXBContextImpl
        Parameters:
        name - the name of the property to retrieve
        value - the value of the property to be set
        Throws:
        PropertyException - when there is an error processing the given property or value
      • createPolicyAttachmentElement

        public PolicyAttachmentElement createPolicyAttachmentElement()
                                                              throws JAXBException
        Create an instance of PolicyAttachmentElement
        Throws:
        JAXBException - if an error occurs
      • createOperatorContentType

        public OperatorContentType createOperatorContentType()
                                                      throws JAXBException
        Create an instance of OperatorContentType
        Throws:
        JAXBException - if an error occurs
      • createAllElement

        public AllElement createAllElement()
                                    throws JAXBException
        Create an instance of AllElement
        Throws:
        JAXBException - if an error occurs
      • createPolicyAttachmentType

        public PolicyAttachmentType createPolicyAttachmentType()
                                                        throws JAXBException
        Create an instance of PolicyAttachmentType
        Throws:
        JAXBException - if an error occurs
      • createAppliesToType

        public AppliesToType createAppliesToType()
                                          throws JAXBException
        Create an instance of AppliesToType
        Throws:
        JAXBException - if an error occurs
      • createPolicyType

        public PolicyType createPolicyType()
                                    throws JAXBException
        Create an instance of PolicyType
        Throws:
        JAXBException - if an error occurs
      • createAppliesToElement

        public AppliesToElement createAppliesToElement()
                                                throws JAXBException
        Create an instance of AppliesToElement
        Throws:
        JAXBException - if an error occurs
      • createExactlyOneElement

        public ExactlyOneElement createExactlyOneElement()
                                                  throws JAXBException
        Create an instance of ExactlyOneElement
        Throws:
        JAXBException - if an error occurs
      • createPolicyElement

        public PolicyElement createPolicyElement()
                                          throws JAXBException
        Create an instance of PolicyElement
        Throws:
        JAXBException - if an error occurs
      • createPolicyReferenceElement

        public PolicyReferenceElement createPolicyReferenceElement()
                                                            throws JAXBException
        Create an instance of PolicyReferenceElement
        Throws:
        JAXBException - if an error occurs
      • createPolicyReferenceType

        public PolicyReferenceType createPolicyReferenceType()
                                                      throws JAXBException
        Create an instance of PolicyReferenceType
        Throws:
        JAXBException - if an error occurs