de.smartics.properties.spi.config.transfer
Enum TransferCode

Package class diagram package TransferCode
java.lang.Object
  extended by java.lang.Enum<TransferCode>
      extended by de.smartics.properties.spi.config.transfer.TransferCode
All Implemented Interfaces:
de.smartics.exceptions.code.NumberCode, de.smartics.exceptions.core.Code, ConfigurationsCode, PropertiesCode, Serializable, Comparable< TransferCode>

public enum TransferCode
     
     
extends Enum< TransferCode>
implements ConfigurationsCode

Codes dealing with property problems.


Enum Constant Summary
MALFORMED_URL_TO_DEFINITION_XML
          Cannot construct a valid URL to the definition.xml.
NO_CONFIG_KEY_FOR_PROPERTIES
          Cannot find a configuration key for a given properties file.
NO_DEFINITION_XML
          Cannot read definition.xml from properties provider.
 
Method Summary
 String getCode()
           
 String getComponentId()
           
 String getDisplayId()
           
 Integer getMajorNumber()
           
 Integer getMinorNumber()
           
 String toString()
          Returns the string representation of the object.
static TransferCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TransferCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_CONFIG_KEY_FOR_PROPERTIES

@MessageParamsDescriptor(value=NoConfigurationKeyForPropertiesMessageBean.class)
public static final TransferCode NO_CONFIG_KEY_FOR_PROPERTIES
Cannot find a configuration key for a given properties file.


NO_DEFINITION_XML

@MessageParamsDescriptor(value=DefinitionXmlMessageBean.class)
public static final TransferCode NO_DEFINITION_XML
Cannot read definition.xml from properties provider.


MALFORMED_URL_TO_DEFINITION_XML

@MessageParamsDescriptor(value=DefinitionXmlMessageBean.class)
public static final TransferCode MALFORMED_URL_TO_DEFINITION_XML
Cannot construct a valid URL to the definition.xml.

Method Detail

values

public static TransferCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TransferCode c : TransferCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TransferCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getCode

public String getCode()
Specified by:
getCode in interface de.smartics.exceptions.core.Code

getComponentId

public String getComponentId()
Specified by:
getComponentId in interface de.smartics.exceptions.core.Code

getDisplayId

public String getDisplayId()
Specified by:
getDisplayId in interface de.smartics.exceptions.core.Code

getMajorNumber

public Integer getMajorNumber()
Specified by:
getMajorNumber in interface de.smartics.exceptions.code.NumberCode

getMinorNumber

public Integer getMinorNumber()
Specified by:
getMinorNumber in interface de.smartics.exceptions.code.NumberCode

toString

public String toString()
Returns the string representation of the object.

Specified by:
toString in interface de.smartics.exceptions.core.Code
Overrides:
toString in class Enum<TransferCode>
Returns:
the string representation of the object.


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