public final class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addRelationship(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType sourceArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType targetArtifact,
TeiidRelationshipType relationshipType)
Creates a one way relationship.
|
static void |
addTwoWayRelationship(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType sourceArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType targetArtifact,
TeiidRelationshipType relationshipType,
TeiidRelationshipType inverseRelationshipType)
Creates a two way relationship.
|
static String |
getElementQueryString(String qualifiedName) |
static boolean |
isEmpty(Collection<?> collection) |
static boolean |
isEmpty(String text) |
public static void addRelationship(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType sourceArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType targetArtifact,
TeiidRelationshipType relationshipType)
sourceArtifact - the artifact where the relationship starts (cannot be null)targetArtifact - the artifact where the relationship ends (cannot be null)relationshipType - the relationship type (cannot be null or empty)public static void addTwoWayRelationship(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType sourceArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType targetArtifact,
TeiidRelationshipType relationshipType,
TeiidRelationshipType inverseRelationshipType)
sourceArtifact - the artifact where the relationship starts (cannot be null)targetArtifact - the artifact where the relationship ends (cannot be null)relationshipType - the relationship type (cannot be null or empty)inverseRelationshipType - the relationship type of the inverse relationship (cannot be null or empty)public static String getElementQueryString(String qualifiedName)
qualifiedName - the qualified name of the element whose query string is being requested (cannot be null
or empty)null)public static boolean isEmpty(Collection<?> collection)
collection - the collection being checked (can be null or empty)true if null or emptypublic static boolean isEmpty(String text)
text - the string being checked (can be null or empty)true if null or emptyCopyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.