public static class PropertiesQuestion.ValueConstraints
extends java.lang.Object
Constructor and Description |
---|
PropertiesQuestion.ValueConstraints() |
PropertiesQuestion.ValueConstraints(boolean readonly,
boolean visible) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadOnly()
Determine if this value is a read-only value.
|
boolean |
isUnsetAllowed()
Is an unset response allowed.
|
java.lang.String |
isValid(java.lang.String v)
Is the given value valid for this field? Since this constraint
class has no particular typing, the default only check that the
value is non-empty.
|
boolean |
isVisible()
Is this property (and value) visible? True by default.
|
void |
setReadOnly(boolean state)
Determine whether this value should be readable only, by the
interview user.
|
void |
setUnsetAllowed(boolean state)
May the answer be set to an unanswered state.
|
void |
setVisible(boolean state)
Make value outwardly visible or invisible.
|
public PropertiesQuestion.ValueConstraints()
public PropertiesQuestion.ValueConstraints(boolean readonly, boolean visible)
public void setReadOnly(boolean state)
state
- True if readonly, false otherwise.public void setVisible(boolean state)
state
- True if the property at constrained by this object
should be visible.public boolean isReadOnly()
public boolean isVisible()
public void setUnsetAllowed(boolean state)
state
- True if the user is allowed to make this value unset.isUnsetAllowed()
public boolean isUnsetAllowed()
setUnsetAllowed(boolean)
public java.lang.String isValid(java.lang.String v)
v
- The value to check.PropertiesQuestion.getInvalidKeys()
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.