|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap
org.milyn.profile.DefaultProfileSet
public class DefaultProfileSet
Default ProfileSet implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Constructor Summary | |
|---|---|
DefaultProfileSet(String baseProfile)
Public constructor. |
|
| Method Summary | |
|---|---|
void |
addProfile(Profile profile)
Add profile to the ProfileSet. |
void |
addProfile(String profile)
Add profile to the ProfileSet. |
void |
addProfiles(String[] subProfiles)
Add a list of subProfiles to the ProfileSet. |
protected void |
addProfileSet(DefaultProfileSet profileSet)
Add the profiles of the supplied DefaultProfileSet to this ProfileSet. |
static DefaultProfileSet |
create(String baseProfile,
String[] subProfiles)
Utility method for creating a profile set. |
String |
getBaseProfile()
Get the base profile for this profile set. |
Profile |
getProfile(String profile)
Get a profile from the ProfileSet. |
boolean |
isMember(String profile)
Is the specified profile a member of this profile set. |
Iterator |
iterator()
Get an Iterator to allow iteration over the
Profilesin this ProfileSet. |
String |
toString()
|
| Methods inherited from class java.util.LinkedHashMap |
|---|
clear, containsValue, get, removeEldestEntry |
| Methods inherited from class java.util.HashMap |
|---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Constructor Detail |
|---|
public DefaultProfileSet(String baseProfile)
baseProfile - The base profile for the profile set.| Method Detail |
|---|
public String getBaseProfile()
getBaseProfile in interface ProfileSetpublic boolean isMember(String profile)
ProfileSet
isMember in interface ProfileSetprofile - The profile to check against.
public void addProfile(String profile)
profile - The profile to add.public void addProfile(Profile profile)
addProfile in interface ProfileSetprofile - The profile to add.public Profile getProfile(String profile)
ProfileSet.
getProfile in interface ProfileSetprofile - The name of the profile.
ProfileSet.public Iterator iterator()
Iterator to allow iteration over the
Profilesin this ProfileSet.
iterator in interface ProfileSetIterator that allows iteration over the
Profilesin this ProfileSet.protected void addProfileSet(DefaultProfileSet profileSet)
profileSet - The DefaultProfileSet whose profiles are to be added.public void addProfiles(String[] subProfiles)
subProfiles - The array of sub Profiles to add.public String toString()
toString in class AbstractMap
public static DefaultProfileSet create(String baseProfile,
String[] subProfiles)
baseProfile - The base profile.subProfiles - The sub profiles.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||