org.wso2.carbon.governance.api.sla.dataobjects
Class SLA

java.lang.Object
  extended by org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
      extended by org.wso2.carbon.governance.api.sla.dataobjects.SLA

public class SLA
extends GovernanceArtifact

This represents a sla artifact stored on the Registry. SLA artifacts are created as a result of adding a new sla or uploading or importing a WSDL file into the registry.


Field Summary
 
Fields inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
attributes
 
Constructor Summary
protected SLA(SLA sla)
          Copy constructor used for cloning.
  SLA(String id, org.apache.axiom.om.OMElement slaContentElement)
          Constructor accepting resource identifier and the sla content.
  SLA(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 sla artifact.
 
Methods inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
addAttribute, associateRegistry, attach, checkRegistryResourceAssociation, createVersion, detach, getAssociatedRegistry, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getPath, removeAttribute, setAttribute, setAttributes, setId, updatePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLA

protected SLA(SLA sla)
Copy constructor used for cloning.

Parameters:
sla - the object to be copied.

SLA

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

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

SLA

public SLA(String id,
           org.apache.axiom.om.OMElement slaContentElement)
    throws GovernanceException
Constructor accepting resource identifier and the sla content.

Parameters:
id - the resource identifier.
slaContentElement - an XML element containing the sla content.
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 sla artifact.

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


Copyright © 2011 WSO2 Inc. All Rights Reserved.