|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GovernanceArtifact
Method Summary | |
---|---|
void |
addAttribute(String key,
String value)
Adding an attribute to the artifact. |
void |
attachLifecycle(String name)
Associates the named lifecycle with the artifact |
String |
getAttribute(String key)
Returns the attribute of a given key. |
String[] |
getAttributeKeys()
Returns the available attribute keys |
String[] |
getAttributes(String key)
Returns the attribute values for a key. |
GovernanceArtifact[] |
getDependencies()
Get dependencies of an artifacts. |
GovernanceArtifact[] |
getDependents()
Get dependents of an artifact. |
String |
getId()
Returns the id of the artifact |
String |
getLifecycleName()
Returns the name of the lifecycle associated with this artifact. |
String |
getLifecycleState()
Returns the state of the lifecycle associated with this artifact. |
String |
getPath()
Returns the path of the artifact, need to save the artifact before getting the path. |
QName |
getQName()
Returns the QName of the artifact. |
void |
removeAttribute(String key)
Remove attribute with the given key. |
void |
setAttribute(String key,
String newValue)
Set/Update an attribute with a single value. |
void |
setAttributes(String key,
String[] newValues)
Set/Update an attribute with multiple values. |
void |
setId(String id)
Set the id |
Method Detail |
---|
QName getQName()
String getId()
void setId(String id)
id
- the idString getPath() throws GovernanceException
GovernanceException
- if an error occurred.String getLifecycleName() throws GovernanceException
GovernanceException
- if an error occurred.void attachLifecycle(String name) throws GovernanceException
name
- the name of the lifecycle to be associated with this artifact.
GovernanceException
- if an error occurred.String getLifecycleState() throws GovernanceException
GovernanceException
- if an error occurred.void addAttribute(String key, String value) throws GovernanceException
key
- the key.value
- the value.
GovernanceException
- throws if the operation failed.void setAttributes(String key, String[] newValues) throws GovernanceException
key
- the keynewValues
- the value
GovernanceException
- throws if the operation failed.void setAttribute(String key, String newValue) throws GovernanceException
key
- the keynewValue
- the value
GovernanceException
- throws if the operation failed.String getAttribute(String key) throws GovernanceException
key
- the key
GovernanceException
- throws if the operation failed.String[] getAttributeKeys() throws GovernanceException
GovernanceException
- throws if the operation failed.String[] getAttributes(String key) throws GovernanceException
key
- the key.
GovernanceException
- throws if the operation failed.void removeAttribute(String key) throws GovernanceException
key
- the key
GovernanceException
- throws if the operation failed.GovernanceArtifact[] getDependencies() throws GovernanceException
GovernanceException
- throws if the operation failed.GovernanceArtifact[] getDependents() throws GovernanceException
GovernanceException
- throws if the operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |