www.element4solution.com

e4s.application.sysmodule.css
Class E4StyleDefinition

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

public class E4StyleDefinition
extends E4Object

Defines a list of style definitions from a E4CssFile E4CssFile. The definitions are represented by a E4CSS.Attribute and a E4StyleValue which contains a valid E4CSS.Value.

Since:
JDK 1.4
See Also:
E4CssFile, E4StyleValue, 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
E4StyleDefinition(java.lang.String content)
          Constructor for E4StyleDefinition using a given text as input.
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 boolean containsKey(E4CSS.Attribute attr)
          Determine if E4StyleDefinition contains the given E4CSS.Attribute.
 E4CSS.Attribute[] getAllDefinitionKeys()
          Return all different E4CSS.Attributes of definition list.
 java.lang.String getContent()
          Retrieve String representation of STYLE_definition.
 E4StyleValue getValue(E4CSS.Attribute attr)
          Return the contained E4StyleValue of the given E4CSS.Attribute.
 java.lang.String toString()
          Retrieve String representation of STYLE_definition.
 
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

E4StyleDefinition

public E4StyleDefinition(java.lang.String content)
                  throws java.lang.Exception
Constructor for E4StyleDefinition using a given text as input.

Parameters:
content - ';'-delimited list of E4CSS.Attribute-Value pairs.
Throws:
java.lang.Exception - is thrown if the E4StyleValue cannot be built due to invalid E4CSS.Value parsing.
Method Detail

getValue

public E4StyleValue getValue(E4CSS.Attribute attr)
Return the contained E4StyleValue of the given E4CSS.Attribute.

Parameters:
attr - E4CSS.Attribute.
Returns:
E4StyleValue if E4CSS.Attribute is found else null.

getAllDefinitionKeys

public E4CSS.Attribute[] getAllDefinitionKeys()
Return all different E4CSS.Attributes of definition list.

Returns:
array of E4CSS.Attributes.

containsKey

public boolean containsKey(E4CSS.Attribute attr)
Determine if E4StyleDefinition contains the given E4CSS.Attribute.

Parameters:
attr - E4CSS.Attribute to check.
Returns:
true if Attribute is contained in list of definitions.

getContent

public java.lang.String getContent()
Retrieve String representation of STYLE_definition.

Returns:
original String containing E4CSS.Attribute-Value pairs.

toString

public java.lang.String toString()
Retrieve String representation of STYLE_definition.

Overrides:
toString in class E4Object
Returns:
original String containing E4CSS.Attribute-Value pairs.

_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