public class ClasspathPartDefinition extends java.lang.Object implements IStringRepresentation
Example: "/test/lib/*.jar"
Modifier and Type | Field and Description |
---|---|
static ClasspathPartDefinition[] |
EMPTY_ARRAY |
Constructor and Description |
---|
ClasspathPartDefinition(java.lang.String definition)
Initialize the new instance with a definition.
|
ClasspathPartDefinition(java.lang.String definition,
ClasspathPartDefinitionType definitionType)
Initialize the new instance with a definition and an explicit type.
|
ClasspathPartDefinition(java.lang.String definition,
java.lang.String supplementary,
ClasspathPartDefinitionType definitionType)
Initialize the new instance with a definition, optional supplementary data and an explicit type.
|
Modifier and Type | Method and Description |
---|---|
ClasspathPartDefinition |
copy()
Returns a copy with the same definition content
|
boolean |
equals(java.lang.Object object) |
protected org.pfsw.file.FileUtil |
fileUtil() |
java.lang.String |
getDefinition()
Returns the definition as string
|
java.lang.String |
getStringRepresentation() |
java.lang.String |
getSupplementaryData() |
ClasspathPartDefinitionType |
getType() |
int |
hashCode() |
boolean |
hasSupplementaryData() |
boolean |
isEclipseProjectClasspath()
Returns true if this definition refers to the classpath file of an
eclipse project.
|
boolean |
isEnterpriseApplicationArchive() |
boolean |
isPattern()
Returns true, if this definition is a pattern for more than one file.
|
boolean |
isWebApplicationArchive() |
void |
setDefinition(java.lang.String newValue)
Sets the definition as string
|
void |
setSupplementaryData(java.lang.String newValue) |
void |
setType(ClasspathPartDefinitionType newValue) |
java.lang.String |
toString() |
public static final ClasspathPartDefinition[] EMPTY_ARRAY
public ClasspathPartDefinition(java.lang.String definition)
public ClasspathPartDefinition(java.lang.String definition, ClasspathPartDefinitionType definitionType)
public ClasspathPartDefinition(java.lang.String definition, java.lang.String supplementary, ClasspathPartDefinitionType definitionType)
public java.lang.String getDefinition()
public ClasspathPartDefinitionType getType()
public void setType(ClasspathPartDefinitionType newValue)
public java.lang.String getSupplementaryData()
public void setSupplementaryData(java.lang.String newValue)
public boolean hasSupplementaryData()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getStringRepresentation()
getStringRepresentation
in interface IStringRepresentation
public boolean isPattern()
public boolean isEclipseProjectClasspath()
public boolean isWebApplicationArchive()
public boolean isEnterpriseApplicationArchive()
public ClasspathPartDefinition copy()
public void setDefinition(java.lang.String newValue)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected org.pfsw.file.FileUtil fileUtil()