DOPs Framework 1.0 alpha

net.dops_framework.core
Interface MetadataField

All Superinterfaces:
DOAttribute, MultilingualValue

public interface MetadataField
extends DOAttribute, MultilingualValue

A metadata field attribute as enclosed in a digital object instance.
Metadata fields conform to their respective specifications and they are allowed to contain multi-lingual values.

Version:
$Id: MetadataField.java,v 1.1 2007/03/05 03:28:14 saiko Exp $
Author:
Kostas Saidis (saikos [at] gmail [dot] com)
See Also:
MetadataFieldAttrSpec, MetadataSet, MultilingualValue

Field Summary
 
Fields inherited from interface net.dops_framework.core.MultilingualValue
LANG_DEFAULT
 
Method Summary
 String getDefaultValue(String lang)
          Returns the default value assigned to this field (if any) for the given language.
 boolean isBigText()
          Returns true if this field is big text (i.e., indicating that it should be rendered using a textarea instead of a text box).
 boolean isHidden()
          Returns true if this field is hidden.
 boolean isMandatory()
          Returns true if this field is mandatory.
 boolean isRepeatable()
          Returns true if this field is repeatable (that is, it accepts multiple values).
 
Methods inherited from interface net.dops_framework.core.DOAttribute
getDescription, getFullyQualifiedId, getId, getLabel
 
Methods inherited from interface net.dops_framework.core.MultilingualValue
appendValue, copyValuesFrom, getId, getValues, languages, setValue, setValues
 

Method Detail

isMandatory

boolean isMandatory()
Returns true if this field is mandatory.


isHidden

boolean isHidden()
Returns true if this field is hidden.


isRepeatable

boolean isRepeatable()
Returns true if this field is repeatable (that is, it accepts multiple values).


isBigText

boolean isBigText()
Returns true if this field is big text (i.e., indicating that it should be rendered using a textarea instead of a text box).


getDefaultValue

String getDefaultValue(String lang)
Returns the default value assigned to this field (if any) for the given language.
Given a prototype that defines a default value for a metadata field, the framework guarantees that all instances of this prototype will contain this default value if they are not supplied with an alternate, user-supplied one.


Copyright (c) 2005-2007, Kostas Saidis.
Consult the license for terms and conditions of use.