de.smartics.properties.api.core.domain
Enum PropertyCode

Package class diagram package PropertyCode
java.lang.Object
  extended by java.lang.Enum<PropertyCode>
      extended by de.smartics.properties.api.core.domain.PropertyCode
All Implemented Interfaces:
de.smartics.exceptions.code.NumberCode, de.smartics.exceptions.core.Code, PropertiesCode, Serializable, Comparable< PropertyCode>

public enum PropertyCode
     
     
extends Enum< PropertyCode>
implements PropertiesCode

Codes dealing with property problems.


Enum Constant Summary
CONVERSION_PROBLEM
          The property is not valid.
DUPLICATE_DECLARATION
          Duplicate property declaration.
DUPLICATE_DECLARATIONS
          Signals more than one duplicate property declarations.
INVALID_VALUE
          The property is not valid.
READ_ONLY
          A read-only property was requested to be updated.
RESOLVE_PROBLEM
          Placeholders in property value cannot be resolved.
SECURITY
          Securing a property value failed.
 
Method Summary
 String getCode()
           
 String getComponentId()
           
 String getDisplayId()
           
 Integer getMajorNumber()
           
 Integer getMinorNumber()
           
 String toString()
          Returns the string representation of the object.
static PropertyCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PropertyCode[] 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

RESOLVE_PROBLEM

@MessageParamsDescriptor(value=PropertyExpressionMessageBean.class)
public static final PropertyCode RESOLVE_PROBLEM
Placeholders in property value cannot be resolved.


CONVERSION_PROBLEM

@MessageParamsDescriptor(value=PropertyValueMessageBean.class)
public static final PropertyCode CONVERSION_PROBLEM
The property is not valid.


INVALID_VALUE

@MessageParamsDescriptor(value=PropertyValidationMessageBean.class)
public static final PropertyCode INVALID_VALUE
The property is not valid.


READ_ONLY

@MessageParamsDescriptor(value=PropertyValidationMessageBean.class)
public static final PropertyCode READ_ONLY
A read-only property was requested to be updated.


SECURITY

@MessageParamsDescriptor(value=PropertyDescriptorMessageBean.class)
public static final PropertyCode SECURITY
Securing a property value failed.


DUPLICATE_DECLARATION

@MessageParamsDescriptor(value=PropertyDescriptorClashingMessageBean.class)
public static final PropertyCode DUPLICATE_DECLARATION
Duplicate property declaration.


DUPLICATE_DECLARATIONS

@MessageParamsDescriptor(value=DuplicatePropertyDeclarationsException.class)
public static final PropertyCode DUPLICATE_DECLARATIONS
Signals more than one duplicate property declarations.

Method Detail

values

public static PropertyCode[] 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 (PropertyCode c : PropertyCode.values())
    System.out.println(c);

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

valueOf

public static PropertyCode 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<PropertyCode>
Returns:
the string representation of the object.


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