|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.validation.MessageSeveritySetting
public class MessageSeveritySetting
Associate a message severity with a message category.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Nested Class Summary | |
---|---|
static class |
MessageSeveritySetting.Severity
|
Constructor Summary | |
---|---|
MessageSeveritySetting(java.lang.String id,
java.lang.String label,
MessageSeveritySetting.Severity defaultSeverity)
Create an association between a label and a message severity. |
Method Summary | |
---|---|
MessageSeveritySetting |
copy()
Answer a copy of this object. |
MessageSeveritySetting.Severity |
getCurrent()
Answer the current severity for the message. |
MessageSeveritySetting.Severity |
getDefault()
Answer the default severity as defined by the validator owner. |
java.lang.String |
getId()
The id that the validator owner assigned to the message. |
java.lang.String |
getLabel()
|
int |
hashCode()
|
boolean |
setCurrent(MessageSeveritySetting.Severity severity)
Set the current message severity. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MessageSeveritySetting(java.lang.String id, java.lang.String label, MessageSeveritySetting.Severity defaultSeverity)
id
- An id that is used to identify this particular setting. This must be
unique within the scope of this particular validator.label
- An end user string, that can describe either an individual message
or a message category.defaultSeverity
- The default severity for this label. If the end user doesn't change
anything this is what the severity will be.Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getLabel()
public MessageSeveritySetting.Severity getDefault()
public MessageSeveritySetting.Severity getCurrent()
public java.lang.String getId()
public boolean setCurrent(MessageSeveritySetting.Severity severity)
severity
-
public java.lang.String toString()
toString
in class java.lang.Object
public MessageSeveritySetting copy()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |