com.ibm.adt.topology.object.relationship
Class RelationshipMetaInfo

java.lang.Object
  extended by com.ibm.adt.topology.object.relationship.RelationshipMetaInfo

public class RelationshipMetaInfo
extends java.lang.Object


Constructor Summary
RelationshipMetaInfo(RelationshipType relationshipType, java.lang.String sourceRole, java.lang.String targetRole, java.lang.String sourceType, java.lang.String targetType, boolean isCrossProvider, java.lang.String label, RelationshipNavigability navigable, java.lang.String correlatorId, java.lang.String uniqueId)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static java.util.HashMap generateKeySet(java.lang.String relationshipKey)
           
 TopologyObjectCorrelator getCorrelator()
           
static java.lang.String[] getKeys()
           
 java.lang.String getLabel()
           
 RelationshipNavigability getNavigable()
           
static RelationshipMetaInfo getRelationshipInstance(RelationshipMetaInfo relationship, boolean isOutbound)
          Creates an instance of the specified RelationshipMetaInfo object with the polarity specified by isOutbound.
 RelationshipType getRelationshipType()
           
 java.lang.String getSourceRole()
           
 java.lang.String getSourceType()
           
 java.lang.String getTargetRole()
           
 java.lang.String getTargetType()
           
 java.lang.String getUniqueId()
           
 int hashCode()
           
 boolean isCrossProvider()
          Test if the relationship defines a cross-provider relationship.
 boolean isOutbound()
          Tests if the relationship instance specifies the outbound relationship.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelationshipMetaInfo

public RelationshipMetaInfo(RelationshipType relationshipType,
                            java.lang.String sourceRole,
                            java.lang.String targetRole,
                            java.lang.String sourceType,
                            java.lang.String targetType,
                            boolean isCrossProvider,
                            java.lang.String label,
                            RelationshipNavigability navigable,
                            java.lang.String correlatorId,
                            java.lang.String uniqueId)
Parameters:
relationshipType - The relationshipType to set.
uniqueId - TODO
Method Detail

getRelationshipType

public RelationshipType getRelationshipType()
Returns:
Returns the relationshipType.

getLabel

public java.lang.String getLabel()
Returns:
Returns the label.

getNavigable

public RelationshipNavigability getNavigable()
Returns:
Returns the navigable.

getSourceRole

public java.lang.String getSourceRole()
Returns:
Returns the sourceRole.

getSourceType

public java.lang.String getSourceType()
Returns:
Returns the sourceType.

getTargetRole

public java.lang.String getTargetRole()
Returns:
Returns the targetRole.

getTargetType

public java.lang.String getTargetType()
Returns:
Returns the targetType.

getUniqueId

public java.lang.String getUniqueId()
Returns:
Returns the uniqueId.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCorrelator

public TopologyObjectCorrelator getCorrelator()
Returns:
Returns the correlator.

getKeys

public static java.lang.String[] getKeys()
Returns:
Returns the keys.

generateKeySet

public static java.util.HashMap generateKeySet(java.lang.String relationshipKey)
                                        throws TopologyException
Returns:
Returns the validated key/value pairs in the form of a HashMap.
Throws:
TopologyException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

isCrossProvider

public boolean isCrossProvider()
Test if the relationship defines a cross-provider relationship.

Returns:
true if the relationship spans providers.

getRelationshipInstance

public static RelationshipMetaInfo getRelationshipInstance(RelationshipMetaInfo relationship,
                                                           boolean isOutbound)
Creates an instance of the specified RelationshipMetaInfo object with the polarity specified by isOutbound.

Parameters:
relationship -
isOutbound -
Returns:

isOutbound

public boolean isOutbound()
Tests if the relationship instance specifies the outbound relationship.

Returns:
the isOutbound


© Copyright 2006 IBM Corp. 2006 All Rights Reserved