org.netbeans.modules.java.api.common/0 1.37

org.netbeans.modules.java.api.common.classpath
Class ClassPathSupport.Item

java.lang.Object
  extended by org.netbeans.modules.java.api.common.classpath.ClassPathSupport.Item
Enclosing class:
ClassPathSupport

public static class ClassPathSupport.Item
extends Object

Item of the classpath.


Field Summary
static int TYPE_ARTIFACT
           
static int TYPE_CLASSPATH
           
static int TYPE_JAR
           
static int TYPE_LIBRARY
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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

org.netbeans.modules.java.api.common/0 1.37

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.