Package com.iizigo.java.classpath
Enum IzClasspathContainer.Type
- java.lang.Object
- java.lang.Enum<IzClasspathContainer.Type>
- com.iizigo.java.classpath.IzClasspathContainer.Type
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IzClasspathContainer.Type>
- Enclosing class:
- IzClasspathContainer
public static enum IzClasspathContainer.Type extends java.lang.Enum<IzClasspathContainer.Type>
The type of container.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IzClasspathContainer.Type
fromClasspathEntries(org.eclipse.jdt.core.IClasspathEntry[] entries)
Gets the Type of iizi Library from classpath entries.static IzClasspathContainer.Type
fromClasspathEntry(org.eclipse.jdt.core.IClasspathEntry entry)
Gets the Type of iizi Library from a classpath entry.static IzClasspathContainer.Type
fromPath(org.eclipse.core.runtime.IPath path)
Creates a Type from a Path.static IzClasspathContainer.Type
fromProject(org.eclipse.core.resources.IProject project)
Gets the Type of iizi Library from a project.static IzClasspathContainer.Type
fromProject(org.eclipse.jdt.core.IJavaProject project)
Gets the Type of iizi Library from a Java project.java.lang.String
getDescription()
Gets the description.org.eclipse.core.runtime.IPath
getPath()
Gets the path for the classpath.static IzClasspathContainer.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IzClasspathContainer.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
RUNTIME
public static final IzClasspathContainer.Type RUNTIME
Core and Plug-in libraries.
SERVER
public static final IzClasspathContainer.Type SERVER
Server libraries.
PLUGIN
public static final IzClasspathContainer.Type PLUGIN
Plug-in Development libraries.
Method Detail
values
public static IzClasspathContainer.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IzClasspathContainer.Type c : IzClasspathContainer.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static IzClasspathContainer.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
getPath
public org.eclipse.core.runtime.IPath getPath()
Gets the path for the classpath.
getDescription
public java.lang.String getDescription()
Gets the description.
fromPath
public static IzClasspathContainer.Type fromPath(org.eclipse.core.runtime.IPath path)
Creates a Type from a Path.- Parameters:
path
- The path must consist of 3 segments as "BASE_PATH/type-segment/version".- Returns:
- The type for the path, or null for no match.
fromProject
public static IzClasspathContainer.Type fromProject(org.eclipse.core.resources.IProject project)
Gets the Type of iizi Library from a project.- Parameters:
project
- The project.- Returns:
- The first encountered type (if multiple are set), or null for no match.
fromProject
public static IzClasspathContainer.Type fromProject(org.eclipse.jdt.core.IJavaProject project)
Gets the Type of iizi Library from a Java project.- Parameters:
project
- The Java project.- Returns:
- The first encountered type (if multiple are set), or null for no match.
fromClasspathEntries
public static IzClasspathContainer.Type fromClasspathEntries(org.eclipse.jdt.core.IClasspathEntry[] entries)
Gets the Type of iizi Library from classpath entries.- Parameters:
entries
- The classpath entries.- Returns:
- The first encountered type (if multiple are set), or null for no match.
fromClasspathEntry
public static IzClasspathContainer.Type fromClasspathEntry(org.eclipse.jdt.core.IClasspathEntry entry)
Gets the Type of iizi Library from a classpath entry.- Parameters:
entry
- The classpath entry.- Returns:
- The type, or null for no match.