org.wso2.carbon.governance.api.generic.dataobjects
Class GenericArtifact

java.lang.Object
  extended by org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
      extended by org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact

public class GenericArtifact
extends GovernanceArtifact

Represents a generic governance artifact.


Field Summary
 
Fields inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
attributes
 
Constructor Summary
protected GenericArtifact(GovernanceArtifact artifact)
          Copy constructor used for cloning.
  GenericArtifact(String id, org.apache.axiom.om.OMElement artifactContentElement, String artifactNameAttribute, String artifactNamespaceAttribute, String artifactElementNamespace)
          Constructor accepting resource identifier and the artifact content.
  GenericArtifact(String id, QName qName)
          Constructor accepting resource identifier and the qualified name.
 
Method Summary
 QName getQName()
          Returns the QName of the artifact.
 void setQName(QName qName)
          Method to set the qualified name of this artifact.
 
Methods inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
addAttribute, associateRegistry, attach, attachLifecycle, checkRegistryResourceAssociation, create, create, createVersion, detach, getAssociatedRegistry, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLifecycleName, getLifecycleState, getPath, removeAttribute, setAttribute, setAttributes, setId, updatePath, updatePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericArtifact

protected GenericArtifact(GovernanceArtifact artifact)
Copy constructor used for cloning.

Parameters:
artifact - the object to be copied.

GenericArtifact

public GenericArtifact(String id,
                       QName qName)
Constructor accepting resource identifier and the qualified name.

Parameters:
id - the resource identifier.
qName - the qualified name.

GenericArtifact

public GenericArtifact(String id,
                       org.apache.axiom.om.OMElement artifactContentElement,
                       String artifactNameAttribute,
                       String artifactNamespaceAttribute,
                       String artifactElementNamespace)
                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.
Method Detail

getQName

public QName getQName()
Description copied from class: GovernanceArtifact
Returns the QName of the artifact.

Specified by:
getQName in class GovernanceArtifact
Returns:
the QName of the artifact

setQName

public void setQName(QName qName)
              throws GovernanceException
Method to set the qualified name of this artifact.

Parameters:
qName - the qualified name.
Throws:
GovernanceException - if the operation failed.


Copyright © 2012 WSO2 Inc. All Rights Reserved.