public class DCInput
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUBMISSION_SCOPE
The scope of the input sets, this restricts hidden metadata fields from
view by the end user during submission.
|
static java.lang.String |
WORKFLOW_SCOPE
The scope of the input sets, this restricts hidden metadata fields from
view during workflow processing.
|
| Constructor and Description |
|---|
DCInput(java.util.Map<java.lang.String,java.lang.String> fieldMap,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> listMap)
Class constructor for creating a DCInput object based on the contents of
a HashMap
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayString(java.lang.String pairTypeName,
java.lang.String storedString)
Gets the display string that corresponds to the passed storage string in
a particular display-storage pair set.
|
java.lang.String |
getElement()
Get the DC element for this form row.
|
java.lang.String |
getHints()
Get the hint for this form row, formatted for an HTML table
|
java.lang.String |
getInputType()
Get the input type for this row
|
java.lang.String |
getLabel()
Get the label for this form row.
|
java.util.List |
getPairs()
Get the name of the pairs type
|
java.lang.String |
getPairsType()
Get the name of the pairs type
|
java.lang.String |
getQualifier()
Get the DC qualifier for this form row.
|
boolean |
getRepeatable()
Alternate way of calling isRepeatable()
|
java.lang.String |
getSchema()
Get the DC namespace prefix for this form row.
|
java.lang.String |
getStoredString(java.lang.String pairTypeName,
java.lang.String displayedString)
Gets the stored string that corresponds to the passed display string in a
particular display-storage pair set.
|
java.lang.String |
getVocabulary()
Get the name of the controlled vocabulary that is associated with this
field
|
java.lang.String |
getWarning()
Get the warning string for a missing required field, formatted for an
HTML table.
|
boolean |
isAllowedFor(java.lang.String typeName)
Decides if this field is valid for the document type
|
boolean |
isClosedVocabulary()
The closed attribute of the vocabulary tag for this field as set in
input-forms.xml
|
boolean |
isReadOnly(java.lang.String scope)
Is this DCInput for display in readonly mode in the given scope?
If the scope differ from which in visibility field then we use the out attribute
of the visibility element.
|
boolean |
isRepeatable()
Get the repeatable flag for this row
|
boolean |
isRequired()
Is there a required string for this form row?
|
boolean |
isVisible(java.lang.String scope)
Is this DCInput for display in the given scope? The scope should be
either "workflow" or "submit", as per the input forms definition.
|
void |
setVocabulary(java.lang.String vocabulary)
Set the name of the controlled vocabulary that is associated with this
field
|
public static final java.lang.String WORKFLOW_SCOPE
public static final java.lang.String SUBMISSION_SCOPE
public DCInput(java.util.Map<java.lang.String,java.lang.String> fieldMap,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> listMap)
fieldMap - ???listMap - public boolean isVisible(java.lang.String scope)
scope - String identifying the scope that this input's visibility
should be tested forpublic boolean isReadOnly(java.lang.String scope)
scope - String identifying the scope that this input's readonly visibility
should be tested forpublic boolean isRepeatable()
public boolean getRepeatable()
public java.lang.String getInputType()
public java.lang.String getElement()
public java.lang.String getSchema()
public java.lang.String getWarning()
public boolean isRequired()
public java.lang.String getQualifier()
public java.lang.String getHints()
public java.lang.String getLabel()
public java.lang.String getPairsType()
public java.util.List getPairs()
public java.lang.String getVocabulary()
public void setVocabulary(java.lang.String vocabulary)
vocabulary - the name of the vocabularypublic java.lang.String getDisplayString(java.lang.String pairTypeName,
java.lang.String storedString)
pairTypeName - Name of display-storage pair set to searchstoredString - the string that gets storedpublic java.lang.String getStoredString(java.lang.String pairTypeName,
java.lang.String displayedString)
pairTypeName - Name of display-storage pair set to searchdisplayedString - the string that gets displayedpublic boolean isClosedVocabulary()
.....
nsrc
public boolean isAllowedFor(java.lang.String typeName)
typeName - Document type nameCopyright © 2013 DuraSpace. All Rights Reserved.