org.jomc.model
Class ModelException.Detail

Package class diagram package ModelException.Detail
java.lang.Object
  extended by org.jomc.model.ModelException.Detail
All Implemented Interfaces:
Serializable
Enclosing class:
ModelException

public static class ModelException.Detail
extends Object
implements Serializable

ModelException detail.

See Also:
Serialized Form

Field Summary
private  JAXBElement<? extends ModelObject> element
          The element this detail is associated with.
private  String identifier
          The detail identifier.
private  Level level
          The detail level.
private  String message
          The detail message.
private static long serialVersionUID
          Serial version UID for compatibility with 1.0.x object streams.
 
Constructor Summary
ModelException.Detail(String identifier, Level level, String message)
          Creates a new Detail taking a detail level and message.
 
Method Summary
 JAXBElement<? extends ModelObject> getElement()
          Gets the element of this detail.
 String getIdentifier()
          Gets the identifier of this detail.
 Level getLevel()
          Gets the level of this detail.
 String getMessage()
          Gets the message of this detail.
 void setElement(JAXBElement<? extends ModelObject> value)
          Sets the element of this detail.
 String toString()
          Creates and returns a string representation of the object.
private  String toStringInternal()
          Creates and returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version UID for compatibility with 1.0.x object streams.

See Also:
Constant Field Values

identifier

private String identifier
The detail identifier.


level

private Level level
The detail level.


message

private String message
The detail message.


element

private JAXBElement<? extends ModelObject> element
The element this detail is associated with.

Constructor Detail

ModelException.Detail

public ModelException.Detail(String identifier,
                             Level level,
                             String message)
Creates a new Detail taking a detail level and message.

Parameters:
identifier - The detail identifier.
level - The detail level.
message - The detail message.
Method Detail

getIdentifier

public String getIdentifier()
Gets the identifier of this detail.

Returns:
The identifier of this detail or null.

getLevel

public Level getLevel()
Gets the level of this detail.

Returns:
The level of this detail or null.

getMessage

public String getMessage()
Gets the message of this detail.

Returns:
The message of this detail or null.

getElement

public JAXBElement<? extends ModelObject> getElement()
Gets the element of this detail.

Returns:
The element of this detail or null.

setElement

public void setElement(JAXBElement<? extends ModelObject> value)
Sets the element of this detail.

Parameters:
value - The new element of this detail or null.

toStringInternal

private String toStringInternal()
Creates and returns a string representation of the object.

Returns:
A string representation of the object.

toString

public String toString()
Creates and returns a string representation of the object.

Overrides:
toString in class Object
Returns:
A string representation of the object.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.