|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifactImpl
public class GenericArtifactImpl
Represents a generic governance artifact.
Field Summary |
---|
Fields inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl |
---|
artifactPath, attributes, lcName, lcState |
Constructor Summary | |
---|---|
protected |
GenericArtifactImpl(GovernanceArtifact artifact)
Copy constructor used for cloning. |
|
GenericArtifactImpl(String id,
org.apache.axiom.om.OMElement artifactContentElement,
String artifactNameAttribute,
String artifactNamespaceAttribute,
String artifactElementNamespace)
Constructor accepting resource identifier and the artifact content. |
|
GenericArtifactImpl(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.GovernanceArtifactImpl |
---|
addAttribute, associateRegistry, attach, attachLifecycle, checkRegistryResourceAssociation, create, create, createVersion, detach, getArtifactPath, getAssociatedRegistry, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLcName, getLcState, getLifecycleName, getLifecycleState, getPath, removeAttribute, setArtifactPath, setAttribute, setAttributes, setId, setLcName, setLcState, updatePath, updatePath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact |
---|
addAttribute, attachLifecycle, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLifecycleName, getLifecycleState, getPath, removeAttribute, setAttribute, setAttributes, setId |
Constructor Detail |
---|
protected GenericArtifactImpl(GovernanceArtifact artifact)
artifact
- the object to be copied.public GenericArtifactImpl(String id, QName qName)
id
- the resource identifier.qName
- the qualified name.public GenericArtifactImpl(String id, org.apache.axiom.om.OMElement artifactContentElement, String artifactNameAttribute, String artifactNamespaceAttribute, String artifactElementNamespace) throws GovernanceException
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.
GovernanceException
- if the construction fails.Method Detail |
---|
public QName getQName()
GovernanceArtifact
getQName
in interface GovernanceArtifact
public void setQName(QName qName) throws GovernanceException
qName
- the qualified name.
GovernanceException
- if the operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |