|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.lite.validation.ViolationDescriptor
public class ViolationDescriptor
Represents a description of a validation problem.
Constructor Summary | |
---|---|
ViolationDescriptor(Severity severity,
String message,
org.eclipse.emf.common.util.URI uri,
Object data)
Creates a new instance of a violation description with the specified attributes. |
Method Summary | |
---|---|
static ViolationDescriptor |
create(org.eclipse.gmf.runtime.notation.View view,
org.eclipse.emf.common.util.Diagnostic diagnostic)
Returns an instance of ViolationDescriptor from the given diagnostic or null if diagnostic cannot be
represented as a violation descriptor. |
static ViolationDescriptor |
create(org.eclipse.gmf.runtime.notation.View view,
org.eclipse.core.runtime.IStatus validationStatus)
Returns an instance of ViolationDescriptor from the given status or null if the status cannot be
represented as a violation descriptor. |
String |
getMessage()
Returns the message associated with this violation |
Object |
getReferent()
Returns the representation this descriptor was created from. |
Severity |
getSeverity()
Returns the severity of this violation |
org.eclipse.emf.common.util.URI |
getUri()
Returns the URI of the element associated with this violation |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViolationDescriptor(Severity severity, String message, org.eclipse.emf.common.util.URI uri, Object data)
severity
- message
- uri
- Method Detail |
---|
public String getMessage()
public Severity getSeverity()
public org.eclipse.emf.common.util.URI getUri()
public Object getReferent()
public int hashCode()
hashCode
in class Object
public static ViolationDescriptor create(org.eclipse.gmf.runtime.notation.View view, org.eclipse.core.runtime.IStatus validationStatus)
ViolationDescriptor
from the given status or null
if the status cannot be
represented as a violation descriptor. Children of the status are not taken into account.
public static ViolationDescriptor create(org.eclipse.gmf.runtime.notation.View view, org.eclipse.emf.common.util.Diagnostic diagnostic)
ViolationDescriptor
from the given diagnostic or null
if diagnostic cannot be
represented as a violation descriptor. Children of the diagnostic are not taken into account.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |