|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Status
org.eclipse.jdt.internal.core.JavaModelStatus
public class JavaModelStatus
IJavaModelStatus
Field Summary | |
---|---|
static IJavaModelStatus |
VERIFIED_OK
Singleton OK object |
Fields inherited from class org.eclipse.core.runtime.Status |
---|
CANCEL_STATUS, OK_STATUS |
Fields inherited from interface org.eclipse.core.runtime.IStatus |
---|
CANCEL, ERROR, INFO, OK, WARNING |
Constructor Summary | |
---|---|
JavaModelStatus()
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(org.eclipse.core.runtime.CoreException coreException)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
IJavaElement element)
Constructs an Java model status with the given corresponding element. |
|
JavaModelStatus(int code,
IJavaElement[] elements)
Constructs an Java model status with the given corresponding elements. |
|
JavaModelStatus(int code,
IJavaElement element,
org.eclipse.core.runtime.IPath path)
Constructs an Java model status with the given corresponding element and path |
|
JavaModelStatus(int code,
IJavaElement element,
org.eclipse.core.runtime.IPath path,
java.lang.String string)
Constructs an Java model status with the given corresponding element, path and string |
|
JavaModelStatus(int code,
IJavaElement element,
java.lang.String string)
Constructs an Java model status with the given corresponding element and string |
|
JavaModelStatus(int severity,
int code,
IJavaElement element,
org.eclipse.core.runtime.IPath path,
java.lang.String msg)
Constructs an Java model status with the given corresponding element and path |
|
JavaModelStatus(int severity,
int code,
java.lang.String string)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
org.eclipse.core.runtime.IPath path)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
java.lang.String string)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
java.lang.Throwable throwable)
Constructs an Java model status with no corresponding elements. |
Method Summary | |
---|---|
org.eclipse.core.runtime.IStatus[] |
getChildren()
|
IJavaElement[] |
getElements()
Returns any Java elements associated with the failure (see specification of the status code), or an empty array if no elements are related to this particular status code. |
java.lang.String |
getMessage()
Returns the message that is relevant to the code of this status. |
org.eclipse.core.runtime.IPath |
getPath()
Returns the path associated with the failure (see specification of the status code), or null if the failure is not
one of DEVICE_PATH , INVALID_PATH ,
PATH_OUTSIDE_PROJECT , or RELATIVE_PATH . |
int |
getSeverity()
|
java.lang.String |
getString()
Deprecated. |
boolean |
isDoesNotExist()
Returns whether this status indicates that a Java model element does not exist. |
boolean |
isMultiStatus()
|
boolean |
isOK()
|
boolean |
matches(int mask)
|
static IJavaModelStatus |
newMultiStatus(IJavaModelStatus[] children)
Creates and returns a new IJavaModelStatus that is a
a multi-status status. |
java.lang.String |
toString()
Returns a printable representation of this exception for debugging purposes. |
Methods inherited from class org.eclipse.core.runtime.Status |
---|
getCode, getException, getPlugin |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IStatus |
---|
getCode, getException, getPlugin |
Field Detail |
---|
public static final IJavaModelStatus VERIFIED_OK
Constructor Detail |
---|
public JavaModelStatus()
public JavaModelStatus(int code)
public JavaModelStatus(int code, IJavaElement[] elements)
public JavaModelStatus(int code, java.lang.String string)
public JavaModelStatus(int severity, int code, java.lang.String string)
public JavaModelStatus(int code, java.lang.Throwable throwable)
public JavaModelStatus(int code, org.eclipse.core.runtime.IPath path)
public JavaModelStatus(int code, IJavaElement element)
public JavaModelStatus(int code, IJavaElement element, java.lang.String string)
public JavaModelStatus(int code, IJavaElement element, org.eclipse.core.runtime.IPath path)
public JavaModelStatus(int code, IJavaElement element, org.eclipse.core.runtime.IPath path, java.lang.String string)
public JavaModelStatus(int severity, int code, IJavaElement element, org.eclipse.core.runtime.IPath path, java.lang.String msg)
public JavaModelStatus(org.eclipse.core.runtime.CoreException coreException)
Method Detail |
---|
public org.eclipse.core.runtime.IStatus[] getChildren()
getChildren
in interface org.eclipse.core.runtime.IStatus
getChildren
in class org.eclipse.core.runtime.Status
IStatus
public IJavaElement[] getElements()
IJavaModelStatus
getElements
in interface IJavaModelStatus
IJavaModelStatus
public java.lang.String getMessage()
getMessage
in interface org.eclipse.core.runtime.IStatus
getMessage
in class org.eclipse.core.runtime.Status
public org.eclipse.core.runtime.IPath getPath()
IJavaModelStatus
null
if the failure is not
one of DEVICE_PATH
, INVALID_PATH
,
PATH_OUTSIDE_PROJECT
, or RELATIVE_PATH
.
getPath
in interface IResourceStatus
getPath
in interface IJavaModelStatus
null
if noneIJavaModelStatus.getPath()
public int getSeverity()
getSeverity
in interface org.eclipse.core.runtime.IStatus
getSeverity
in class org.eclipse.core.runtime.Status
IStatus.getSeverity()
public java.lang.String getString()
IJavaModelStatus
null
if no string is related to this
particular status code.
getString
in interface IJavaModelStatus
null
if noneIJavaModelStatus.getString()
public boolean isDoesNotExist()
IJavaModelStatus
getCode() == IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST
.
isDoesNotExist
in interface IJavaModelStatus
true
if the status code indicates that a Java model
element does not existIJavaModelStatus.isDoesNotExist()
public boolean isMultiStatus()
isMultiStatus
in interface org.eclipse.core.runtime.IStatus
isMultiStatus
in class org.eclipse.core.runtime.Status
IStatus.isMultiStatus()
public boolean isOK()
isOK
in interface org.eclipse.core.runtime.IStatus
isOK
in class org.eclipse.core.runtime.Status
IStatus.isOK()
public boolean matches(int mask)
matches
in interface org.eclipse.core.runtime.IStatus
matches
in class org.eclipse.core.runtime.Status
IStatus.matches(int)
public static IJavaModelStatus newMultiStatus(IJavaModelStatus[] children)
IJavaModelStatus
that is a
a multi-status status.
IStatus.isMultiStatus()
public java.lang.String toString()
toString
in class org.eclipse.core.runtime.Status
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |