Skip navigation links


com.openmarket.xcelerate.common
Class DimParentRelationshipImpl

java.lang.Object
  extended by com.openmarket.xcelerate.common.DimParentRelationshipImpl

All Implemented Interfaces:
DimensionableAssetInstance.DimensionParentRelationship, java.io.Serializable

public final class DimParentRelationshipImpl
extends java.lang.Object
implements DimensionableAssetInstance.DimensionParentRelationship, java.io.Serializable

This class represent a dimension parent relationship implementation. The Dimension parent have a group name and an AssetId which is the parent asset of all the assets in the group.

Since:
29-Nov-2006 5:04:58 PM
See Also:
Serialized Form

Constructor Summary
DimParentRelationshipImpl(java.lang.String group, AssetId parent)
          Constructor of the Dimension parent

 

Method Summary
 boolean equals(java.lang.Object o)
          Equals is performed in the following order 1.
 java.lang.String getGroup()
          Retrieves the Dimension parent group name
 AssetId getParent()
          Retrieves the parent asset id of the Dimension parent group
 int hashCode()
           
 java.lang.String toString()
          String representation of DimensionParentRelationship.

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

DimParentRelationshipImpl

public DimParentRelationshipImpl(java.lang.String group,
                                 AssetId parent)
Constructor of the Dimension parent
Parameters:
group - the name of the Dimension parent group, can not be null
parent - the id the of the parent asset, can not be null

Method Detail

getGroup

public java.lang.String getGroup()
Retrieves the Dimension parent group name
Specified by:
getGroup in interface DimensionableAssetInstance.DimensionParentRelationship
Returns:
String name of the Dimension parent group

getParent

public AssetId getParent()
Retrieves the parent asset id of the Dimension parent group
Specified by:
getParent in interface DimensionableAssetInstance.DimensionParentRelationship
Returns:
Asset id of the parent of this Dimension parent group

equals

public boolean equals(java.lang.Object o)
Equals is performed in the following order 1. return true if the two objects are "==" each other 2. return true if o is not null and is the same type with the current object AND only if both the groups and parents equals each other in the two objects
Overrides:
equals in class java.lang.Object
Parameters:
o - the object to compare with
Returns:
true if the two objects equals each other, false otherwise

hashCode

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

toString

public java.lang.String toString()
String representation of DimensionParentRelationship. The structure of String returned is <parent>(<group>) Please note that the format is for debugging purposes only.
Overrides:
toString in class java.lang.Object
Returns:
String representation of the DimensionParentRelationship.

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.