Java Doc for TimeConditionParser.java in  » 6.0-JDK-Modules » j2me » com » sun » perseus » parser » 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 » 6.0 JDK Modules » j2me » com.sun.perseus.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.perseus.parser.AbstractParser
      com.sun.perseus.parser.ClockParser
         com.sun.perseus.parser.TimeConditionParser

TimeConditionParser
public class TimeConditionParser extends ClockParser (Code)
Parser for SVG time condition values, as defined in the SVG specification for timing attributes: http://www.w3.org/TR/SVG11/animate.html#TimingAttributes
author:
   Chris Campbell
version:
   $Id: TimeConditionParser.java,v 1.4 2006/04/21 06:40:40 st125089 Exp $




Method Summary
final public static  booleanisLetterOrDigit(char c)
     Do not use Character.isLetterOrDigit because it is not supported on all Java platforms.
Parameters:
  c - the character to test.
final protected  voidparseAccessKey()
     Parses an accessKey time condition.
public  TimeCondition[]parseBeginEndAttribute(String attrValue, TimedElementNode ten, boolean isBegin)
     Parses a begin/end timing attribute value.
final protected  voidparseEvent(String id, String eventType)
     Parses an event base time condition.
final protected  voidparseOffset()
     Parses an offset time condition.
final protected  longparseOptionalOffset()
     Parses an optional offset value.
final protected  voidparseOther()
     Parses a time condition with an optional id prefix.
final protected  voidparseRepeat(String id)
     Parses a repeat time condition.
final protected  longparseSignedClockValue()
     Helper method that parses a signed clock value (one that may or may not be preceded by a '-' or '+' sign.
final protected  voidparseSyncBase(String id, boolean isBeginSync)
     Parses a syncbase time condition.
final public static  StringtoDOMEventType(String smilEventType)
     Converts the event to the DOMEvent type.



Method Detail
isLetterOrDigit
final public static boolean isLetterOrDigit(char c)(Code)
Do not use Character.isLetterOrDigit because it is not supported on all Java platforms.
Parameters:
  c - the character to test. true if c is a letter or a digit.



parseAccessKey
final protected void parseAccessKey()(Code)
Parses an accessKey time condition. The current character is assumed to be the first character after "accesskey(". If parsing is successful, an AccessKeyCondition is added to the list of time conditions and the current character is the character that immediately follows the access key value (either the ')' or the optional offset).



parseBeginEndAttribute
public TimeCondition[] parseBeginEndAttribute(String attrValue, TimedElementNode ten, boolean isBegin)(Code)
Parses a begin/end timing attribute value. This method throws an IllegalArgumentException if the input argument's syntax does not conform to that of a clock value, as defined by the SVG animate tag specification.
Parameters:
  attrValue - the value to parse.
Parameters:
  ten - the TimedElementNode for which the attribute is parsed.
Parameters:
  isBegin - defines whether this is a begin attribute. an array of TimeConditions corresponding to theinput attrubute value.



parseEvent
final protected void parseEvent(String id, String eventType)(Code)
Parses an event base time condition. If id is null, the event base id will be "unspecified", and the eventType is assumed to be non-null (the current character is assumed to be the first character after the event type). If eventType is null, the event type will be parsed (the current character is assumed to be the first character after the event base id and dot, e.g. "foo."). If parsing is successful, an EventBaseCondition is added to the list of time conditions and the current character is the character that immediately follows the event base value (either the id, eventType, or the optional offset).
Parameters:
  id - the identifier for this time condition; can be null
Parameters:
  eventType - the event type for this time condition; can be nullif the id was already parsed



parseOffset
final protected void parseOffset()(Code)
Parses an offset time condition. The current character is assumed to be '+', '-', or a numeral. If parsing is successful, an OffsetCondition is added to the list of time conditions and the current character is the character that immediately follows the offset value.
See Also:   TimeConditionParser.parseSignedClockValue



parseOptionalOffset
final protected long parseOptionalOffset()(Code)
Parses an optional offset value. If the current character is a sign value ('+' or '-'), the offset value is parsed and returned as a long value. If the offset value is not present (current is ';' or -1), this method returns zero. If some other character is encountered, an IllegalArgumentException is thrown. a signed long offset value (in milliseconds)
See Also:   TimeConditionParser.parseSignedClockValue



parseOther
final protected void parseOther()(Code)
Parses a time condition with an optional id prefix. Delegates to one of the other parse*() methods, depending on whether the string matches a repeat, syncbase, or event time condition.



parseRepeat
final protected void parseRepeat(String id)(Code)
Parses a repeat time condition. The current character is assumed to be the first character after "repeat(". If parsing is successful, a RepeatCondition is added to the list of time conditions and the current character is the character that immediately follows the repeat value (either the ')' or the optional offset).
Parameters:
  id - the identifier for this time condition; if null, the eventbase id will be "unspecified"



parseSignedClockValue
final protected long parseSignedClockValue()(Code)
Helper method that parses a signed clock value (one that may or may not be preceded by a '-' or '+' sign. Returns the parsed clock value as a long offset. If the clock string begins with a '-' sign, the returned offset value will be negative. If the clock string begins with a '+' sign (or is unsigned), the returned offset value will be positive. a signed long offset value (in milliseconds)
See Also:   ClockParser



parseSyncBase
final protected void parseSyncBase(String id, boolean isBeginSync)(Code)
Parses a syncbase time condition. The current character is assumed to be the first character after "begin" or "end". If parsing is successful, a SyncBaseCondition is added to the list of time conditions and the current character is the character that immediately follows the syncbase value (either the "begin", "end", or the optional offset).
Parameters:
  id - the identifier for this time condition; should not be null
Parameters:
  isBeginSync - true if this condition is on the syncBase's begincondition; false if this condition is on the syncBase's end condition.



toDOMEventType
final public static String toDOMEventType(String smilEventType)(Code)
Converts the event to the DOMEvent type. This is required because for some events, the name used in the SMIL begin/end attribute is not the same as the DOM event so some translation is needed.
Parameters:
  smilEventType - the name of the animation event type. the DOM Level 2 Event name.
See Also:    http://www.w3.org/TR/SVG11/interact.html#SVGEvents



Fields inherited from com.sun.perseus.parser.ClockParser
final public static int MILLIS_PER_HOUR(Code)(Java Doc)
final public static int MILLIS_PER_MINUTE(Code)(Java Doc)
final public static int MILLIS_PER_SECOND(Code)(Java Doc)
final public static int MINUTES_PER_HOUR(Code)(Java Doc)
final public static int SECONDS_PER_MINUTE(Code)(Java Doc)

Methods inherited from com.sun.perseus.parser.ClockParser
public long parseClock(String clockString)(Code)(Java Doc)
protected long parseClock(boolean eos)(Code)(Java Doc)

Fields inherited from com.sun.perseus.parser.AbstractParser
protected int current(Code)(Java Doc)
protected int currentPos(Code)(Java Doc)
protected String s(Code)(Java Doc)

Methods inherited from com.sun.perseus.parser.AbstractParser
final protected boolean currentStartsWith(String str)(Code)(Java Doc)
final protected int read()(Code)(Java Doc)
final protected void setString(String str)(Code)(Java Doc)
final protected void skipCommaSpaces()(Code)(Java Doc)
final protected void skipSepSpaces(char sep)(Code)(Java Doc)
final protected void skipSpaces()(Code)(Java Doc)
final protected void skipSpacesCommaSpaces()(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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