public class EclipseClasspathEntry
extends java.lang.Object
Constructor and Description |
---|
EclipseClasspathEntry(java.io.File projectDir,
java.lang.String type)
Initialize the new instance with its type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if the given object is the same as this one
|
protected org.pfsw.file.FileUtil |
fileUtil() |
java.lang.String |
getAbsolutePath() |
protected java.lang.String |
getEntryType() |
protected boolean |
getExported() |
java.lang.String |
getPath()
Returns the path (without resolved variable) of this entry
|
java.lang.String |
getProjectPath() |
java.lang.String |
getSourcePath()
Returns the path to the corresponding source code of this entry
|
int |
hashCode()
Returns the hash code
|
protected java.lang.String |
inspectString() |
protected boolean |
isAbsolute() |
boolean |
isContainerType()
Returns true if this classpath entry is is of kind="con"
|
boolean |
isExported()
Returns true if this entry is visible to depending projects
|
boolean |
isLibraryType()
Returns true if this classpath entry is is of kind="lib"
|
boolean |
isOutputType()
Returns true if this classpath entry is is of kind="output"
|
boolean |
isProjectReference()
Returns true if this entry refers to another project in the same workspace
|
boolean |
isRelativeToWorkspace()
Returns true if this entry refers to a file or directory in a different
project of the same workspace.
|
boolean |
isSourceType()
Returns true if this classpath entry is is of kind="src"
|
boolean |
isVariableType()
Returns true if this classpath entry is is of kind="var"
|
boolean |
replaceVariable(java.util.Properties variables)
Replaces the variable in the path with the corresponding value from
the variable in the given variables pool.
|
protected void |
setEntryType(java.lang.String newValue) |
void |
setExported(boolean newValue)
Sets whether this entry is exported to be visible to depening projects
|
void |
setPath(java.lang.String newValue)
Sets the path (without resolved variable) of this entry
|
void |
setProjectPath(java.lang.String newValue) |
void |
setSourcePath(java.lang.String newValue)
Sets the path to the corresponding source code of this entry
|
protected org.pfsw.text.StringUtil |
str() |
java.lang.String |
toString()
Returns the string representation
|
public EclipseClasspathEntry(java.io.File projectDir, java.lang.String type)
type
- The type as it is defined by the XML attribute "kind" of a
classpathentry tag in .classpathprotected java.lang.String getEntryType()
protected void setEntryType(java.lang.String newValue)
public java.lang.String getProjectPath()
public void setProjectPath(java.lang.String newValue)
public java.lang.String getPath()
public void setPath(java.lang.String newValue)
public java.lang.String getSourcePath()
public void setSourcePath(java.lang.String newValue)
protected boolean getExported()
public void setExported(boolean newValue)
public java.lang.String getAbsolutePath()
public boolean isSourceType()
public boolean isProjectReference()
public boolean isRelativeToWorkspace()
public boolean isVariableType()
public boolean isOutputType()
public boolean isLibraryType()
public boolean isContainerType()
public boolean isExported()
public boolean replaceVariable(java.util.Properties variables)
variables
- The pool of variablespublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected boolean isAbsolute()
protected java.lang.String inspectString()
protected org.pfsw.file.FileUtil fileUtil()
protected org.pfsw.text.StringUtil str()