org.deegree_impl.graphics.sld
Class CssParameter_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.sld.CssParameter_Impl
All Implemented Interfaces:
CssParameter, Marshallable

class CssParameter_Impl
extends java.lang.Object
implements CssParameter, Marshallable

The simple SVG/CSS2 styling parameters are given with the CssParameter element, which is defined as follows:

 
  
     
        
             
         
  
 
The parameter values are allowed to be complex expressions for maximum flexibility. The mixed="true" definition means that regular text may be mixed in with various sub-expressions, implying a text-substitution model for parameter values. Numeric and character-string data types are not distinguished, which may cause some complications.

Here are some usage examples:
 1. 3
 2. 
         3
    
 3. 
         
             /A
             2
         
    
 4. 
 
The allowed SVG/CSS styling parameters for a stroke are: stroke (color), stroke-opacity, stroke-width, stroke-linejoin, stroke-linecap, stroke-dasharray, and stroke-dashoffset. The chosen parameter is given by the name attribute of the CssParameter element.

Version:
$Revision: 1.10 $ $Date: 2004/01/26 08:15:38 $
Author:
Andreas Poth, Markus Schneider

Field Summary
private  java.lang.String name
           
private  ParameterValueType pvt
           
 
Constructor Summary
(package private) CssParameter_Impl(java.lang.String name, ParameterValueType pvt)
          constructor initializing the class with the
 
Method Summary
 java.lang.String exportAsXML()
          exports the content of the CssParameter as XML formated String
 java.lang.String getName()
          Returns the name attribute's value of the CssParameter.
 ParameterValueType getValue()
          Returns the value of the CssParameter as an ParameterValueType.
 java.lang.String getValue(Feature feature)
          Returns the (evaluated) value of the CssParameter as a simple String.
 void setName(java.lang.String name)
          Sets the name attribute's value of the CssParameter.
 void setValue(ParameterValueType value)
          Sets the value of the CssParameter as an ParameterValueType.
 void setValue(java.lang.String value)
          Sets the value of the CssParameter as a simple String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pvt

private ParameterValueType pvt

name

private java.lang.String name
Constructor Detail

CssParameter_Impl

CssParameter_Impl(java.lang.String name,
                  ParameterValueType pvt)
constructor initializing the class with the

Method Detail

getName

public java.lang.String getName()
Returns the name attribute's value of the CssParameter.

Specified by:
getName in interface CssParameter
Returns:
the value of the name attribute of the CssParameter

setName

public void setName(java.lang.String name)
Sets the name attribute's value of the CssParameter.

Specified by:
setName in interface CssParameter
Parameters:
name - the value of the name attribute of the CssParameter

getValue

public ParameterValueType getValue()
Returns the value of the CssParameter as an ParameterValueType.

Specified by:
getValue in interface CssParameter
Returns:
the mixed content of the element

setValue

public void setValue(ParameterValueType value)
Sets the value of the CssParameter as an ParameterValueType.

Specified by:
setValue in interface CssParameter
Parameters:
value - the mixed content of the element

getValue

public java.lang.String getValue(Feature feature)
                          throws FilterEvaluationException
Returns the (evaluated) value of the CssParameter as a simple String.

Specified by:
getValue in interface CssParameter
Parameters:
feature - specifies the Feature to be used for evaluation of the underlying 'sld:ParameterValueType'
Returns:
the (evaluated) String value of the parameter
Throws:
FilterEvaluationException - if the evaluations fails

setValue

public void setValue(java.lang.String value)
Sets the value of the CssParameter as a simple String.

Specified by:
setValue in interface CssParameter
Parameters:
value - CssParameter-Value to be set

exportAsXML

public java.lang.String exportAsXML()
exports the content of the CssParameter as XML formated String

Specified by:
exportAsXML in interface Marshallable
Returns:
xml representation of the CssParameter