Java Doc for LexicalUnit.java in  » IDE-Netbeans » visualweb.api.designer » org » w3c » css » sac » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » org.w3c.css.sac 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.css.sac.LexicalUnit

All known Subclasses:   org.apache.batik.css.parser.CSSLexicalUnit,
LexicalUnit
public interface LexicalUnit (Code)
This is a lexical unit for CSS values.

Remarks: Not all the following lexical units are supported (or will be supported) by CSS.

All examples are CSS2 compliant.
version:
   $Revision$
author:
   Philippe Le Hegaret



Field Summary
final public static  shortSAC_ATTR
     Attribute: attr(...).
final public static  shortSAC_CENTIMETER
     Absolute length cm.
final public static  shortSAC_COUNTERS_FUNCTION
     function counters.
final public static  shortSAC_COUNTER_FUNCTION
     function counter.
final public static  shortSAC_DEGREE
     Angle deg.
final public static  shortSAC_DIMENSION
     unknown dimension.
final public static  shortSAC_EM
     Relative lengthem.
final public static  shortSAC_EX
     Relative lengthex.
final public static  shortSAC_FUNCTION
     unknown function.
final public static  shortSAC_GRADIAN
     Angle grad.
final public static  shortSAC_HERTZ
     Frequency Hz.
final public static  shortSAC_IDENT
     any identifier except inherit.
final public static  shortSAC_INCH
     Absolute length in.
final public static  shortSAC_INHERIT
     identifier inherit.
final public static  shortSAC_INTEGER
     Integers.
final public static  shortSAC_KILOHERTZ
     Frequency kHz.
final public static  shortSAC_MILLIMETER
     Absolute length mm.
final public static  shortSAC_MILLISECOND
     Time ms.
final public static  shortSAC_OPERATOR_COMMA
    
final public static  shortSAC_OPERATOR_EXP
    
final public static  shortSAC_OPERATOR_GE
    
final public static  shortSAC_OPERATOR_GT
    
final public static  shortSAC_OPERATOR_LE
    
final public static  shortSAC_OPERATOR_LT
    
final public static  shortSAC_OPERATOR_MINUS
    
final public static  shortSAC_OPERATOR_MOD
    
final public static  shortSAC_OPERATOR_MULTIPLY
    
final public static  shortSAC_OPERATOR_PLUS
    
final public static  shortSAC_OPERATOR_SLASH
    
final public static  shortSAC_OPERATOR_TILDE
    
final public static  shortSAC_PERCENTAGE
     Percentage.
final public static  shortSAC_PICA
     Absolute length pc.
final public static  shortSAC_PIXEL
     Relative length px.
final public static  shortSAC_POINT
     Absolute length pt.
final public static  shortSAC_RADIAN
     Angle rad.
final public static  shortSAC_REAL
     reals.
final public static  shortSAC_RECT_FUNCTION
     function rect.
final public static  shortSAC_RGBCOLOR
     RGB Colors.
final public static  shortSAC_SECOND
     Time s.
final public static  shortSAC_STRING_VALUE
     A string.
final public static  shortSAC_SUB_EXPRESSION
    
final public static  shortSAC_UNICODERANGE
     A unicode range.
final public static  shortSAC_URI
     URI: uri(...).


Method Summary
public  StringgetDimensionUnitText()
     Returns the string representation of the unit.
public  floatgetFloatValue()
     Returns the float value.
public  StringgetFunctionName()
     Returns the name of the function.
public  intgetIntegerValue()
     Returns the integer value.
public  shortgetLexicalUnitType()
     An integer indicating the type of LexicalUnit.
public  LexicalUnitgetNextLexicalUnit()
     Returns the next value or null if any.
public  LexicalUnitgetParameters()
     The function parameters including operators (like the comma).
public  LexicalUnitgetPreviousLexicalUnit()
     Returns the previous value or null if any.
public  StringgetStringValue()
     Returns the string value.
public  LexicalUnitgetSubValues()
     Returns a list of values inside the sub expression.

Field Detail
SAC_ATTR
final public static short SAC_ATTR(Code)
Attribute: attr(...).
See Also:   LexicalUnit.getStringValue



SAC_CENTIMETER
final public static short SAC_CENTIMETER(Code)
Absolute length cm.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_COUNTERS_FUNCTION
final public static short SAC_COUNTERS_FUNCTION(Code)
function counters.
See Also:   LexicalUnit.getFunctionName
See Also:   LexicalUnit.getParameters



SAC_COUNTER_FUNCTION
final public static short SAC_COUNTER_FUNCTION(Code)
function counter.
See Also:   LexicalUnit.getFunctionName
See Also:   LexicalUnit.getParameters



