public class SmooksResourceConfigurationList extends Object
Constructor and Description |
---|
SmooksResourceConfigurationList(String name)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ProfileSet profileSet)
Add a
ProfileSet instance to this list. |
void |
add(SmooksResourceConfiguration config)
Add a
SmooksResourceConfiguration instance to this list. |
void |
addAll(SmooksResourceConfigurationList configList)
Add all the
SmooksResourceConfiguration instances in the specified
SmooksResourceConfigurationList to this list. |
protected boolean |
addSourceResourceURI(URI resource) |
SmooksResourceConfiguration |
get(int index)
Get the
SmooksResourceConfiguration instance at the specified index. |
String |
getName()
Get the name of this list instance.
|
List<ProfileSet> |
getProfiles()
Get the list of profiles configured on this resource configuration list.
|
SmooksResourceConfiguration[] |
getTargetConfigurations(ProfileSet profileSet)
Get all SmooksResourceConfiguration entries targeted at the specified profile set.
|
boolean |
isEmpty()
Is this list instance empty.
|
boolean |
isSystemConfigList()
Is this configuration list instance one of the system installed config lists.
|
List<SmooksResourceConfiguration> |
lookupResource(ConfigSearch searchCriteria)
Lookup a resource configuration from this config list.
|
void |
setSystemConfigList(boolean systemConfigList)
Set whether or not this configuration list instance is one of the system installed config lists.
|
int |
size()
Get the size of this list.
|
public SmooksResourceConfigurationList(String name)
name
- The name of this instance.public void add(SmooksResourceConfiguration config)
SmooksResourceConfiguration
instance to this list.config
- SmooksResourceConfiguration
instance to add.public void addAll(SmooksResourceConfigurationList configList)
SmooksResourceConfiguration
instances in the specified
SmooksResourceConfigurationList
to this list.configList
- SmooksResourceConfigurationList
instance to add.public void add(ProfileSet profileSet)
ProfileSet
instance to this list.profileSet
- ProfileSet
instance to add.public String getName()
public boolean isSystemConfigList()
public void setSystemConfigList(boolean systemConfigList)
systemConfigList
- True if this configuration list instance one of the system installed config lists, otherwise false.public boolean isEmpty()
public int size()
public SmooksResourceConfiguration get(int index) throws ArrayIndexOutOfBoundsException
SmooksResourceConfiguration
instance at the specified index.index
- Resource index.SmooksResourceConfiguration
instance at the specified index.ArrayIndexOutOfBoundsException
- The specified index is out of bounds.public SmooksResourceConfiguration[] getTargetConfigurations(ProfileSet profileSet)
profileSet
- The profile set to searh against.public List<ProfileSet> getProfiles()
protected boolean addSourceResourceURI(URI resource)
public List<SmooksResourceConfiguration> lookupResource(ConfigSearch searchCriteria)
searchCriteria
- The resource lookup criteria.Copyright © 2020. All rights reserved.