Java Doc for XPathElement.java in  » J2EE » fleXive » com » flexive » shared » 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 » J2EE » fleXive » com.flexive.shared 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.shared.XPathElement

XPathElement
public class XPathElement implements Serializable(Code)
A single XPath element (alias and multiplicity)
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)



Constructor Summary
public  XPathElement(String alias, int index, boolean indexDefined)
    

Method Summary
public static  StringbuildXPath(boolean leadingSlash, String... elements)
    
public  booleanequals(Object obj)
    
public  StringgetAlias()
    
public  intgetIndex()
    
public static  int[]getIndices(String XPath)
    
public static  FxPKgetPK(String xPath)
     Extract the primary key stored in the given XPath.
public  inthashCode()
    
public  booleanisIndexDefined()
    
public static  booleanisValidXPath(String XPath)
    
public static  XPathElementlastElement(String XPath)
    
public  voidsetIndex(int index)
    
public static  List<XPathElement>split(String XPath)
    
public static  StringstripType(String XPath)
    
public static  XPathElementtoElement(String XPath, String alias)
    
public  StringtoString()
    
public static  StringtoXPath(List<XPathElement> xpe)
    
public static  StringtoXPathMult(String XPath)
    
public static  StringtoXPathNoMult(List<XPathElement> xpe)
    
public static  StringtoXPathNoMult(String XPath)
    


Constructor Detail
XPathElement
public XPathElement(String alias, int index, boolean indexDefined)(Code)
Ctor
Parameters:
  alias - alias to use
Parameters:
  index - multiplicity to apply
Parameters:
  indexDefined - was the multiplicity explicitly defined?




Method Detail
buildXPath
public static String buildXPath(boolean leadingSlash, String... elements)(Code)
Build an XPath from the given elements
Parameters:
  leadingSlash - prepend a leading slash character?
Parameters:
  elements - elements that build the XPath XPath



equals
public boolean equals(Object obj)(Code)



getAlias
public String getAlias()(Code)
Getter for the alias alias



getIndex
public int getIndex()(Code)
Getter for the multiplicity multiplicity



getIndices
public static int[] getIndices(String XPath) throws FxInvalidParameterException(Code)
Get the FQ indices of an XPath as an int array
Parameters:
  XPath - the xpath to examine FQ indices of an XPath as an int array
throws:
  FxInvalidParameterException - on errors



getPK
public static FxPK getPK(String xPath)(Code)
Extract the primary key stored in the given XPath. If no PK is contained in the XPath, a FxRuntimeException is thrown.
Parameters:
  xPath - the xpath the primary key stored in the given XPath
throws:
  com.flexive.shared.exceptions.FxRuntimeException - if the given xpath is invalid or contains no PK



hashCode
public int hashCode()(Code)



isIndexDefined
public boolean isIndexDefined()(Code)
Was the multiplicity explicitly defined? multiplicity explicitly defined



isValidXPath
public static boolean isValidXPath(String XPath)(Code)
Check if this XPath is valid
Parameters:
  XPath - valid or not



lastElement
public static XPathElement lastElement(String XPath) throws FxInvalidParameterException(Code)
Get the last (rightmost) element of an XPath
Parameters:
  XPath - last (rightmost) element of an XPath
throws:
  FxInvalidParameterException -



setIndex
public void setIndex(int index)(Code)
Setter for the multiplicity
Parameters:
  index - the multiplicity to apply



split
public static List<XPathElement> split(String XPath) throws FxInvalidParameterException(Code)
Split an XPath into its elements
Parameters:
  XPath - XPathElement array
throws:
  FxInvalidParameterException - for invalid elements



stripType
public static String stripType(String XPath)(Code)
Strip leading types from an XPath if present
Parameters:
  XPath - the XPath XPath without leading type



toElement
public static XPathElement toElement(String XPath, String alias) throws FxInvalidParameterException(Code)
Convert an alias of an XPath to an element
Parameters:
  XPath - full XPath, only used if exception is thrown
Parameters:
  alias - alias to convert to an XPathElement XPathElement
throws:
  FxInvalidParameterException -



toString
public String toString()(Code)
get FQN of the alias FQ alias



toXPath
public static String toXPath(List<XPathElement> xpe)(Code)
Get the XPath of an array of XPathElements with multiplicities
Parameters:
  xpe - list containing XPathElement XPath



toXPathMult
public static String toXPathMult(String XPath) throws FxInvalidParameterException(Code)
Get the given XPath with full multiplicity information
Parameters:
  XPath - XPath XPath with full multiplicity information
throws:
  FxInvalidParameterException - for invalid XPath



toXPathNoMult
public static String toXPathNoMult(List<XPathElement> xpe)(Code)
Get the XPath of an array of XPathElements without multiplicities
Parameters:
  xpe - list containing XPathElement XPath



toXPathNoMult
public static String toXPathNoMult(String XPath) throws FxInvalidParameterException(Code)
Get the given XPath with no indices
Parameters:
  XPath - XPath with indices XPath with indices stripped
throws:
  FxInvalidParameterException - for invalid XPath



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)

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