net.sourceforge.jfacets.simpleprofiles
Class SimpleProfile

java.lang.Object
  extended by net.sourceforge.jfacets.simpleprofiles.SimpleProfile
All Implemented Interfaces:
IProfile

public class SimpleProfile
extends java.lang.Object
implements IProfile

Implements a simple profile, with childs and parents.


Field Summary
private  java.util.ArrayList<SimpleProfile> childs
           
private  java.lang.String id
           
private  java.util.ArrayList<SimpleProfile> parents
           
 
Constructor Summary
SimpleProfile(java.lang.String id)
           
 
Method Summary
 void addChild(SimpleProfile child)
           
 boolean equals(java.lang.Object other)
           
 java.util.Collection<SimpleProfile> getChildren()
           
 java.lang.String getId()
          Return the unique ID of this profile as a String
 java.util.Collection<SimpleProfile> getParents()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private java.lang.String id

childs

private java.util.ArrayList<SimpleProfile> childs

parents

private java.util.ArrayList<SimpleProfile> parents
Constructor Detail

SimpleProfile

public SimpleProfile(java.lang.String id)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: IProfile
Return the unique ID of this profile as a String

Specified by:
getId in interface IProfile

getChildren

public java.util.Collection<SimpleProfile> getChildren()

addChild

public void addChild(SimpleProfile child)

getParents

public java.util.Collection<SimpleProfile> getParents()

equals

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


Copyright © 2010. All Rights Reserved.