Class DefaultResourceConfigSeq
- java.lang.Object
-
- org.smooks.engine.resource.config.DefaultResourceConfigSeq
-
-
Constructor Summary
Constructors Constructor Description DefaultResourceConfigSeq(String name)Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(org.smooks.api.profile.ProfileSet profileSet)Add aProfileSetinstance to this list.voidadd(org.smooks.api.resource.config.ResourceConfig resourceConfig)Add aResourceConfiginstance to this list.voidaddAll(org.smooks.api.resource.config.ResourceConfigSeq resourceConfigSeq)Add all theResourceConfiginstances in the specifiedResourceConfigSeqto this list.org.smooks.api.resource.config.ResourceConfigget(int index)Get theResourceConfiginstance at the specified index.List<org.smooks.api.resource.config.ResourceConfig>getAll()List<org.smooks.api.resource.config.ResourceConfig>getAll(org.smooks.api.profile.ProfileSet profileSet)Get all ResourceConfig entries targeted at the specified profile set.StringgetName()Get the name of this list instance.List<org.smooks.api.profile.ProfileSet>getProfiles()Get the list of profiles configured on this resource configuration list.booleanisEmpty()Is this list instance empty.booleanisSystem()Is this configuration list instance one of the system installed config lists.Iterator<org.smooks.api.resource.config.ResourceConfig>iterator()List<org.smooks.api.resource.config.ResourceConfig>lookupResource(org.smooks.api.resource.config.ConfigSearch searchCriteria)Lookup a resource configuration from this config list.voidsetSystem(boolean isSystem)Set whether or not this configuration list instance is one of the system installed config lists.intsize()Get the size of this list.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
DefaultResourceConfigSeq
public DefaultResourceConfigSeq(String name)
Public constructor.- Parameters:
name- The name of this instance.
-
-
Method Detail
-
add
public void add(org.smooks.api.resource.config.ResourceConfig resourceConfig)
Add aResourceConfiginstance to this list.- Specified by:
addin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Parameters:
resourceConfig-ResourceConfiginstance to add.
-
addAll
public void addAll(org.smooks.api.resource.config.ResourceConfigSeq resourceConfigSeq)
Add all theResourceConfiginstances in the specifiedResourceConfigSeqto this list.- Specified by:
addAllin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Parameters:
resourceConfigSeq-ResourceConfigSeqinstance to add.
-
add
public void add(org.smooks.api.profile.ProfileSet profileSet)
Add aProfileSetinstance to this list.- Specified by:
addin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Parameters:
profileSet-ProfileSetinstance to add.
-
getName
public String getName()
Get the name of this list instance.- Specified by:
getNamein interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Returns:
- List name.
-
isSystem
public boolean isSystem()
Is this configuration list instance one of the system installed config lists.- Specified by:
isSystemin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Returns:
- True if this configuration list instance one of the system installed config lists, otherwise false.
-
setSystem
public void setSystem(boolean isSystem)
Set whether or not this configuration list instance is one of the system installed config lists.- Specified by:
setSystemin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Parameters:
isSystem- True if this configuration list instance one of the system installed config lists, otherwise false.
-
isEmpty
public boolean isEmpty()
Is this list instance empty.- Specified by:
isEmptyin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Returns:
- True if this list instance is empty, otherwise false.
-
size
public int size()
Get the size of this list.- Specified by:
sizein interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Returns:
- The size of te list i.e. number of entries.
-
get
public org.smooks.api.resource.config.ResourceConfig get(int index) throws ArrayIndexOutOfBoundsExceptionGet theResourceConfiginstance at the specified index.- Specified by:
getin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Parameters:
index- Resource index.- Returns:
- The
ResourceConfiginstance at the specified index. - Throws:
ArrayIndexOutOfBoundsException- The specified index is out of bounds.
-
getAll
public List<org.smooks.api.resource.config.ResourceConfig> getAll() throws ArrayIndexOutOfBoundsException
- Specified by:
getAllin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Throws:
ArrayIndexOutOfBoundsException
-
getAll
public List<org.smooks.api.resource.config.ResourceConfig> getAll(org.smooks.api.profile.ProfileSet profileSet)
Get all ResourceConfig entries targeted at the specified profile set.- Specified by:
getAllin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Parameters:
profileSet- The profile set to searh against.- Returns:
- All ResourceConfig entries targeted at the specified profile set.
-
getProfiles
public List<org.smooks.api.profile.ProfileSet> getProfiles()
Get the list of profiles configured on this resource configuration list.- Specified by:
getProfilesin interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Returns:
- List of profiles.
-
lookupResource
public List<org.smooks.api.resource.config.ResourceConfig> lookupResource(org.smooks.api.resource.config.ConfigSearch searchCriteria)
Lookup a resource configuration from this config list. Note that this is resource config order-dependent. It will not locate configs that have not yet been loaded.- Specified by:
lookupResourcein interfaceorg.smooks.api.resource.config.ResourceConfigSeq- Parameters:
searchCriteria- The resource lookup criteria.- Returns:
- List of matches resources, or an empty List if no matches are found.
-
-