Java Doc for Path.java in  » UML » jrefactory » org » acm » seguin » project » 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 » UML » jrefactory » org.acm.seguin.project 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.acm.seguin.project.Path

Path
public class Path implements Cloneable(Code)
This object represents a path as used by CLASSPATH or PATH environment variable.

<sometask>
  <somepath>
    <pathelement location="/path/to/file.jar" />
    <pathelement path="/path/to/file2.jar:/path/to/class2;/path/to/class3" />
    <pathelement location="/path/to/file3.jar" />
    <pathelement location="/path/to/file4.jar" />
  </somepath>
</sometask>

The object implemention sometask must provide a method called createSomepath which returns an instance of Path. Nested path definitions are handled by the Path object and must be labeled pathelement.

The path element takes a parameter path which will be parsed and split into single elements. It will usually be used to define a path from an environment variable.
author:
   Thomas.Haas@softwired-inc.com
author:
   Stefan Bodewig
author:
   Mike Atkinson
version:
   $Id: Path.java,v 1.4 2004/03/25 20:24:28 mikeatkinson Exp $
since:
   2.8.01


Inner Class :public class PathElement

Field Summary
public static  PathsystemClasspath
    

Constructor Summary
public  Path(Project p, String path)
     Invoked by IntrospectionHelper for setXXX(Path p) attribute setters.
public  Path(Project project)
    

Method Summary
public  voidaddExisting(Path source)
     Adds the components on the given path which exist to this Path.
public  voidaddJavaRuntime()
     Add the Java Runtime classes to this Path instance.
public  voidappend(Path other)
     Append the contents of the other Path instance to this.
public  Objectclone()
     Return a Path that holds the same elements as this instance.
public  PathconcatSystemClasspath()
     Concatenates the system class path in the order specified by the ${build.sysclasspath} property - using "last" as default value.
public  PathconcatSystemClasspath(String defValue)
     Concatenates the system class path in the order specified by the ${build.sysclasspath} property - using the supplied value if ${build.sysclasspath} has not been set.
public  PathcreatePath()
     Creates a nested <path> element.
public  PathElementcreatePathElement()
     Creates the nested <pathelement> element.
protected  voiddieOnCircularReference(Stack stk, Project p)
     Overrides the version of DataType to recurse on all DataType child elements that may have been added.
public  String[]list()
     Returns all path elements defined by this and nested path objects.
protected  voidlog(String message)
     Logs a message through the project object if one has been provided.
public  voidsetLocation(File location)
     Adds a element definition to the path.
public  voidsetPath(String path)
     Parses a path definition and creates single PathElements.
public  intsize()
     How many parts does this Path instance consist of.
public  StringtoString()
     Returns a textual representation of the path, which can be used as CLASSPATH or PATH environment variable definition.
public static  StringtranslateFile(String source)
     Returns its argument with all file separator characters replaced so that they match the local OS conventions.
protected static  booleantranslateFileSep(StringBuffer buffer, int pos)
     Translates all occurrences of / or \ to correct separator of the current platform and returns whether it had to do any replacements.
public static  String[]translatePath(Project project, String source)
     Splits a PATH (with : or ; as separators) into its parts.

Field Detail
systemClasspath
public static Path systemClasspath(Code)
The system classspath as a Path object




Constructor Detail
Path
public Path(Project p, String path)(Code)
Invoked by IntrospectionHelper for setXXX(Path p) attribute setters.



Path
public Path(Project project)(Code)




Method Detail
addExisting
public void addExisting(Path source)(Code)
Adds the components on the given path which exist to this Path. Components that don't exist, aren't added.
Parameters:
  source - - source path whose components are examined for existence



addJavaRuntime
public void addJavaRuntime()(Code)
Add the Java Runtime classes to this Path instance.



append
public void append(Path other)(Code)
Append the contents of the other Path instance to this.



clone
public Object clone()(Code)
Return a Path that holds the same elements as this instance.



concatSystemClasspath
public Path concatSystemClasspath()(Code)
Concatenates the system class path in the order specified by the ${build.sysclasspath} property - using "last" as default value.



concatSystemClasspath
public Path concatSystemClasspath(String defValue)(Code)
Concatenates the system class path in the order specified by the ${build.sysclasspath} property - using the supplied value if ${build.sysclasspath} has not been set.



createPath
public Path createPath() throws ProjectException(Code)
Creates a nested <path> element.



createPathElement
public PathElement createPathElement()(Code)
Creates the nested <pathelement> element.



dieOnCircularReference
protected void dieOnCircularReference(Stack stk, Project p) throws ProjectException(Code)
Overrides the version of DataType to recurse on all DataType child elements that may have been added.



list
public String[] list() throws ProjectException(Code)
Returns all path elements defined by this and nested path objects. list of path elements.



log
protected void log(String message)(Code)
Logs a message through the project object if one has been provided.
Parameters:
  message - The message to log.Should not be null.
Parameters:
  priority - The logging priority of the message.



setLocation
public void setLocation(File location) throws ProjectException(Code)
Adds a element definition to the path.
Parameters:
  location - the location of the element to add (must not benull nor empty.



setPath
public void setPath(String path) throws ProjectException(Code)
Parses a path definition and creates single PathElements.
Parameters:
  path - the path definition.



size
public int size()(Code)
How many parts does this Path instance consist of.



toString
public String toString()(Code)
Returns a textual representation of the path, which can be used as CLASSPATH or PATH environment variable definition. a textual representation of the path.



translateFile
public static String translateFile(String source)(Code)
Returns its argument with all file separator characters replaced so that they match the local OS conventions.



translateFileSep
protected static boolean translateFileSep(StringBuffer buffer, int pos)(Code)
Translates all occurrences of / or \ to correct separator of the current platform and returns whether it had to do any replacements.



translatePath
public static String[] translatePath(Project project, String source)(Code)
Splits a PATH (with : or ; as separators) into its parts.



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.