Package com.priint.pubserver.config
Enum Class PluginConfigDependencyRestriction
java.lang.Object
java.lang.Enum<PluginConfigDependencyRestriction>
com.priint.pubserver.config.PluginConfigDependencyRestriction
- All Implemented Interfaces:
Serializable,Comparable<PluginConfigDependencyRestriction>,Constable
Java class for PluginConfigDependencyRestriction.
<simpleType name="PluginConfigDependencyRestriction">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNDEFINED"/>
<enumeration value="OPTIONAL"/>
<enumeration value="PARENT"/>
<enumeration value="CONFIRM"/>
<enumeration value="CHILD"/>
<enumeration value="SIBLING"/>
<enumeration value="TWIN"/>
<enumeration value="REQUIRES"/>
<enumeration value="REQUIRED_BY"/>
</restriction>
</simpleType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJust like TWIN, dependent files must be copied, moved or deleted alongside the actual file.When copying, moving or deleting configuration files, the application (or user) can choose whether to cancel the operation or to copy, move or delete dependent files too.When copying, moving or deleting configuration files, dependent files will NOT be copied, moved or deletedWhen copying, moving or deleting configuration files, dependent files WILL be copied, moved or deletedThe source configuration is required by the target configuration.The source configuration requires the existence of the target configuration.Application knows of a relation between two configurations but will not enforce any operation when copying, moving or deleting configuration files.Dependent files must be copied, moved or deleted alongside the actual file.Dependency restrictions must never be UNDEFINED, this is just to have a (non null) default value when instantiating using the default constructor -
Method Summary
Modifier and TypeMethodDescriptionGet enum value by string.
May throw exception if enum value is unknown.booleanThe target dependency cannot be deleted.booleanThe source of this dependency is not allowed to be deleted until the target is also deleted.booleanIf the source of this dependency is deleted the dependency on the target is also deleted.booleanIf the source of this dependency is deleted the target is also deleted.value()Returns the enum constant of this class with the specified name.static PluginConfigDependencyRestriction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Dependency restrictions must never be UNDEFINED, this is just to have a (non null) default value when instantiating using the default constructor -
REQUIRES
The source configuration requires the existence of the target configuration.
The source can only be imported if the target is also imported or already existing.
If the source is exported the target will also be exported
The target configuration must include a REQUIRED_BY restriction to the source.When copying or deleting configuration files, dependency references will also be copied or deleted.
-
REQUIRED_BY
The source configuration is required by the target configuration.
The target configuration must include a REQUIRES restriction to the source. -
OPTIONAL
When copying, moving or deleting configuration files, dependent files will NOT be copied, moved or deleted -
PARENT
When copying, moving or deleting configuration files, dependent files WILL be copied, moved or deleted -
CONFIRM
When copying, moving or deleting configuration files, the application (or user) can choose whether to cancel the operation or to copy, move or delete dependent files too. -
CHILD
Just like TWIN, dependent files must be copied, moved or deleted alongside the actual file. Unlike MANDATORY, CHILD indicates, that the dependent file cannot exist without the actual file. Though applications are not required to handle CHILD dependencies any other way than TWIN, CHILD should be used for declarative for "part-of" relationships. -
SIBLING
Application knows of a relation between two configurations but will not enforce any operation when copying, moving or deleting configuration files. -
TWIN
Dependent files must be copied, moved or deleted alongside the actual file.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
value
- Returns:
- the name of the enum value
-
fromValue
Get enum value by string.
May throw exception if enum value is unknown.- Parameters:
value-- Returns:
- value
-
mustDeleteTarget
public boolean mustDeleteTarget()If the source of this dependency is deleted the target is also deleted.- Returns:
- true if mustDeleteTarget
-
mustDeleteDependency
public boolean mustDeleteDependency()If the source of this dependency is deleted the dependency on the target is also deleted.- Returns:
- true if mustDeleteDependency
-
isDeleteForbidden
public boolean isDeleteForbidden()The source of this dependency is not allowed to be deleted until the target is also deleted.- Returns:
- true if isDeleteForbidden
-
isDeleteDependencyForbidden
public boolean isDeleteDependencyForbidden()The target dependency cannot be deleted. The target must be modified directly to remove this dependency (as source dependency).- Returns:
- true if isDeleteDependencyForbidden
-
getBackwardRestriction
-