Class GenericArtifactImpl

    • Constructor Detail

      • GenericArtifactImpl

        protected GenericArtifactImpl​(GovernanceArtifact artifact,
                                      String mediaType)
        Copy constructor used for cloning.
        Parameters:
        artifact - the object to be copied.
      • GenericArtifactImpl

        public GenericArtifactImpl​(String id,
                                   QName qName,
                                   String mediaType)
        Constructor accepting resource identifier and the qualified name.
        Parameters:
        id - the resource identifier.
        qName - the qualified name.
      • GenericArtifactImpl

        public GenericArtifactImpl​(QName qName,
                                   String mediaType)
      • GenericArtifactImpl

        public GenericArtifactImpl​(QName qName,
                                   String mediaType,
                                   List<String> uniqueAttributes)
      • GenericArtifactImpl

        public GenericArtifactImpl​(String id,
                                   org.apache.axiom.om.OMElement artifactContentElement,
                                   String artifactNameAttribute,
                                   String artifactNamespaceAttribute,
                                   String artifactElementNamespace,
                                   String mediaType)
                            throws GovernanceException
        Constructor accepting resource identifier and the artifact content.
        Parameters:
        id - the resource identifier.
        artifactContentElement - an XML element containing the content.
        artifactNameAttribute - the attribute that specifies the name of the artifact.
        artifactNamespaceAttribute - the attribute that specifies the namespace of the artifact.
        artifactElementNamespace - the attribute that specifies the artifact element's namespace.
        Throws:
        GovernanceException - if the construction fails.
      • GenericArtifactImpl

        public GenericArtifactImpl​(String id,
                                   org.wso2.carbon.registry.core.Registry registry)
                            throws GovernanceException
        Constructor accepting resource identifier and the artifact content.
        Parameters:
        id - the resource identifier.
        registry - the registry instance to fetch artifact content.
        Throws:
        GovernanceException - if the construction fails.