|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.util.model.FamilyProcessor
public abstract class FamilyProcessor
This abstract class contains various static utility methods for handling trees of FamilyMember objects.
Constructor Summary | |
---|---|
FamilyProcessor()
|
Method Summary | |
---|---|
static void |
generateParentIds(FamilyMember parent)
Takes the supplied FamilyMember (that exists as the root of a family subtree) and goes through recursively setting the parent ID attributes of children using the ID of the parent. |
static void |
generateParentIds(java.util.List roots)
Assigns parent IDs to all children in a hierarchy. |
static java.util.List |
getFamilyMembersWithParentID(java.util.List familyMemberList,
int parentId)
Takes a list of family members and returns a list of all the family members with the specified parent ID |
static java.util.List |
linkFamilyMembers(java.util.List fms)
Links the FamilyMembers in the list based on their IDs and parent IDs. |
static java.util.List |
linkFamilyMembers(java.util.List familyMembers,
java.util.List parentIds)
Links up the supplied FamilyMembers into a family tree (that can have multiple roots). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FamilyProcessor()
Method Detail |
---|
public static java.util.List linkFamilyMembers(java.util.List fms) throws FamilyMemberException
the
- family members to be linked
FamilyMemberException
- if there is a problem linking the FamilyMembers to each otherpublic static java.util.List linkFamilyMembers(java.util.List familyMembers, java.util.List parentIds) throws FamilyMemberException
familyMembers
- the FamilyMembers to be connectedparentIds
- the parent IDs of the FamilyMembers
FamilyMemberException
public static void generateParentIds(java.util.List roots)
roots
- the root FamilyMembers of a hierarchypublic static void generateParentIds(FamilyMember parent)
parent
- the top-level parent in a family subtreepublic static java.util.List getFamilyMembersWithParentID(java.util.List familyMemberList, int parentId)
familyMemberList
- A list of family member objectsthe
- intetresting parent ID
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |