public abstract class GenericReference
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
checkOptionalReference(GenericReference ref,
java.lang.String fieldName)
Static method to validate an option reference.
|
static void |
checkRequiredReference(GenericReference ref,
java.lang.String fieldName)
Static method to validate a reference who value is required.
|
void |
checkValid()
Check whether the reference is syntactically valid.
|
java.lang.String |
getValue()
Getter
|
void |
setValue(java.lang.String value)
Setter Sets the reference value.
|
public java.lang.String getValue()
public void setValue(@Nonnull java.lang.String value)
value
- The name of the object, associated with this referencepublic void checkValid() throws ComponentConfigurationException
ComponentConfigurationException
- When the reference is not valid.public static void checkRequiredReference(GenericReference ref, java.lang.String fieldName) throws ComponentConfigurationException
ref
- The reference to validatefieldName
- The name of the reference for exception reportingComponentConfigurationException
- When the reference is invalid.public static void checkOptionalReference(GenericReference ref, java.lang.String fieldName) throws ComponentConfigurationException
ref
- The reference to validatefieldName
- The name of the reference for exception reportingComponentConfigurationException
- When the reference is invalid.