public interface IClasspathEntryDescriptor
Modifier and Type | Method and Description |
---|---|
void |
addAccessRule(org.eclipse.jdt.core.IAccessRule rule) |
void |
addExclusionPattern(org.eclipse.core.runtime.IPath pattern) |
void |
addInclusionPattern(org.eclipse.core.runtime.IPath pattern) |
boolean |
combineAccessRules() |
List<org.eclipse.jdt.core.IAccessRule> |
getAccessRules() |
String |
getArtifactId()
Short for getArtifactKey().getArtifactId(), with appropriate null check
|
ArtifactKey |
getArtifactKey() |
Map<String,String> |
getClasspathAttributes() |
int |
getEntryKind() |
org.eclipse.core.runtime.IPath[] |
getExclusionPatterns() |
String |
getGroupId()
Short for getArtifactKey().getGroupId(), with appropriate null check
|
org.eclipse.core.runtime.IPath[] |
getInclusionPatterns() |
String |
getJavadocUrl() |
org.eclipse.core.runtime.IPath |
getOutputLocation() |
org.eclipse.core.runtime.IPath |
getPath() |
String |
getScope() |
org.eclipse.core.runtime.IPath |
getSourceAttachmentPath() |
org.eclipse.core.runtime.IPath |
getSourceAttachmentRootPath() |
boolean |
isExported() |
boolean |
isOptionalDependency() |
boolean |
isPomDerived()
Returns
true if this classpath entry was derived from pom.xml and false otherwise. |
void |
setArtifactKey(ArtifactKey artifactKey) |
void |
setClasspathAttribute(String name,
String value) |
void |
setCombineAccessRules(boolean combineAccessRules) |
void |
setEntryKind(int entryKind) |
void |
setExclusionPatterns(org.eclipse.core.runtime.IPath[] exclusionPatterns) |
void |
setExported(boolean exported) |
void |
setInclusionPatterns(org.eclipse.core.runtime.IPath[] inclusionPatterns) |
void |
setJavadocUrl(String javaDocUrl) |
void |
setOptionalDependency(boolean optional) |
void |
setOutputLocation(org.eclipse.core.runtime.IPath outputLocation) |
void |
setPath(org.eclipse.core.runtime.IPath path) |
void |
setPomDerived(boolean derived)
Marks classpath entry as derived from pom.xml (
true ) or not (false ). |
void |
setScope(String scope) |
void |
setSourceAttachment(org.eclipse.core.runtime.IPath srcPath,
org.eclipse.core.runtime.IPath srcRoot) |
org.eclipse.jdt.core.IClasspathEntry |
toClasspathEntry()
Create IClasspathEntry with information collected in this descriptor
|
org.eclipse.core.runtime.IPath getPath()
void setPath(org.eclipse.core.runtime.IPath path)
int getEntryKind()
void setEntryKind(int entryKind)
void setSourceAttachment(org.eclipse.core.runtime.IPath srcPath, org.eclipse.core.runtime.IPath srcRoot)
void setJavadocUrl(String javaDocUrl)
org.eclipse.core.runtime.IPath getSourceAttachmentPath()
org.eclipse.core.runtime.IPath getSourceAttachmentRootPath()
String getJavadocUrl()
void setOutputLocation(org.eclipse.core.runtime.IPath outputLocation)
void addInclusionPattern(org.eclipse.core.runtime.IPath pattern)
void setInclusionPatterns(org.eclipse.core.runtime.IPath[] inclusionPatterns)
org.eclipse.core.runtime.IPath[] getInclusionPatterns()
void addExclusionPattern(org.eclipse.core.runtime.IPath pattern)
void setExclusionPatterns(org.eclipse.core.runtime.IPath[] exclusionPatterns)
org.eclipse.core.runtime.IPath[] getExclusionPatterns()
void setExported(boolean exported)
boolean isExported()
org.eclipse.core.runtime.IPath getOutputLocation()
void addAccessRule(org.eclipse.jdt.core.IAccessRule rule)
List<org.eclipse.jdt.core.IAccessRule> getAccessRules()
void setCombineAccessRules(boolean combineAccessRules)
boolean combineAccessRules()
String getGroupId()
String getArtifactId()
ArtifactKey getArtifactKey()
void setArtifactKey(ArtifactKey artifactKey)
boolean isOptionalDependency()
void setOptionalDependency(boolean optional)
String getScope()
void setScope(String scope)
org.eclipse.jdt.core.IClasspathEntry toClasspathEntry()
boolean isPomDerived()
true
if this classpath entry was derived from pom.xml and false
otherwise. setPomDerived(boolean)
void setPomDerived(boolean derived)
true
) or not (false
).
Not-derived (or custom) entries are preserved during project configuration update, while derived entries are automatically removed whenever their corresponding pom.xml configuration is changed or removed.
All new classpath entries are marked as derived by default, however value of this flag is preserved when entry
descriptor is read from .classpath file. The intend is to make sure that custom classpath entries are not removed
automatically. Clients of IClasspathDescriptor API who prefer to manage cleanup of stale class classpath entries
explicitly may set derived flag to false
.
Although not enforced, derived flag only applies to project 'raw' classpath entries. The flag is silently ignored for classpath container entries.
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.