de.interactive_instruments.ShapeChange.Model.Generic
Enum GenericModel.PropertyCopyDuplicatBehaviorIndicator

java.lang.Object
  extended by java.lang.Enum<GenericModel.PropertyCopyDuplicatBehaviorIndicator>
      extended by de.interactive_instruments.ShapeChange.Model.Generic.GenericModel.PropertyCopyDuplicatBehaviorIndicator
All Implemented Interfaces:
Serializable, Comparable<GenericModel.PropertyCopyDuplicatBehaviorIndicator>
Enclosing class:
GenericModel

public static enum GenericModel.PropertyCopyDuplicatBehaviorIndicator
extends Enum<GenericModel.PropertyCopyDuplicatBehaviorIndicator>

Identifies different behaviors for situations in which a property is intended to be copied to a class but another property with the same name already exists in that class.

Author:
Johannes Echterhoff

Enum Constant Summary
ADD
          Indicates that the copy shall be added to the content model, resulting in two properties with the same name.
IGNORE
          Indicates that the copy shall be ignored.
IGNORE_UNRESTRICT
          Indicates that the copy shall be ignored.
OVERWRITE
          Indicates that the copy shall overwrite the existing property with the same name.
 
Method Summary
static GenericModel.PropertyCopyDuplicatBehaviorIndicator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GenericModel.PropertyCopyDuplicatBehaviorIndicator[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IGNORE

public static final GenericModel.PropertyCopyDuplicatBehaviorIndicator IGNORE
Indicates that the copy shall be ignored. The existing property with the same name is kept. NOTE: this ignores the isRestriction setting in the existing property.


IGNORE_UNRESTRICT

public static final GenericModel.PropertyCopyDuplicatBehaviorIndicator IGNORE_UNRESTRICT
Indicates that the copy shall be ignored. The existing property with the same name is kept. NOTE: In case that the existing property is a restriction, it is set to not being a restriction.


ADD

public static final GenericModel.PropertyCopyDuplicatBehaviorIndicator ADD
Indicates that the copy shall be added to the content model, resulting in two properties with the same name.


OVERWRITE

public static final GenericModel.PropertyCopyDuplicatBehaviorIndicator OVERWRITE
Indicates that the copy shall overwrite the existing property with the same name.

Method Detail

values

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

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

valueOf

public static GenericModel.PropertyCopyDuplicatBehaviorIndicator 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


Copyright © 2015. All rights reserved.