SAC_DEGREE
final public static short SAC_DEGREE(Code)
Angle deg.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_DIMENSION
final public static short SAC_DIMENSION(Code)
unknown dimension.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_EM
final public static short SAC_EM(Code)
Relative lengthem.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_EX
final public static short SAC_EX(Code)
Relative lengthex.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_FUNCTION
final public static short SAC_FUNCTION(Code)
unknown function.
See Also:   LexicalUnit.getFunctionName
See Also:   LexicalUnit.getParameters



SAC_GRADIAN
final public static short SAC_GRADIAN(Code)
Angle grad.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_HERTZ
final public static short SAC_HERTZ(Code)
Frequency Hz.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_IDENT
final public static short SAC_IDENT(Code)
any identifier except inherit.
See Also:   LexicalUnit.getStringValue



SAC_INCH
final public static short SAC_INCH(Code)
Absolute length in.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_INHERIT
final public static short SAC_INHERIT(Code)
identifier inherit.



SAC_INTEGER
final public static short SAC_INTEGER(Code)
Integers.
See Also:   LexicalUnit.getIntegerValue



SAC_KILOHERTZ
final public static short SAC_KILOHERTZ(Code)
Frequency kHz.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_MILLIMETER
final public static short SAC_MILLIMETER(Code)
Absolute length mm.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_MILLISECOND
final public static short SAC_MILLISECOND(Code)
Time ms.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_OPERATOR_COMMA
final public static short SAC_OPERATOR_COMMA(Code)
,



SAC_OPERATOR_EXP
final public static short SAC_OPERATOR_EXP(Code)
^



SAC_OPERATOR_GE
final public static short SAC_OPERATOR_GE(Code)
>=



SAC_OPERATOR_GT
final public static short SAC_OPERATOR_GT(Code)
>



SAC_OPERATOR_LE
final public static short SAC_OPERATOR_LE(Code)
<=



SAC_OPERATOR_LT
final public static short SAC_OPERATOR_LT(Code)
<



SAC_OPERATOR_MINUS
final public static short SAC_OPERATOR_MINUS(Code)
-



SAC_OPERATOR_MOD
final public static short SAC_OPERATOR_MOD(Code)
%



SAC_OPERATOR_MULTIPLY
final public static short SAC_OPERATOR_MULTIPLY(Code)



SAC_OPERATOR_PLUS
final public static short SAC_OPERATOR_PLUS(Code)
+



SAC_OPERATOR_SLASH
final public static short SAC_OPERATOR_SLASH(Code)
/



SAC_OPERATOR_TILDE
final public static short SAC_OPERATOR_TILDE(Code)
~



SAC_PERCENTAGE
final public static short SAC_PERCENTAGE(Code)
Percentage.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_PICA
final public static short SAC_PICA(Code)
Absolute length pc.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_PIXEL
final public static short SAC_PIXEL(Code)
Relative length px.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_POINT
final public static short SAC_POINT(Code)
Absolute length pt.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_RADIAN
final public static short SAC_RADIAN(Code)
Angle rad.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_REAL
final public static short SAC_REAL(Code)
reals.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_RECT_FUNCTION
final public static short SAC_RECT_FUNCTION(Code)
function rect.
See Also:   LexicalUnit.getFunctionName
See Also:   LexicalUnit.getParameters



SAC_RGBCOLOR
final public static short SAC_RGBCOLOR(Code)
RGB Colors. rgb(0, 0, 0) and #000
See Also:   LexicalUnit.getFunctionName
See Also:   LexicalUnit.getParameters



SAC_SECOND
final public static short SAC_SECOND(Code)
Time s.
See Also:   LexicalUnit.getFloatValue
See Also:   LexicalUnit.getDimensionUnitText



SAC_STRING_VALUE
final public static short SAC_STRING_VALUE(Code)
A string.
See Also:   LexicalUnit.getStringValue



SAC_SUB_EXPRESSION
final public static short SAC_SUB_EXPRESSION(Code)
sub expressions (a) (a + b) (normal/none)
See Also:   LexicalUnit.getSubValues



SAC_UNICODERANGE
final public static short SAC_UNICODERANGE(Code)
A unicode range. @@TO BE DEFINED



SAC_URI
final public static short SAC_URI(Code)
URI: uri(...).
See Also:   LexicalUnit.getStringValue





Method Detail
getDimensionUnitText
public String getDimensionUnitText()(Code)
Returns the string representation of the unit.

if this lexical unit represents a float, the dimension is an empty string.


