public class ConstraintSettingImpl extends java.lang.Object implements ConstraintSetting
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ref |
protected SimpleComponent |
refComponent |
protected DataConstraint |
value |
Constructor and Description |
---|
ConstraintSettingImpl() |
ConstraintSettingImpl(java.lang.String ref,
DataConstraint value) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRef()
Gets the ref property
|
SimpleComponent |
getReferencedObject() |
DataConstraint |
getValue()
Gets the constraint value
|
void |
setRef(java.lang.String ref)
Sets the ref property
|
void |
setReferencedObject(SimpleComponent refObj)
Sets the object being configured by this setting
|
void |
setValueAsAllowedTimes(AllowedTimes constraint)
Adds a new setConstraintAsAllowedTimes property
|
void |
setValueAsAllowedTokens(AllowedTokens constraint)
Adds a new setConstraintAsAllowedTokens property
|
void |
setValueAsAllowedValues(AllowedValues constraint)
Adds a new setConstraintAsAllowedValues property
|
protected java.lang.String ref
protected DataConstraint value
protected transient SimpleComponent refComponent
public ConstraintSettingImpl()
public ConstraintSettingImpl(java.lang.String ref, DataConstraint value)
public java.lang.String getRef()
getRef
in interface ConfigSetting<SimpleComponent>
public void setRef(java.lang.String ref)
setRef
in interface ConfigSetting<SimpleComponent>
public DataConstraint getValue()
getValue
in interface ConstraintSetting
public void setValueAsAllowedTimes(AllowedTimes constraint)
setValueAsAllowedTimes
in interface ConstraintSetting
public void setValueAsAllowedTokens(AllowedTokens constraint)
setValueAsAllowedTokens
in interface ConstraintSetting
public void setValueAsAllowedValues(AllowedValues constraint)
setValueAsAllowedValues
in interface ConstraintSetting
public SimpleComponent getReferencedObject()
getReferencedObject
in interface ConfigSetting<SimpleComponent>
public void setReferencedObject(SimpleComponent refObj)
ConfigSetting
setReferencedObject
in interface ConfigSetting<SimpleComponent>
refObj
- referenced object instance