www.element4solution.com

e4s.application.sysmodule.css
Class E4StyleValue

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.application.sysmodule.css.E4StyleValue

public class E4StyleValue
extends E4Object

Represents a given E4CSS Value from a E4CssFile E4CssFile passing a parsing procedure of a E4CSS.Value

Since:
JDK 1.4
See Also:
E4CssFile, E4StyleDefinition, E4CSS.Attribute, E4CSS.Value

Field Summary
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4StyleValue(E4CSS.Value val)
          Constructor for E4StyleValue with given E4CSS.Value.
E4StyleValue(E4CSS.Value val, java.lang.String text)
          Constructor for E4StyleValue with a given E4CSS.Value and a custom String to be parsed against this value.
E4StyleValue(java.lang.String text)
          Constructor for E4StyleValue with given String.
E4StyleValue(java.lang.String text, E4CSS.Attribute attr)
          Constructor for E4StyleValue with a given E4CSS.Attribute and a custom String to be parsed against this value.
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 E4CSS.Value getCssValue()
          Retrieve intrinsic E4CSS.Value.
 java.lang.String getText()
          Retrieve text value of intrinsic E4CSS.Value.
 boolean isKeyword()
          Determine if intrinsic E4CSS.Value is type KEYWORD.
 java.lang.String toString()
          Retrieve text value of intrinsic E4CSS.Value.
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

E4StyleValue

public E4StyleValue(E4CSS.Value val)
Constructor for E4StyleValue with given E4CSS.Value.

Parameters:
val - E4CSS.Value.

E4StyleValue

public E4StyleValue(java.lang.String text)
             throws java.lang.Exception
Constructor for E4StyleValue with given String. Needs to be parsed against E4CSS.Values.

Parameters:
text - String to be parsed.
Throws:
java.lang.Exception - thrown if parsing did not return any matches.

E4StyleValue

public E4StyleValue(E4CSS.Value val,
                    java.lang.String text)
             throws java.lang.Exception
Constructor for E4StyleValue with a given E4CSS.Value and a custom String to be parsed against this value.

Parameters:
val - E4CSS.Value.
text - custom String to be parsed against E4CSS.Value val.
Throws:
java.lang.Exception - thrown if parsing did not return any matches.

E4StyleValue

public E4StyleValue(java.lang.String text,
                    E4CSS.Attribute attr)
             throws java.lang.Exception
Constructor for E4StyleValue with a given E4CSS.Attribute and a custom String to be parsed against this value.

Parameters:
text - custom String to be parsed against E4CSS.Attribute attr.
attr - E4CSS.Attribute.
Throws:
java.lang.Exception - thrown if parsing did not return any matches.
Method Detail

getCssValue

public E4CSS.Value getCssValue()
Retrieve intrinsic E4CSS.Value.

Returns:
E4CSS.Value (cannot be null).

getText

public java.lang.String getText()
Retrieve text value of intrinsic E4CSS.Value.

Returns:
name of E4CSS.Value if the value is type KEYWORD, else custom text.

isKeyword

public boolean isKeyword()
Determine if intrinsic E4CSS.Value is type KEYWORD.

Returns:
true if E4CSS.Value is type KEYWORD.

toString

public java.lang.String toString()
Retrieve text value of intrinsic E4CSS.Value.

Overrides:
toString in class E4Object
Returns:
name of E4CSS.Value if the value is type KEYWORD, else custom text.

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com