See Also:   LexicalUnit.SAC_REAL
See Also:   LexicalUnit.SAC_DIMENSION
See Also:   LexicalUnit.SAC_EM
See Also:   LexicalUnit.SAC_EX
See Also:   LexicalUnit.SAC_PIXEL
See Also:   LexicalUnit.SAC_INCH
See Also:   LexicalUnit.SAC_CENTIMETER
See Also:   LexicalUnit.SAC_MILLIMETER
See Also:   LexicalUnit.SAC_POINT
See Also:   LexicalUnit.SAC_PICA
See Also:   LexicalUnit.SAC_PERCENTAGE
See Also:   LexicalUnit.SAC_DEGREE
See Also:   LexicalUnit.SAC_GRADIAN
See Also:   LexicalUnit.SAC_RADIAN
See Also:   LexicalUnit.SAC_MILLISECOND
See Also:   LexicalUnit.SAC_SECOND
See Also:   LexicalUnit.SAC_HERTZ
See Also:   LexicalUnit.SAC_KILOHERTZ
See Also:   



getFloatValue
public float getFloatValue()(Code)
Returns the float value.

If the type of LexicalUnit is one of SAC_DEGREE, SAC_GRADIAN, SAC_RADIAN, SAC_MILLISECOND, SAC_SECOND, SAC_HERTZ or SAC_KILOHERTZ, the value can never be negative.


See Also:   LexicalUnit.SAC_REAL
See Also:   LexicalUnit.SAC_DIMENSION
See Also:   LexicalUnit.SAC_EM
See Also:   LexicalUnit.SAC_EX
See Also:   LexicalUnit.SAC_PIXEL
See Also:   LexicalUnit.SAC_INCH
See Also:   LexicalUnit.SAC_CENTIMETER
See Also:   LexicalUnit.SAC_MILLIMETER
See Also:   LexicalUnit.SAC_POINT
See Also:   LexicalUnit.SAC_PICA
See Also:   LexicalUnit.SAC_PERCENTAGE
See Also:   LexicalUnit.SAC_DEGREE
See Also:   LexicalUnit.SAC_GRADIAN
See Also:   LexicalUnit.SAC_RADIAN
See Also:   LexicalUnit.SAC_MILLISECOND
See Also:   LexicalUnit.SAC_SECOND
See Also:   LexicalUnit.SAC_HERTZ
See Also:   LexicalUnit.SAC_KILOHERTZ



getFunctionName
public String getFunctionName()(Code)
Returns the name of the function.
See Also:   LexicalUnit.SAC_COUNTER_FUNCTION
See Also:   LexicalUnit.SAC_COUNTERS_FUNCTION
See Also:   LexicalUnit.SAC_RECT_FUNCTION
See Also:   LexicalUnit.SAC_FUNCTION
See Also:   LexicalUnit.SAC_RGBCOLOR



getIntegerValue
public int getIntegerValue()(Code)
Returns the integer value.
See Also:   LexicalUnit.SAC_INTEGER



getLexicalUnitType
public short getLexicalUnitType()(Code)
An integer indicating the type of LexicalUnit.



getNextLexicalUnit
public LexicalUnit getNextLexicalUnit()(Code)
Returns the next value or null if any.



getParameters
public LexicalUnit getParameters()(Code)
The function parameters including operators (like the comma). #000 is converted to rgb(0, 0, 0) can return null if SAC_FUNCTION.
See Also:   LexicalUnit.SAC_COUNTER_FUNCTION
See Also:   LexicalUnit.SAC_COUNTERS_FUNCTION
See Also:   LexicalUnit.SAC_RECT_FUNCTION
See Also:   LexicalUnit.SAC_FUNCTION
See Also:   LexicalUnit.SAC_RGBCOLOR



getPreviousLexicalUnit
public LexicalUnit getPreviousLexicalUnit()(Code)
Returns the previous value or null if any.



getStringValue
public String getStringValue()(Code)
Returns the string value.

If the type is SAC_URI, the return value doesn't contain uri(....) or quotes.

If the type is SAC_ATTR, the return value doesn't contain attr(....).
See Also:   LexicalUnit.SAC_URI
See Also:   LexicalUnit.SAC_ATTR
See Also:   LexicalUnit.SAC_IDENT
See Also:   LexicalUnit.SAC_STRING_VALUE
See Also:   LexicalUnit.SAC_UNICODERANGE
See Also:    @@TO BE DEFINED




getSubValues
public LexicalUnit getSubValues()(Code)
Returns a list of values inside the sub expression.
See Also:   LexicalUnit.SAC_SUB_EXPRESSION



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.