Package org.smooks.engine.profile
Class DefaultProfileStore
- java.lang.Object
-
- org.smooks.engine.profile.DefaultProfileStore
-
- All Implemented Interfaces:
ProfileStore
public class DefaultProfileStore extends Object implements ProfileStore
Default ProfileStore implementation.- Author:
- tfennelly
-
-
Constructor Summary
Constructors Constructor Description DefaultProfileStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProfileSet(ProfileSet profileSet)
Add a ProfileSet for the named profile member.void
expandProfiles()
Expand out the profile sets in this profile store.ProfileSet
getProfileSet(String profileMember)
Get the ProfileSet associated with the specified profile member.String
toString()
-
-
-
Method Detail
-
getProfileSet
public ProfileSet getProfileSet(String profileMember) throws UnknownProfileMemberException
Description copied from interface:ProfileStore
Get the ProfileSet associated with the specified profile member. A profile "member" can be a member of multiple profiles. This method should return that list of profiles. Implementations must be case insensitive.- Specified by:
getProfileSet
in interfaceProfileStore
- Parameters:
profileMember
- The base profile name.- Returns:
- The ProfileSet for the specified base profile.
- Throws:
UnknownProfileMemberException
- There's noProfileSet
for the specified base profile.
-
addProfileSet
public void addProfileSet(ProfileSet profileSet)
Add a ProfileSet for the named profile member.- Specified by:
addProfileSet
in interfaceProfileStore
- Parameters:
profileSet
- The ProfileSet.
-
expandProfiles
public void expandProfiles()
Expand out the profile sets in this profile store. Expanding means taking sub-profiles that are in themselves the base profile of another profile set, and inserting the sub-profiles into the profile set.
-
-