Package pulse.util
Class Group
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.util.Group
-
- All Implemented Interfaces:
Serializable,Descriptive
- Direct Known Subclasses:
Accessible,Log
public class Group extends UpwardsNavigable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Group()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Groupaccess(String simpleName)Searches for a specificAccessiblewith asimpleName.List<Group>children()Selects only thoseAccessibles, the parent of which isthis.static Set<Group>contents(Group root)Recursively analyses allGroupobjects that are identified as subgroups toroot(explicitly checks that subgroups exclude parents ofroot) and chooses those for which anExporterexists.StringgetDescriptor()The same asgetSimpleNamein this implementation.StringgetSimpleName()This will generate a simple name for identifying thisAccessible.List<Group>subgroups()Tries to access getter methods to retrieve allAccessibleinstances belonging to this object.-
Methods inherited from class pulse.util.UpwardsNavigable
addHierarchyListener, describe, getHierarchyListeners, getParent, identify, initListeners, removeHierarchyListener, removeHierarchyListeners, setParent, specificAncestor, tellParent
-
-
-
-
Method Detail
-
subgroups
public List<Group> subgroups()
Tries to access getter methods to retrieve all
Accessibleinstances belonging to this object. Ignores any methods that return instances of the same class asthisone.- Returns:
- a
ListcontainingAccessibleobjects which could be accessed by the declared getter methods.
-
contents
public static Set<Group> contents(Group root)
Recursively analyses all
Groupobjects that are identified as subgroups toroot(explicitly checks that subgroups exclude parents ofroot) and chooses those for which anExporterexists.- Parameters:
root- the root group.- Returns:
- a set of unique
Groups objects.
-
access
public Group access(String simpleName)
Searches for a specificAccessiblewith asimpleName.- Parameters:
simpleName- the name of theAccessible,- Returns:
- the
Accessibleobject. - See Also:
subgroups()
-
children
public List<Group> children()
Selects only those
Accessibles, the parent of which isthis. Note that allAccessibles are required to explicitly adopt children by calling thesetParent()method.- Returns:
- a
Listof children that thisAccessiblehas adopted. - See Also:
subgroups()
-
getDescriptor
public String getDescriptor()
The same asgetSimpleNamein this implementation.- Returns:
- the simple name of the declaring class.
- See Also:
getSimpleName()
-
getSimpleName
public String getSimpleName()
This will generate a simple name for identifying thisAccessible.- Returns:
- the simple name of the declaring class.
-
-