public class TLcdSLDParameterValue extends TLcdDataObject implements ILcdGenericExpression
<CssParameter name="fill">#00<ogc:PropertyName>greenband</ogc:PropertyName>FF</CssParameter>If you want to retrieve the actual value for a given object, you can construct an
ILcdEvaluator
using the
TLcdSLDFunctionEvaluatorFactory
.Constructor and Description |
---|
TLcdSLDParameterValue()
Empty constructor
|
TLcdSLDParameterValue(ILcdOGCExpression aOGCExpression)
Constructor for the simple case where the contents only consists of an expression.
|
TLcdSLDParameterValue(String aTextContent)
Constructor for the simple case where the contents consists only of text.
|
TLcdSLDParameterValue(Vector aContents)
Constructs a parameterized value.
|
Modifier and Type | Method and Description |
---|---|
void |
addContent(int aIndex,
Object aContent)
Inserts a content at a given position.
|
void |
addContent(Object aContent)
Adds a content.
|
TLcdSLDParameterValue |
clone()
Returns a deep clone of this object.
|
List<Object> |
getContent()
Returns the value of the content property.
|
Object |
getContent(int aIndex)
Gets the content at a given position.
|
int |
getContentCount()
Gets the content count.
|
ILcdOGCExpression |
getExpression(int aContentIndex)
Gets the expression at a given position.
|
String |
getText(int aContentIndex)
Gets the text at a given position.
|
boolean |
isContentExpression(int aIndex)
Checks whether the content at a given position is an expression or not.
|
boolean |
isContentText(int aIndex)
Checks whether the content at a given position is a text or not.
|
void |
removeContent(int aIndex)
Removes the content at the specified index.
|
String |
toString() |
clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public TLcdSLDParameterValue(Vector aContents)
aContents
- the contents that should be evaluated. The contents can be mixed, i.e., a
combination of text and expressions. The Vector should therefore only contain String or ILcdOGCExpression
objects.public TLcdSLDParameterValue(ILcdOGCExpression aOGCExpression)
aOGCExpression
- the given expression.public TLcdSLDParameterValue(String aTextContent)
aTextContent
- public TLcdSLDParameterValue()
public int getContentCount()
public Object getContent(int aIndex)
aIndex
- the index of the given position.public boolean isContentExpression(int aIndex)
aIndex
- the index of the given position.true
if the content at a given position is an expression. false
if not.public boolean isContentText(int aIndex)
aIndex
- the index of the given position.true
if the content at a given position is a text. false
if not.public void removeContent(int aIndex)
aIndex
- the index of the content to remove.public ILcdOGCExpression getExpression(int aContentIndex)
aContentIndex
- the index of the given position.public String getText(int aContentIndex)
aContentIndex
- the index of the given position.public void addContent(Object aContent)
ILcdOGCExpression
or a String
.aContent
- the content to be added.public void addContent(int aIndex, Object aContent)
ILcdOGCExpression
or a String
.aContent
- the content to be added.aIndex
- the index of the given position.public TLcdSLDParameterValue clone()
TLcdDataObject
TLcdDataObject.clone(Map)
.clone
in interface ILcdCloneable
clone
in class TLcdDataObject
Object.clone()
public String toString()
toString
in class TLcdDataObject
public List<Object> getContent()
CONTENT_PROPERTY
property.