de.smartics.properties.api.core.domain
Class ConfigMessageBean

Package class diagram package ConfigMessageBean
java.lang.Object
  extended by de.smartics.exceptions.i18n.AbstractMessageBean
      extended by de.smartics.properties.api.core.app.AbstractBaseMessageBean
          extended by de.smartics.properties.api.core.domain.ConfigMessageBean
All Implemented Interfaces:
de.smartics.exceptions.i18n.MessageBean, Serializable

public final class ConfigMessageBean
     
     
extends AbstractBaseMessageBean

Provides information about problems encountered when properties definitions cannot be parsed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
code, localizedInfo
 
Method Summary
static ConfigMessageBean duplicate(String systemId, String currentDefaultKey, String duplicateDefaultKey)
          Creates a message bean signaling a duplicate key problem.
static ConfigMessageBean namespace(String systemId, String expectedNamespace, String actualNamespace)
          Creates a message bean signaling a namespace problem.
static ConfigMessageBean systemId(ConfigCode code, String systemId)
          Creates a message bean without cause and no namespace information.
static ConfigMessageBean systemId(ConfigCode code, Throwable cause, String systemId)
          Creates a message bean without namespace information.
 
Methods inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
getCause, getCauseTrail, getCauseTrail, getClassLoader, getCode, getLocalizedInfo, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedTextMessage, getLocalizedTextMessage, getLocalizedTextMessage, getMessage, getMessage, getMessage, getMessages, getMessages, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

systemId

public static ConfigMessageBean systemId(ConfigCode code,
                                         String systemId)
Creates a message bean without cause and no namespace information.

Parameters:
code - the error or exception code of the exception.
systemId - the resource that cannot be read.
Returns:
a message bean without namespace information.

systemId

public static ConfigMessageBean systemId(ConfigCode code,
                                         Throwable cause,
                                         String systemId)
Creates a message bean without namespace information.

Parameters:
code - the error or exception code of the exception.
cause - the cause (which is saved for later retrieval by the AbstractMessageBean.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
systemId - the resource that cannot be read.
Returns:
a message bean without namespace information.

duplicate

public static ConfigMessageBean duplicate(String systemId,
                                          String currentDefaultKey,
                                          String duplicateDefaultKey)
Creates a message bean signaling a duplicate key problem.

Parameters:
systemId - the resource that cannot be read.
currentDefaultKey - the key that has already been recognized as default.
duplicateDefaultKey - the second key that has been recognized as default.
Returns:
a message bean signaling a duplicate key problem.

namespace

public static ConfigMessageBean namespace(String systemId,
                                          String expectedNamespace,
                                          String actualNamespace)
Creates a message bean signaling a namespace problem.

Parameters:
systemId - the resource that cannot be read.
expectedNamespace - the expected namespace.
actualNamespace - the namespace that has actually been encountered.
Returns:
a message bean signaling a namespace problem.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.