Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.model
Class InstanceUtil

java.lang.Object
  extended by eu.esdihumboldt.hale.common.instance.model.InstanceUtil

public final class InstanceUtil
extends Object

Instance utility functions.

Author:
Kai Schwierczek

Method Summary
static Collection<Instance> getInstanceOutOfFamily(FamilyInstance fi)
          Creates a list of instances out of a FamilyInstance
static boolean groupEqual(Group a, Group b, boolean propertyOrderRelevant)
          Checks whether the two given groups equal each other.
static String groupToString(Group group)
          Returns a string representation of the given group.
static boolean instanceEqual(Instance a, Instance b, boolean propertyOrderRelevant)
          Checks whether the two given instances equal each other disregarding their data set.
static String instanceToString(Instance instance)
          Returns a string representation of the given instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instanceEqual

public static boolean instanceEqual(Instance a,
                                    Instance b,
                                    boolean propertyOrderRelevant)
Checks whether the two given instances equal each other disregarding their data set.

Parameters:
a - the first instance
b - the second instance
propertyOrderRelevant - whether the order of properties of the same name is relevant or not
Returns:
true, iff both instances are equal to each other except for their data set

groupEqual

public static boolean groupEqual(Group a,
                                 Group b,
                                 boolean propertyOrderRelevant)
Checks whether the two given groups equal each other.

Parameters:
a - the first group
b - the second group
propertyOrderRelevant - whether the order of properties of the same name is relevant or not
Returns:
true, iff both groups are equal to each

instanceToString

public static String instanceToString(Instance instance)
Returns a string representation of the given instance.

Parameters:
instance - the instance
Returns:
a string representation of the given instance

groupToString

public static String groupToString(Group group)
Returns a string representation of the given group.

Parameters:
group - the group
Returns:
a string representation of the given group

getInstanceOutOfFamily

public static Collection<Instance> getInstanceOutOfFamily(FamilyInstance fi)
Creates a list of instances out of a FamilyInstance

Parameters:
fi - the FamilyInstance
Returns:
a collection of instances

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d