|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.common.SrampModelUtils
public class SrampModelUtils
A collection of utilities for dealing with the s-ramp models.
| Constructor Summary | |
|---|---|
SrampModelUtils()
|
|
| Method Summary | |
|---|---|
static Relationship |
addGenericRelationship(BaseArtifactType artifact,
String relationshipType,
String targetUUID)
Adds a new generic Relationship to the artifact. |
static String |
getCustomProperty(BaseArtifactType artifact,
String propName)
Gets the value of one of the s-ramp custom properties. |
static Relationship |
getGenericRelationship(BaseArtifactType artifact,
String relationshipType)
Gets the generic relationship from the artifact (by type). |
static void |
setCustomProperty(BaseArtifactType artifact,
String propName,
String propValue)
Convenience method to help set a custom s-ramp property on the given artifact. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SrampModelUtils()
| Method Detail |
|---|
public static void setCustomProperty(BaseArtifactType artifact,
String propName,
String propValue)
artifact - propName - propValue -
public static String getCustomProperty(BaseArtifactType artifact,
String propName)
artifact - the s-ramp artifactpropName - the name of the custom property
public static Relationship addGenericRelationship(BaseArtifactType artifact,
String relationshipType,
String targetUUID)
Relationship to the artifact.
artifact - relationshipType - targetUUID -
Relationship
public static Relationship getGenericRelationship(BaseArtifactType artifact,
String relationshipType)
artifact - the s-ramp artifactrelationshipType - the relationship type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||