org.netbeans.modules.java.api.common.classpath
Class ClassPathSupport.Item
java.lang.Object
org.netbeans.modules.java.api.common.classpath.ClassPathSupport.Item
- Enclosing class:
- ClassPathSupport
public static class ClassPathSupport.Item
- extends Object
Item of the classpath.
|
Method Summary |
boolean |
canEdit()
|
static ClassPathSupport.Item |
create(AntArtifact artifact,
URI artifactURI,
String property)
|
static ClassPathSupport.Item |
create(Library library,
String property)
|
static ClassPathSupport.Item |
create(String property)
|
static ClassPathSupport.Item |
create(String filePath,
File base,
String property,
String variableBasedProperty)
|
static ClassPathSupport.Item |
createBroken(int type,
String property)
|
static ClassPathSupport.Item |
createBroken(String filePath,
File base,
String property)
|
boolean |
equals(Object itemObject)
|
String |
getAdditionalProperty(String key)
|
AntArtifact |
getArtifact()
|
URI |
getArtifactURI()
|
String |
getFilePath()
|
String |
getJavadocFilePath()
only applicable to TYPE_JAR |
Library |
getLibrary()
|
String |
getReference()
|
File |
getResolvedFile()
|
String |
getSourceFilePath()
only applicable to TYPE_JAR |
int |
getType()
|
String |
getVariableBasedProperty()
|
int |
hashCode()
|
void |
initSourceAndJavadoc(AntProjectHelper helper)
|
boolean |
isBroken()
|
void |
reassignLibraryManager(LibraryManager newManager)
|
void |
removeSourceAndJavadoc(UpdateHelper updateHelper)
|
void |
saveSourceAndJavadoc(ReferenceHelper referenceHelper,
UpdateHelper updateHelper)
|
void |
setAdditionalProperty(String key,
String value)
|
void |
setJavadocFilePath(String javadoc)
only applicable to TYPE_JAR |
void |
setReference(String property)
|
void |
setSourceFilePath(String source)
only applicable to TYPE_JAR |
String |
toString()
|
void |
updateJarReference(AntProjectHelper helper)
|
TYPE_JAR
public static final int TYPE_JAR
- See Also:
- Constant Field Values
TYPE_LIBRARY
public static final int TYPE_LIBRARY
- See Also:
- Constant Field Values
TYPE_ARTIFACT
public static final int TYPE_ARTIFACT
- See Also:
- Constant Field Values
TYPE_CLASSPATH
public static final int TYPE_CLASSPATH
- See Also:
- Constant Field Values
getAdditionalProperty
public String getAdditionalProperty(String key)
setAdditionalProperty
public void setAdditionalProperty(String key,
String value)
create
public static ClassPathSupport.Item create(Library library,
String property)
create
public static ClassPathSupport.Item create(AntArtifact artifact,
URI artifactURI,
String property)
create
public static ClassPathSupport.Item create(String filePath,
File base,
String property,
String variableBasedProperty)
create
public static ClassPathSupport.Item create(String property)
createBroken
public static ClassPathSupport.Item createBroken(int type,
String property)
createBroken
public static ClassPathSupport.Item createBroken(String filePath,
File base,
String property)
getType
public int getType()
getLibrary
public Library getLibrary()
getResolvedFile
public File getResolvedFile()
getFilePath
public String getFilePath()
getVariableBasedProperty
public String getVariableBasedProperty()
getArtifact
public AntArtifact getArtifact()
getArtifactURI
public URI getArtifactURI()
reassignLibraryManager
public void reassignLibraryManager(LibraryManager newManager)
getReference
public String getReference()
setReference
public void setReference(String property)
canEdit
public boolean canEdit()
getSourceFilePath
public String getSourceFilePath()
- only applicable to TYPE_JAR
- Returns:
getJavadocFilePath
public String getJavadocFilePath()
- only applicable to TYPE_JAR
- Returns:
setJavadocFilePath
public void setJavadocFilePath(String javadoc)
- only applicable to TYPE_JAR
setSourceFilePath
public void setSourceFilePath(String source)
- only applicable to TYPE_JAR
isBroken
public boolean isBroken()
initSourceAndJavadoc
public void initSourceAndJavadoc(AntProjectHelper helper)
saveSourceAndJavadoc
public void saveSourceAndJavadoc(ReferenceHelper referenceHelper,
UpdateHelper updateHelper)
removeSourceAndJavadoc
public void removeSourceAndJavadoc(UpdateHelper updateHelper)
updateJarReference
public void updateJarReference(AntProjectHelper helper)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object itemObject)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object