public class FieldDescription extends Object
FieldHelper
.Constructor and Description |
---|
FieldDescription(Resource rsrc)
Construct a new field description for a field resource.
|
FieldDescription(Resource rsrc,
String name)
Construct a new field description for a field resource
and set the name property.
|
Modifier and Type | Method and Description |
---|---|
String |
getConstraintMessage()
The error message if the constraint is not met.
|
String |
getConstraintType()
Get the constraint type (might be null).
|
Resource |
getFieldResource()
Return the associated field resource
|
String |
getName()
Return the name of the field.
|
String |
getRequiredMessage()
Return the error message for a required field.
|
boolean |
isMultiValue()
Is this a multi value field?
|
boolean |
isPrivate()
Is this a private field?
|
boolean |
isReadOnly()
Is this field readonly?
|
boolean |
isRequired()
Is this field required?
|
void |
setConstraintMessage(String constraintMsg)
Set error message if the constraint is not met.
|
void |
setConstraintType(String constraintType)
Set the constraint type (might be null).
|
void |
setMultiValue(boolean flag)
Set if this is a private field.
|
void |
setName(String name)
Set the name for the field.
|
void |
setPrivateField(boolean flag)
Set if this is a private field.
|
void |
setReadOnly(boolean readOnly)
Set if this field is readonly.
|
void |
setRequired(boolean required)
Set if this field is requried.
|
void |
setRequiredMessage(String requiredMsg)
Set the error message for a required field.
|
void |
update(Resource rsrc) |
public FieldDescription(Resource rsrc)
rsrc
- public FieldDescription(Resource rsrc, String name)
rsrc
- The resourcename
- The field name.public void update(Resource rsrc)
public Resource getFieldResource()
public String getName()
public void setName(String name)
public boolean isRequired()
public void setRequired(boolean required)
public String getRequiredMessage()
public void setRequiredMessage(String requiredMsg)
public String getConstraintType()
public void setConstraintType(String constraintType)
public String getConstraintMessage()
public void setConstraintMessage(String constraintMsg)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public boolean isPrivate()
public void setPrivateField(boolean flag)
public boolean isMultiValue()
public void setMultiValue(boolean flag)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"