Java Doc for TagParserUtility.java in  » IDE-Netbeans » etl.project » org » netbeans » modules » sql » framework » common » utils » 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 » etl.project » org.netbeans.modules.sql.framework.common.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.sql.framework.common.utils.TagParserUtility

TagParserUtility
public class TagParserUtility (Code)
Utility class for reading and writing some mundane objects like SQLObjects
author:
   Ritesh Adval
author:
   Sudhi Seshachala
author:
   Ahimanikya Satapathy
version:
   $Revision$


Field Summary
final public static  StringATTR_REFID
    
final public static  StringATTR_TYPE
    
final public static  StringTAG_INPUT
    
final public static  StringTAG_OBJECTREF
    


Method Summary
public static  SQLDefinitiongetAncestralSQLDefinition(SQLObject sqlObj)
     Gets ancestral SQLDefinition instance for the given SQLExpresionObject.
public static  StringgetDisplayStringFor(int type)
     Gets the displayable representation of SQLObject type for given int type.
public static  intgetIntType(String type)
     Gets the int representation for given SQLObject string type.
public static  StringgetNodeAttributeValue(Node node, String attName)
    
public static  MapgetNodeAttributes(Node node)
     Returns all the attributes name value of Node in a Map.
public static  StringgetStringType(int type)
     Gets the String representation of SQLObject type for given int type.
public static  AttributeparseAttribute(Element elem)
    
public static  voidparseAttributeList(Map attributes, NodeList list)
    
public static  voidparseInputChildNodes(SQLConnectableObject sqlObj, NodeList inputArgList)
     Parses list of Nodes possibly containing input elements.
public static  voidparseInputTag(SQLConnectableObject sqlObj, Element elem)
     Parser the tag .
public static  voidparseInputTagList(SQLConnectableObject sqlObj, NodeList inputArgList)
     Parses the tag .
public static  SQLObjectparseXMLObjectRefTag(SQLContainerObject definition, Element xmlElement)
     Reads in and resolves, if possible, from the given SQLDefinition instance the reference to an SQLObject contained in the given XML Element.
public static  StringtoXMLAttributeTags(Map attributes, String prefix)
     Generates XML elements representing this object's associated attributes.
public static  StringtoXMLInputTag(String prefix, List inputs)
     Writer for tag.
public static  StringtoXMLInputTag(String prefix, Map inputs)
     Writer for tag.
public static  StringtoXMLObjectRefTag(SQLObject object, String prefix)
     Writes out an XML document element representing a reference to the given SQLObject, using the given string as a prefix for each output line.

Field Detail
ATTR_REFID
final public static String ATTR_REFID(Code)



ATTR_TYPE
final public static String ATTR_TYPE(Code)



TAG_INPUT
final public static String TAG_INPUT(Code)



TAG_OBJECTREF
final public static String TAG_OBJECTREF(Code)





Method Detail
getAncestralSQLDefinition
public static SQLDefinition getAncestralSQLDefinition(SQLObject sqlObj)(Code)
Gets ancestral SQLDefinition instance for the given SQLExpresionObject.
Parameters:
  sqlObj - SQLConnectableObject whose ancestor SQLDefinition is sought SQLDefinition instance
throws:
  BaseException - if ancestral SQLDefinition could not be located



getDisplayStringFor
public static String getDisplayStringFor(int type) throws BaseException(Code)
Gets the displayable representation of SQLObject type for given int type.
Parameters:
  type - int representation of SQLObject type String representation of type
throws:
  BaseException - thrown while getting the type



getIntType
public static int getIntType(String type) throws BaseException(Code)
Gets the int representation for given SQLObject string type.
Parameters:
  type - String representation of SQLObject type int representation of type
throws:
  BaseException - thrown while getting the type



getNodeAttributeValue
public static String getNodeAttributeValue(Node node, String attName)(Code)
Returns node attribute value
Parameters:
  node -
Parameters:
  attName - value of the attribute



getNodeAttributes
public static Map getNodeAttributes(Node node)(Code)
Returns all the attributes name value of Node in a Map.
Parameters:
  node - map containing name/value of all Node attributes.



getStringType
public static String getStringType(int type) throws BaseException(Code)
Gets the String representation of SQLObject type for given int type.
Parameters:
  type - int representation of SQLObject type String representation of type
throws:
  BaseException - thrown while getting the type



parseAttribute
public static Attribute parseAttribute(Element elem) throws BaseException(Code)



parseAttributeList
public static void parseAttributeList(Map attributes, NodeList list) throws BaseException(Code)



parseInputChildNodes
public static void parseInputChildNodes(SQLConnectableObject sqlObj, NodeList inputArgList) throws BaseException(Code)
Parses list of Nodes possibly containing input elements.
Parameters:
  sqlObj - SQLConnectableObject to contain the parsed input objects
Parameters:
  inputArgList - NodeList with possible input elements
throws:
  BaseException - if error occurs while parsing



parseInputTag
public static void parseInputTag(SQLConnectableObject sqlObj, Element elem) throws BaseException(Code)
Parser the tag . This should be called from any SQLObject which has input tag
Parameters:
  sqlObj - to be parsed
Parameters:
  elem - Element
throws:
  BaseException - if error occurs while parsing



parseInputTagList
public static void parseInputTagList(SQLConnectableObject sqlObj, NodeList inputArgList) throws BaseException(Code)
Parses the tag . This should be called from any SQLObject which has input tag
Parameters:
  sqlObj - to be parsed
Parameters:
  inputArgList - NodeList
throws:
  BaseException - if error occurs while parsing



parseXMLObjectRefTag
public static SQLObject parseXMLObjectRefTag(SQLContainerObject definition, Element xmlElement) throws BaseException(Code)
Reads in and resolves, if possible, from the given SQLDefinition instance the reference to an SQLObject contained in the given XML Element.
Parameters:
  definition - definition from which to attempt to resolve the SQLObjectreference
Parameters:
  xmlElement - Element representing the SQLObject reference SQLObject referenced by xmlElement; null if object has not yet been parsedand registered with definition.
throws:
  BaseException - if errors occur during parsing



toXMLAttributeTags
public static String toXMLAttributeTags(Map attributes, String prefix)(Code)
Generates XML elements representing this object's associated attributes.
Parameters:
  prefix - Prefix string to be prepended to each element String containing XML representation of attributes



toXMLInputTag
public static String toXMLInputTag(String prefix, List inputs) throws BaseException(Code)
Writer for tag. This should be called from any SQLObject which needs to write out input child elements from a List.
Parameters:
  prefix - Prefix string to be appended to each line of the generated XMLdocument
Parameters:
  inputs - List of SQLInputObject instances to be written out XML element containing input reference information



toXMLInputTag
public static String toXMLInputTag(String prefix, Map inputs)(Code)
Writer for tag. This should be called from any SQLObject which needs to write out input child elements from a Map.
Parameters:
  prefix - Prefix string to be appended to each line of the generated XMLdocument
Parameters:
  inputs - Map of SQLInputObject instances to be written out XML element containing references to SQLObjects as contained in inputs



toXMLObjectRefTag
public static String toXMLObjectRefTag(SQLObject object, String prefix) throws BaseException(Code)
Writes out an XML document element representing a reference to the given SQLObject, using the given string as a prefix for each output line.
Parameters:
  object - SQLObject to be referenced in the XML element
Parameters:
  prefix - String to prepend to each new line in the String XML document element referencing object
throws:
  BaseException - if object is null or errors occur during writing



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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)

w_w_w_._ja_v___a__2__s._c___om__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.