public final class CSPIndex extends Object implements Serializable
CSPContent
CSPContent
can have multiple sets of indexes and within each set of
indexes ,an index may have multiple values getValues()
.Constructor and Description |
---|
CSPIndex() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(CSPParameter parameter) |
static CSPIndex |
create(String name,
String id) |
static CSPIndex |
create(String name,
String id,
String description) |
static CSPIndex |
create(String name,
String type,
String id,
String description) |
String |
getDescription() |
String |
getId() |
Locale |
getLocale() |
String |
getName() |
String |
getParameter(String name)
Returns the value of the specified parameter name
|
List<CSPParameter> |
getParameters()
Returns list containing the parameters of this index.
|
String |
getType() |
String |
getValue()
Called when the index has single value.
|
String[] |
getValues()
Called when an index has multiple values.
|
void |
setDescription(String fDescription) |
void |
setId(String fId) |
void |
setLocale(Locale locale) |
void |
setName(String fName) |
void |
setParameters(List<CSPParameter> parameters)
Sets the argument as parameter of this index and clears the previous parameters if any
|
void |
setType(String type) |
void |
setValue(String fValue) |
void |
setValues(String[] values) |
String |
toString() |
public Locale getLocale()
public void setLocale(Locale locale)
public void setName(String fName)
public String getName()
public void setId(String fId)
public String getId()
public String getDescription()
public void setDescription(String fDescription)
public void setValue(String fValue)
public String getValue()
public void setValues(String[] values)
public String[] getValues()
public void setType(String type)
public String getType()
public List<CSPParameter> getParameters()
List
containing the parameters of this indexpublic void setParameters(List<CSPParameter> parameters)
parameters
- The new parameters for this indexpublic String getParameter(String name)
name
- Parameter's namepublic void addParameter(CSPParameter parameter)
public static CSPIndex create(String name, String type, String id, String description)
name
- The name of the indextype
- - it might be string or integerid
- description
-