org.sakaiproject.tool.content
Class ResourcesMetadata

java.lang.Object
  extended byorg.sakaiproject.tool.content.ResourcesMetadata

public class ResourcesMetadata
extends Object

The class represents metadata properties.


Field Summary
static String CLASS_SAKAI_RESOURCE_LABEL
           
static String CLASS_SAKAI_RESOURCE_LOCALNAME
           
static String CLASS_SAKAI_RESOURCE_NAMESPACE
           
static int DEFAULT_LENGTH
          The default size of the text-input widget for strings
static ResourcesMetadata[] DEFINED_PROPERTIES
           
static String DOT
          The character(s) used to delimite parts of the Dotted Name of a StructuredArtifact property.
static String[] DublinCore
           
protected static Map m_abbrev2ns
           
protected  ResourcesMetadata m_container
           
protected  int m_currentCount
           
protected  List m_currentValues
           
protected  String m_datatype
          The datatype of legal values for the metadata property (usually a URI ref for an XML Schema Datatype)
protected  int m_depth
           
protected  String m_description
          An explanation of the metadata property, including the nature of the legal values
protected  List m_dottedparts
          The parts of the name of a nested structured object.
protected  List m_enumeration
           
protected  String m_id
           
protected  List m_instances
           
protected  String m_label
          A string that can be used to refer to the metadata property
protected  int m_length
           
protected  String m_localname
          The string representation of the localname for the metadata property
protected  int m_maxCardinality
           
protected  boolean m_maxInclusive
           
protected  Object m_maxValue
           
protected  int m_minCardinality
           
protected  boolean m_minInclusive
           
protected  Object m_minValue
           
protected  String m_namespace
          The string representation of the namespace for the metadata property
protected  List m_nested
           
protected  List m_nestedinstances
           
protected static Map m_ns2abbrev
           
protected  ResourcesMetadata m_parent
           
protected  Pattern m_pattern
           
protected  String m_widget
          The default editor widget for the metadata property
static String NAMESPACE_DC
           
static String NAMESPACE_DC_ABBREV
           
static String NAMESPACE_DCTERMS
           
static String NAMESPACE_DCTERMS_ABBREV
           
static String NAMESPACE_XSD
           
static String NAMESPACE_XSD_ABBREV
           
protected static Integer NamespaceNumber
           
static ResourcesMetadata PROPERTY_DC_ABSTRACT
           
static ResourcesMetadata PROPERTY_DC_ALTERNATIVE
           
static ResourcesMetadata PROPERTY_DC_ANYURI
           
static ResourcesMetadata PROPERTY_DC_AUDIENCE
           
static ResourcesMetadata PROPERTY_DC_BOOLEAN
           
static ResourcesMetadata PROPERTY_DC_CONTRIBUTOR
           
static ResourcesMetadata PROPERTY_DC_COVERAGE
           
static ResourcesMetadata PROPERTY_DC_CREATED
           
static ResourcesMetadata PROPERTY_DC_CREATOR
           
static ResourcesMetadata PROPERTY_DC_DATE
           
static ResourcesMetadata PROPERTY_DC_DATETIME
           
static ResourcesMetadata PROPERTY_DC_DESCRIPTION
           
static ResourcesMetadata PROPERTY_DC_DOUBLE
           
static ResourcesMetadata PROPERTY_DC_EDULEVEL
           
static ResourcesMetadata PROPERTY_DC_FORMAT
           
static ResourcesMetadata PROPERTY_DC_IDENTIFIER
           
static ResourcesMetadata PROPERTY_DC_INTEGER
           
static ResourcesMetadata PROPERTY_DC_ISSUED
           
static ResourcesMetadata PROPERTY_DC_LANGUAGE
           
static ResourcesMetadata PROPERTY_DC_MODIFIED
           
static ResourcesMetadata PROPERTY_DC_PUBLISHER
           
static ResourcesMetadata PROPERTY_DC_RIGHTS
           
static ResourcesMetadata PROPERTY_DC_SOURCE
           
static ResourcesMetadata PROPERTY_DC_SUBJECT
           
static ResourcesMetadata PROPERTY_DC_TABLEOFCONTENTS
           
static ResourcesMetadata PROPERTY_DC_TIME
           
static ResourcesMetadata PROPERTY_DC_TITLE
           
static ResourcesMetadata PROPERTY_DC_TYPE
           
static String PROPERTY_DESCRIPTION_DC_ABSTRACT
           
static String PROPERTY_DESCRIPTION_DC_ALTERNATIVE
           
static String PROPERTY_DESCRIPTION_DC_AUDIENCE
           
static String PROPERTY_DESCRIPTION_DC_CONTRIBUTOR
           
static String PROPERTY_DESCRIPTION_DC_COVERAGE
           
static String PROPERTY_DESCRIPTION_DC_CREATED
           
static String PROPERTY_DESCRIPTION_DC_CREATOR
           
static String PROPERTY_DESCRIPTION_DC_DESCRIPTION
           
static String PROPERTY_DESCRIPTION_DC_EDULEVEL
           
static String PROPERTY_DESCRIPTION_DC_FORMAT
           
static String PROPERTY_DESCRIPTION_DC_IDENTIFIER
           
static String PROPERTY_DESCRIPTION_DC_ISSUED
           
static String PROPERTY_DESCRIPTION_DC_LANGUAGE
           
static String PROPERTY_DESCRIPTION_DC_MODIFIED
           
static String PROPERTY_DESCRIPTION_DC_PUBLISHER
           
static String PROPERTY_DESCRIPTION_DC_RIGHTS
           
static String PROPERTY_DESCRIPTION_DC_SOURCE
           
static String PROPERTY_DESCRIPTION_DC_SUBJECT
           
static String PROPERTY_DESCRIPTION_DC_TABLEOFCONTENTS
           
static String PROPERTY_DESCRIPTION_DC_TITLE
           
static String PROPERTY_DESCRIPTION_DC_TYPE
           
static String PROPERTY_LABEL_DC_ABSTRACT
           
static String PROPERTY_LABEL_DC_ALTERNATIVE
           
static String PROPERTY_LABEL_DC_AUDIENCE
           
static String PROPERTY_LABEL_DC_CONTRIBUTOR
           
static String PROPERTY_LABEL_DC_COVERAGE
           
static String PROPERTY_LABEL_DC_CREATED
           
static String PROPERTY_LABEL_DC_CREATOR
           
static String PROPERTY_LABEL_DC_DESCRIPTION
           
static String PROPERTY_LABEL_DC_EDULEVEL
           
static String PROPERTY_LABEL_DC_FORMAT
           
static String PROPERTY_LABEL_DC_IDENTIFIER
           
static String PROPERTY_LABEL_DC_ISSUED
           
static String PROPERTY_LABEL_DC_LANGUAGE
           
static String PROPERTY_LABEL_DC_MODIFIED
           
static String PROPERTY_LABEL_DC_PUBLISHER
           
static String PROPERTY_LABEL_DC_RIGHTS
           
static String PROPERTY_LABEL_DC_SOURCE
           
static String PROPERTY_LABEL_DC_SUBJECT
           
static String PROPERTY_LABEL_DC_TABLEOFCONTENTS
           
static String PROPERTY_LABEL_DC_TITLE
           
static String PROPERTY_LABEL_DC_TYPE
           
static String PROPERTY_NAME_DC_ABSTRACT
           
static String PROPERTY_NAME_DC_ALTERNATIVE
           
static String PROPERTY_NAME_DC_AUDIENCE
           
static String PROPERTY_NAME_DC_CONTRIBUTOR
           
static String PROPERTY_NAME_DC_COVERAGE
           
static String PROPERTY_NAME_DC_CREATED
           
static String PROPERTY_NAME_DC_CREATOR
           
static String PROPERTY_NAME_DC_DESCRIPTION
           
static String PROPERTY_NAME_DC_EDULEVEL
           
static String PROPERTY_NAME_DC_FORMAT
           
static String PROPERTY_NAME_DC_IDENTIFIER
           
static String PROPERTY_NAME_DC_ISSUED
           
static String PROPERTY_NAME_DC_LANGUAGE
           
static String PROPERTY_NAME_DC_MODIFIED
           
static String PROPERTY_NAME_DC_PUBLISHER
           
static String PROPERTY_NAME_DC_RIGHTS
           
static String PROPERTY_NAME_DC_SOURCE
           
static String PROPERTY_NAME_DC_SUBJECT
           
static String PROPERTY_NAME_DC_TABLEOFCONTENTS
           
static String PROPERTY_NAME_DC_TITLE
           
static String PROPERTY_NAME_DC_TYPE
           
static String PROPERTY_TYPE_DC_ABSTRACT
           
static String PROPERTY_TYPE_DC_ALTERNATIVE
           
static String PROPERTY_TYPE_DC_AUDIENCE
           
static String PROPERTY_TYPE_DC_CONTRIBUTOR
           
static String PROPERTY_TYPE_DC_COVERAGE
           
static String PROPERTY_TYPE_DC_CREATED
           
static String PROPERTY_TYPE_DC_CREATOR
           
static String PROPERTY_TYPE_DC_DESCRIPTION
           
static String PROPERTY_TYPE_DC_EDULEVEL
           
static String PROPERTY_TYPE_DC_FORMAT
           
static String PROPERTY_TYPE_DC_IDENTIFIER
           
static String PROPERTY_TYPE_DC_ISSUED
           
static String PROPERTY_TYPE_DC_LANGUAGE
           
static String PROPERTY_TYPE_DC_MODIFIED
           
static String PROPERTY_TYPE_DC_PUBLISHER
           
static String PROPERTY_TYPE_DC_RIGHTS
           
static String PROPERTY_TYPE_DC_SOURCE
           
static String PROPERTY_TYPE_DC_SUBJECT
           
static String PROPERTY_TYPE_DC_TABLEOFCONTENTS
           
static String PROPERTY_TYPE_DC_TITLE
           
static String PROPERTY_TYPE_DC_TYPE
           
static String PROPERTY_WIDGET_DC_ABSTRACT
           
static String PROPERTY_WIDGET_DC_ALTERNATIVE
           
static String PROPERTY_WIDGET_DC_AUDIENCE
           
static String PROPERTY_WIDGET_DC_CONTRIBUTOR
           
static String PROPERTY_WIDGET_DC_COVERAGE
           
static String PROPERTY_WIDGET_DC_CREATED
           
static String PROPERTY_WIDGET_DC_CREATOR
           
static String PROPERTY_WIDGET_DC_DESCRIPTION
           
static String PROPERTY_WIDGET_DC_EDULEVEL
           
static String PROPERTY_WIDGET_DC_FORMAT
           
static String PROPERTY_WIDGET_DC_IDENTIFIER
           
static String PROPERTY_WIDGET_DC_ISSUED
           
static String PROPERTY_WIDGET_DC_LANGUAGE
           
static String PROPERTY_WIDGET_DC_MODIFIED
           
static String PROPERTY_WIDGET_DC_PUBLISHER
           
static String PROPERTY_WIDGET_DC_RIGHTS
           
static String PROPERTY_WIDGET_DC_SOURCE
           
static String PROPERTY_WIDGET_DC_SUBJECT
           
static String PROPERTY_WIDGET_DC_TABLEOFCONTENTS
           
static String PROPERTY_WIDGET_DC_TITLE
           
static String PROPERTY_WIDGET_DC_TYPE
           
static String WIDGET_ANYURI
           
static String WIDGET_BOOLEAN
           
static String WIDGET_DATE
           
static String WIDGET_DATETIME
           
static String WIDGET_DOUBLE
           
static String WIDGET_ENUM
           
static String WIDGET_INTEGER
           
static String WIDGET_NESTED
           
static String WIDGET_STRING
           
static String WIDGET_TEXTAREA
           
static String WIDGET_TIME
           
static String WIDGET_WYSIWYG
           
static String XSD_ANYURI
           
static String XSD_BOOLEAN
           
static String XSD_DATE
           
static String XSD_DATETIME
           
static String XSD_DOUBLE
           
static String XSD_DURATION
           
static String XSD_FLOAT
           
static String XSD_INTEGER
           
static String XSD_NORMALIZED_STRING
           
static String XSD_STRING
           
static String XSD_TIME
           
 
Constructor Summary
ResourcesMetadata(ResourcesMetadata other)
           
ResourcesMetadata(String namespace, String localname, String label, String description, String datatype, String widget)
          Constructor.
 
Method Summary
 ResourcesMetadata addInstance()
          Add an instance of "this" property.
protected static String assignAbbrev(String namespace)
           
 boolean canAddInstances()
           
 ResourcesMetadata getContainer()
           
 Integer getCount()
           
 int getCurrentCount()
           
 String getDatatype()
           
 int getDepth()
           
 String getDescription()
           
 String getDottedname()
           
 List getDottedparts()
           
 List getEnumeration()
           
 List getFlatList()
          Recursively traverses a hierarchy of ResourcesMetadata objects rooted at this node in the hierarchy and returns a flat list of ResourcesMetadata objects.
 String getFullname()
           
 String getId()
           
 List getInstanceValues()
           
 String getLabel()
           
 int getLength()
          Access the desired size of a text input field.
 String getLocalname()
           
 int getMaxCardinality()
           
 Object getMaxValue()
           
 int getMinCardinality()
           
 Object getMinValue()
           
 String getNamespace()
           
static String getNamespace(String abbrev)
           
 String getNamespaceAbbrev()
           
static String getNamespaceAbbrev(String namespace)
           
 List getNested()
           
 List getNestedInstances()
           
 String getParentname()
           
 Pattern getPattern()
           
static ResourcesMetadata[] getProperties(String[] names)
           
static ResourcesMetadata getProperty(String name)
           
 String getShortname()
           
 Object getValue()
           
 Object getValue(int index)
           
 List getValues()
           
 String getWidget()
           
 void incrementCount()
          increments the currentCount if it is less than maxCardinality.
protected static void initNamespaceMaps()
          Make sure that maps are defined and default values for Dublin Core and XMLSchema Datatypes are included
 void insertDottedpart(int index, String part)
           
 boolean isMaxInclusive()
           
 boolean isMinInclusive()
           
 boolean isNested()
           
 void setContainer(ResourcesMetadata container)
           
 void setCurrentCount(int currentCount)
           
 void setDatatype(String datatype)
           
 void setDepth(int depth)
           
 void setDescription(String description)
           
 void setDottedpart(int index, String part)
           
 void setDottedparts(List parts)
           
 void setDottedparts(String path)
           
 void setEnumeration(List enumeration)
           
 void setId(String id)
           
 void setLabel(String label)
           
 void setLength(int length)
          Set the the size of a text input field.
 void setLocalname(String localname)
           
 void setMaxCardinality(int maxCardinality)
           
 void setMaxInclusive(boolean maxInclusive)
           
 void setMaxValue(Object maxValue)
           
 void setMinCardinality(int minCardinality)
           
 void setMinInclusive(boolean minInclusive)
           
 void setMinValue(Object minValue)
           
 void setNamespace(String namespace)
           
static void setNamespaceAbbrev(String namespace, String abbrev)
           
 void setNested(List nested)
           
 void setPattern(Pattern pattern)
           
 void setValue(int index, Object value)
           
 void setValue(String name, Object value)
           
 void setWidget(String widget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIDGET_STRING

public static final String WIDGET_STRING
See Also:
Constant Field Values

WIDGET_TEXTAREA

public static final String WIDGET_TEXTAREA
See Also:
Constant Field Values

WIDGET_BOOLEAN

public static final String WIDGET_BOOLEAN
See Also:
Constant Field Values

WIDGET_INTEGER

public static final String WIDGET_INTEGER
See Also:
Constant Field Values

WIDGET_DOUBLE

public static final String WIDGET_DOUBLE
See Also:
Constant Field Values

WIDGET_DATE

public static final String WIDGET_DATE
See Also:
Constant Field Values

WIDGET_TIME

public static final String WIDGET_TIME
See Also:
Constant Field Values

WIDGET_DATETIME

public static final String WIDGET_DATETIME
See Also:
Constant Field Values

WIDGET_ANYURI

public static final String WIDGET_ANYURI
See Also:
Constant Field Values

WIDGET_ENUM

public static final String WIDGET_ENUM
See Also:
Constant Field Values

WIDGET_NESTED

public static final String WIDGET_NESTED
See Also:
Constant Field Values

WIDGET_WYSIWYG

public static final String WIDGET_WYSIWYG
See Also:
Constant Field Values

XSD_STRING

public static final String XSD_STRING
See Also:
Constant Field Values

XSD_BOOLEAN

public static final String XSD_BOOLEAN
See Also:
Constant Field Values

XSD_INTEGER

public static final String XSD_INTEGER
See Also:
Constant Field Values

XSD_FLOAT

public static final String XSD_FLOAT
See Also:
Constant Field Values

XSD_DOUBLE

public static final String XSD_DOUBLE
See Also:
Constant Field Values

XSD_DATE

public static final String XSD_DATE
See Also:
Constant Field Values

XSD_TIME

public static final String XSD_TIME
See Also:
Constant Field Values

XSD_DATETIME

public static final String XSD_DATETIME
See Also:
Constant Field Values

XSD_DURATION

public static final String XSD_DURATION
See Also:
Constant Field Values

XSD_ANYURI

public static final String XSD_ANYURI
See Also:
Constant Field Values

XSD_NORMALIZED_STRING

public static final String XSD_NORMALIZED_STRING
See Also:
Constant Field Values

CLASS_SAKAI_RESOURCE_NAMESPACE

public static final String CLASS_SAKAI_RESOURCE_NAMESPACE
See Also:
Constant Field Values

CLASS_SAKAI_RESOURCE_LOCALNAME

public static final String CLASS_SAKAI_RESOURCE_LOCALNAME
See Also:
Constant Field Values

CLASS_SAKAI_RESOURCE_LABEL

public static final String CLASS_SAKAI_RESOURCE_LABEL
See Also:
Constant Field Values

NAMESPACE_DC

public static final String NAMESPACE_DC
See Also:
Constant Field Values

NAMESPACE_DC_ABBREV

public static final String NAMESPACE_DC_ABBREV
See Also:
Constant Field Values

NAMESPACE_DCTERMS

public static final String NAMESPACE_DCTERMS
See Also:
Constant Field Values

NAMESPACE_DCTERMS_ABBREV

public static final String NAMESPACE_DCTERMS_ABBREV
See Also:
Constant Field Values

NAMESPACE_XSD

public static final String NAMESPACE_XSD
See Also:
Constant Field Values

NAMESPACE_XSD_ABBREV

public static final String NAMESPACE_XSD_ABBREV
See Also:
Constant Field Values

NamespaceNumber

protected static Integer NamespaceNumber

PROPERTY_NAME_DC_TITLE

public static final String PROPERTY_NAME_DC_TITLE
See Also:
Constant Field Values

PROPERTY_LABEL_DC_TITLE

public static final String PROPERTY_LABEL_DC_TITLE

PROPERTY_DESCRIPTION_DC_TITLE

public static final String PROPERTY_DESCRIPTION_DC_TITLE

PROPERTY_TYPE_DC_TITLE

public static final String PROPERTY_TYPE_DC_TITLE
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_TITLE

public static final String PROPERTY_WIDGET_DC_TITLE
See Also:
Constant Field Values

PROPERTY_DC_TITLE

public static final ResourcesMetadata PROPERTY_DC_TITLE

PROPERTY_NAME_DC_ALTERNATIVE

public static final String PROPERTY_NAME_DC_ALTERNATIVE
See Also:
Constant Field Values

PROPERTY_LABEL_DC_ALTERNATIVE

public static final String PROPERTY_LABEL_DC_ALTERNATIVE

PROPERTY_DESCRIPTION_DC_ALTERNATIVE

public static final String PROPERTY_DESCRIPTION_DC_ALTERNATIVE

PROPERTY_TYPE_DC_ALTERNATIVE

public static final String PROPERTY_TYPE_DC_ALTERNATIVE
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_ALTERNATIVE

public static final String PROPERTY_WIDGET_DC_ALTERNATIVE
See Also:
Constant Field Values

PROPERTY_DC_ALTERNATIVE

public static final ResourcesMetadata PROPERTY_DC_ALTERNATIVE

PROPERTY_NAME_DC_CREATOR

public static final String PROPERTY_NAME_DC_CREATOR
See Also:
Constant Field Values

PROPERTY_LABEL_DC_CREATOR

public static final String PROPERTY_LABEL_DC_CREATOR

PROPERTY_DESCRIPTION_DC_CREATOR

public static final String PROPERTY_DESCRIPTION_DC_CREATOR

PROPERTY_TYPE_DC_CREATOR

public static final String PROPERTY_TYPE_DC_CREATOR
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_CREATOR

public static final String PROPERTY_WIDGET_DC_CREATOR
See Also:
Constant Field Values

PROPERTY_DC_CREATOR

public static final ResourcesMetadata PROPERTY_DC_CREATOR

PROPERTY_NAME_DC_SUBJECT

public static final String PROPERTY_NAME_DC_SUBJECT
See Also:
Constant Field Values

PROPERTY_LABEL_DC_SUBJECT

public static final String PROPERTY_LABEL_DC_SUBJECT

PROPERTY_DESCRIPTION_DC_SUBJECT

public static final String PROPERTY_DESCRIPTION_DC_SUBJECT

PROPERTY_TYPE_DC_SUBJECT

public static final String PROPERTY_TYPE_DC_SUBJECT
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_SUBJECT

public static final String PROPERTY_WIDGET_DC_SUBJECT
See Also:
Constant Field Values

PROPERTY_DC_SUBJECT

public static final ResourcesMetadata PROPERTY_DC_SUBJECT

PROPERTY_NAME_DC_DESCRIPTION

public static final String PROPERTY_NAME_DC_DESCRIPTION
See Also:
Constant Field Values

PROPERTY_LABEL_DC_DESCRIPTION

public static final String PROPERTY_LABEL_DC_DESCRIPTION

PROPERTY_DESCRIPTION_DC_DESCRIPTION

public static final String PROPERTY_DESCRIPTION_DC_DESCRIPTION

PROPERTY_TYPE_DC_DESCRIPTION

public static final String PROPERTY_TYPE_DC_DESCRIPTION
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_DESCRIPTION

public static final String PROPERTY_WIDGET_DC_DESCRIPTION
See Also:
Constant Field Values

PROPERTY_DC_DESCRIPTION

public static final ResourcesMetadata PROPERTY_DC_DESCRIPTION

PROPERTY_NAME_DC_PUBLISHER

public static final String PROPERTY_NAME_DC_PUBLISHER
See Also:
Constant Field Values

PROPERTY_LABEL_DC_PUBLISHER

public static final String PROPERTY_LABEL_DC_PUBLISHER

PROPERTY_DESCRIPTION_DC_PUBLISHER

public static final String PROPERTY_DESCRIPTION_DC_PUBLISHER

PROPERTY_TYPE_DC_PUBLISHER

public static final String PROPERTY_TYPE_DC_PUBLISHER
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_PUBLISHER

public static final String PROPERTY_WIDGET_DC_PUBLISHER
See Also:
Constant Field Values

PROPERTY_DC_PUBLISHER

public static final ResourcesMetadata PROPERTY_DC_PUBLISHER

PROPERTY_NAME_DC_CONTRIBUTOR

public static final String PROPERTY_NAME_DC_CONTRIBUTOR
See Also:
Constant Field Values

PROPERTY_LABEL_DC_CONTRIBUTOR

public static final String PROPERTY_LABEL_DC_CONTRIBUTOR

PROPERTY_DESCRIPTION_DC_CONTRIBUTOR

public static final String PROPERTY_DESCRIPTION_DC_CONTRIBUTOR

PROPERTY_TYPE_DC_CONTRIBUTOR

public static final String PROPERTY_TYPE_DC_CONTRIBUTOR
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_CONTRIBUTOR

public static final String PROPERTY_WIDGET_DC_CONTRIBUTOR
See Also:
Constant Field Values

PROPERTY_DC_CONTRIBUTOR

public static final ResourcesMetadata PROPERTY_DC_CONTRIBUTOR

PROPERTY_NAME_DC_TYPE

public static final String PROPERTY_NAME_DC_TYPE
See Also:
Constant Field Values

PROPERTY_LABEL_DC_TYPE

public static final String PROPERTY_LABEL_DC_TYPE

PROPERTY_DESCRIPTION_DC_TYPE

public static final String PROPERTY_DESCRIPTION_DC_TYPE

PROPERTY_TYPE_DC_TYPE

public static final String PROPERTY_TYPE_DC_TYPE
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_TYPE

public static final String PROPERTY_WIDGET_DC_TYPE
See Also:
Constant Field Values

PROPERTY_DC_TYPE

public static final ResourcesMetadata PROPERTY_DC_TYPE

PROPERTY_NAME_DC_FORMAT

public static final String PROPERTY_NAME_DC_FORMAT
See Also:
Constant Field Values

PROPERTY_LABEL_DC_FORMAT

public static final String PROPERTY_LABEL_DC_FORMAT

PROPERTY_DESCRIPTION_DC_FORMAT

public static final String PROPERTY_DESCRIPTION_DC_FORMAT

PROPERTY_TYPE_DC_FORMAT

public static final String PROPERTY_TYPE_DC_FORMAT
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_FORMAT

public static final String PROPERTY_WIDGET_DC_FORMAT
See Also:
Constant Field Values

PROPERTY_DC_FORMAT

public static final ResourcesMetadata PROPERTY_DC_FORMAT

PROPERTY_NAME_DC_IDENTIFIER

public static final String PROPERTY_NAME_DC_IDENTIFIER
See Also:
Constant Field Values

PROPERTY_LABEL_DC_IDENTIFIER

public static final String PROPERTY_LABEL_DC_IDENTIFIER

PROPERTY_DESCRIPTION_DC_IDENTIFIER

public static final String PROPERTY_DESCRIPTION_DC_IDENTIFIER

PROPERTY_TYPE_DC_IDENTIFIER

public static final String PROPERTY_TYPE_DC_IDENTIFIER
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_IDENTIFIER

public static final String PROPERTY_WIDGET_DC_IDENTIFIER
See Also:
Constant Field Values

PROPERTY_DC_IDENTIFIER

public static final ResourcesMetadata PROPERTY_DC_IDENTIFIER

PROPERTY_NAME_DC_SOURCE

public static final String PROPERTY_NAME_DC_SOURCE
See Also:
Constant Field Values

PROPERTY_LABEL_DC_SOURCE

public static final String PROPERTY_LABEL_DC_SOURCE

PROPERTY_DESCRIPTION_DC_SOURCE

public static final String PROPERTY_DESCRIPTION_DC_SOURCE

PROPERTY_TYPE_DC_SOURCE

public static final String PROPERTY_TYPE_DC_SOURCE
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_SOURCE

public static final String PROPERTY_WIDGET_DC_SOURCE
See Also:
Constant Field Values

PROPERTY_DC_SOURCE

public static final ResourcesMetadata PROPERTY_DC_SOURCE

PROPERTY_NAME_DC_LANGUAGE

public static final String PROPERTY_NAME_DC_LANGUAGE
See Also:
Constant Field Values

PROPERTY_LABEL_DC_LANGUAGE

public static final String PROPERTY_LABEL_DC_LANGUAGE

PROPERTY_DESCRIPTION_DC_LANGUAGE

public static final String PROPERTY_DESCRIPTION_DC_LANGUAGE

PROPERTY_TYPE_DC_LANGUAGE

public static final String PROPERTY_TYPE_DC_LANGUAGE
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_LANGUAGE

public static final String PROPERTY_WIDGET_DC_LANGUAGE
See Also:
Constant Field Values

PROPERTY_DC_LANGUAGE

public static final ResourcesMetadata PROPERTY_DC_LANGUAGE

PROPERTY_NAME_DC_COVERAGE

public static final String PROPERTY_NAME_DC_COVERAGE
See Also:
Constant Field Values

PROPERTY_LABEL_DC_COVERAGE

public static final String PROPERTY_LABEL_DC_COVERAGE

PROPERTY_DESCRIPTION_DC_COVERAGE

public static final String PROPERTY_DESCRIPTION_DC_COVERAGE

PROPERTY_TYPE_DC_COVERAGE

public static final String PROPERTY_TYPE_DC_COVERAGE
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_COVERAGE

public static final String PROPERTY_WIDGET_DC_COVERAGE
See Also:
Constant Field Values

PROPERTY_DC_COVERAGE

public static final ResourcesMetadata PROPERTY_DC_COVERAGE

PROPERTY_NAME_DC_RIGHTS

public static final String PROPERTY_NAME_DC_RIGHTS
See Also:
Constant Field Values

PROPERTY_LABEL_DC_RIGHTS

public static final String PROPERTY_LABEL_DC_RIGHTS

PROPERTY_DESCRIPTION_DC_RIGHTS

public static final String PROPERTY_DESCRIPTION_DC_RIGHTS

PROPERTY_TYPE_DC_RIGHTS

public static final String PROPERTY_TYPE_DC_RIGHTS
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_RIGHTS

public static final String PROPERTY_WIDGET_DC_RIGHTS
See Also:
Constant Field Values

PROPERTY_DC_RIGHTS

public static final ResourcesMetadata PROPERTY_DC_RIGHTS

PROPERTY_NAME_DC_AUDIENCE

public static final String PROPERTY_NAME_DC_AUDIENCE
See Also:
Constant Field Values

PROPERTY_LABEL_DC_AUDIENCE

public static final String PROPERTY_LABEL_DC_AUDIENCE

PROPERTY_DESCRIPTION_DC_AUDIENCE

public static final String PROPERTY_DESCRIPTION_DC_AUDIENCE

PROPERTY_TYPE_DC_AUDIENCE

public static final String PROPERTY_TYPE_DC_AUDIENCE
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_AUDIENCE

public static final String PROPERTY_WIDGET_DC_AUDIENCE
See Also:
Constant Field Values

PROPERTY_DC_AUDIENCE

public static final ResourcesMetadata PROPERTY_DC_AUDIENCE

PROPERTY_NAME_DC_TABLEOFCONTENTS

public static final String PROPERTY_NAME_DC_TABLEOFCONTENTS
See Also:
Constant Field Values

PROPERTY_LABEL_DC_TABLEOFCONTENTS

public static final String PROPERTY_LABEL_DC_TABLEOFCONTENTS

PROPERTY_DESCRIPTION_DC_TABLEOFCONTENTS

public static final String PROPERTY_DESCRIPTION_DC_TABLEOFCONTENTS

PROPERTY_TYPE_DC_TABLEOFCONTENTS

public static final String PROPERTY_TYPE_DC_TABLEOFCONTENTS
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_TABLEOFCONTENTS

public static final String PROPERTY_WIDGET_DC_TABLEOFCONTENTS
See Also:
Constant Field Values

PROPERTY_DC_TABLEOFCONTENTS

public static final ResourcesMetadata PROPERTY_DC_TABLEOFCONTENTS

PROPERTY_NAME_DC_ABSTRACT

public static final String PROPERTY_NAME_DC_ABSTRACT
See Also:
Constant Field Values

PROPERTY_LABEL_DC_ABSTRACT

public static final String PROPERTY_LABEL_DC_ABSTRACT

PROPERTY_DESCRIPTION_DC_ABSTRACT

public static final String PROPERTY_DESCRIPTION_DC_ABSTRACT

PROPERTY_TYPE_DC_ABSTRACT

public static final String PROPERTY_TYPE_DC_ABSTRACT
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_ABSTRACT

public static final String PROPERTY_WIDGET_DC_ABSTRACT
See Also:
Constant Field Values

PROPERTY_DC_ABSTRACT

public static final ResourcesMetadata PROPERTY_DC_ABSTRACT

PROPERTY_NAME_DC_CREATED

public static final String PROPERTY_NAME_DC_CREATED
See Also:
Constant Field Values

PROPERTY_LABEL_DC_CREATED

public static final String PROPERTY_LABEL_DC_CREATED

PROPERTY_DESCRIPTION_DC_CREATED

public static final String PROPERTY_DESCRIPTION_DC_CREATED

PROPERTY_TYPE_DC_CREATED

public static final String PROPERTY_TYPE_DC_CREATED
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_CREATED

public static final String PROPERTY_WIDGET_DC_CREATED
See Also:
Constant Field Values

PROPERTY_DC_CREATED

public static final ResourcesMetadata PROPERTY_DC_CREATED

PROPERTY_NAME_DC_ISSUED

public static final String PROPERTY_NAME_DC_ISSUED
See Also:
Constant Field Values

PROPERTY_LABEL_DC_ISSUED

public static final String PROPERTY_LABEL_DC_ISSUED

PROPERTY_DESCRIPTION_DC_ISSUED

public static final String PROPERTY_DESCRIPTION_DC_ISSUED

PROPERTY_TYPE_DC_ISSUED

public static final String PROPERTY_TYPE_DC_ISSUED
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_ISSUED

public static final String PROPERTY_WIDGET_DC_ISSUED
See Also:
Constant Field Values

PROPERTY_DC_ISSUED

public static final ResourcesMetadata PROPERTY_DC_ISSUED

PROPERTY_NAME_DC_MODIFIED

public static final String PROPERTY_NAME_DC_MODIFIED
See Also:
Constant Field Values

PROPERTY_LABEL_DC_MODIFIED

public static final String PROPERTY_LABEL_DC_MODIFIED

PROPERTY_DESCRIPTION_DC_MODIFIED

public static final String PROPERTY_DESCRIPTION_DC_MODIFIED

PROPERTY_TYPE_DC_MODIFIED

public static final String PROPERTY_TYPE_DC_MODIFIED
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_MODIFIED

public static final String PROPERTY_WIDGET_DC_MODIFIED
See Also:
Constant Field Values

PROPERTY_DC_MODIFIED

public static final ResourcesMetadata PROPERTY_DC_MODIFIED

PROPERTY_NAME_DC_EDULEVEL

public static final String PROPERTY_NAME_DC_EDULEVEL
See Also:
Constant Field Values

PROPERTY_LABEL_DC_EDULEVEL

public static final String PROPERTY_LABEL_DC_EDULEVEL

PROPERTY_DESCRIPTION_DC_EDULEVEL

public static final String PROPERTY_DESCRIPTION_DC_EDULEVEL

PROPERTY_TYPE_DC_EDULEVEL

public static final String PROPERTY_TYPE_DC_EDULEVEL
See Also:
Constant Field Values

PROPERTY_WIDGET_DC_EDULEVEL

public static final String PROPERTY_WIDGET_DC_EDULEVEL
See Also:
Constant Field Values

PROPERTY_DC_EDULEVEL

public static final ResourcesMetadata PROPERTY_DC_EDULEVEL

PROPERTY_DC_BOOLEAN

public static final ResourcesMetadata PROPERTY_DC_BOOLEAN

PROPERTY_DC_DATE

public static final ResourcesMetadata PROPERTY_DC_DATE

PROPERTY_DC_TIME

public static final ResourcesMetadata PROPERTY_DC_TIME

PROPERTY_DC_DATETIME

public static final ResourcesMetadata PROPERTY_DC_DATETIME

PROPERTY_DC_INTEGER

public static final ResourcesMetadata PROPERTY_DC_INTEGER

PROPERTY_DC_DOUBLE

public static final ResourcesMetadata PROPERTY_DC_DOUBLE

PROPERTY_DC_ANYURI

public static final ResourcesMetadata PROPERTY_DC_ANYURI

DublinCore

public static final String[] DublinCore

DEFINED_PROPERTIES

public static final ResourcesMetadata[] DEFINED_PROPERTIES

DOT

public static final String DOT
The character(s) used to delimite parts of the Dotted Name of a StructuredArtifact property.

See Also:
Constant Field Values

DEFAULT_LENGTH

public static final int DEFAULT_LENGTH
The default size of the text-input widget for strings

See Also:
Constant Field Values

m_localname

protected String m_localname
The string representation of the localname for the metadata property


m_namespace

protected String m_namespace
The string representation of the namespace for the metadata property


m_dottedparts

protected List m_dottedparts
The parts of the name of a nested structured object.


m_label

protected String m_label
A string that can be used to refer to the metadata property


m_description

protected String m_description
An explanation of the metadata property, including the nature of the legal values


m_datatype

protected String m_datatype
The datatype of legal values for the metadata property (usually a URI ref for an XML Schema Datatype)


m_widget

protected String m_widget
The default editor widget for the metadata property


m_minCardinality

protected int m_minCardinality

m_maxCardinality

protected int m_maxCardinality

m_currentCount

protected int m_currentCount

m_currentValues

protected List m_currentValues

m_length

protected int m_length

m_enumeration

protected List m_enumeration

m_nested

protected List m_nested

m_nestedinstances

protected List m_nestedinstances

m_instances

protected List m_instances

m_container

protected ResourcesMetadata m_container

m_parent

protected ResourcesMetadata m_parent

m_minValue

protected Object m_minValue

m_maxValue

protected Object m_maxValue

m_minInclusive

protected boolean m_minInclusive

m_maxInclusive

protected boolean m_maxInclusive

m_pattern

protected Pattern m_pattern

m_depth

protected int m_depth

m_ns2abbrev

protected static Map m_ns2abbrev

m_abbrev2ns

protected static Map m_abbrev2ns

m_id

protected String m_id
Constructor Detail

ResourcesMetadata

public ResourcesMetadata(String namespace,
                         String localname,
                         String label,
                         String description,
                         String datatype,
                         String widget)
Constructor.

Parameters:
label - A string that can be used to refer to the metadata property
description - An explanation of the metadata property, describing the valid values
datatype - The datatype of legal values for the metadata property (usually a URI ref for an XML Schema Datatype)
widget - The default editor widget for the metadata property

ResourcesMetadata

public ResourcesMetadata(ResourcesMetadata other)
Method Detail

getProperty

public static ResourcesMetadata getProperty(String name)

getProperties

public static ResourcesMetadata[] getProperties(String[] names)

getDatatype

public String getDatatype()
Returns:
The datatype of legal values for the metadata property (usually a URI ref for an XML Schema Datatype)

getDescription

public String getDescription()
Returns:
An explanation of the metadata property describing the valid values

getLabel

public String getLabel()
Returns:

getLocalname

public String getLocalname()
Returns:
The string representation of the URI for the metadata property

getNamespace

public String getNamespace()
Returns:
The string representation of the full namespace for the metadata property

getNamespaceAbbrev

public String getNamespaceAbbrev()
Returns:
The abbreviated version of the namespace (including delimiter)

getFullname

public String getFullname()
Returns:
The string representation of the URI for the metadata property

getShortname

public String getShortname()
Returns:
The string representation of the URI for the metadata property

getWidget

public String getWidget()
Returns:
The default editor widget for the metadata property

setDatatype

public void setDatatype(String datatype)
Parameters:
datatype - The datatype of legal values for the metadata property (usually a URI ref for an XML Schema Datatype)

setDescription

public void setDescription(String description)
Parameters:
description - An explanation of the metadata property describing the valid values

setLabel

public void setLabel(String label)
Parameters:
label - A string that can be used to refer to the metadata property

setNamespace

public void setNamespace(String namespace)

setLocalname

public void setLocalname(String localname)

setWidget

public void setWidget(String widget)
Parameters:
widget - The default editor widget for the metadata property

setContainer

public void setContainer(ResourcesMetadata container)

getContainer

public ResourcesMetadata getContainer()

setNamespaceAbbrev

public static void setNamespaceAbbrev(String namespace,
                                      String abbrev)
Parameters:
namespace - The string representation of the namespace for the metadata property
abbrev - The abbreviated version of the namespace (including delimiter)

getNamespaceAbbrev

public static String getNamespaceAbbrev(String namespace)
Parameters:
namespace - The string representation of the namespace for a metadata property
Returns:
The abbreviated version of the namespace identifier (including delimiter)

getNamespace

public static String getNamespace(String abbrev)
Parameters:
abbrev - The abbreviated version of the namespace identifier (including delimiter)
Returns:
The string representation of the full name of the namespace

initNamespaceMaps

protected static void initNamespaceMaps()
Make sure that maps are defined and default values for Dublin Core and XMLSchema Datatypes are included


assignAbbrev

protected static String assignAbbrev(String namespace)

getCurrentCount

public int getCurrentCount()
Returns:
Returns the currentCount.

getCount

public Integer getCount()
Returns:
Returns the currentCount.

setValue

public void setValue(String name,
                     Object value)

getValues

public List getValues()
Returns:

getValue

public Object getValue(int index)
Parameters:
index -
Returns:

getValue

public Object getValue()
Returns:

getInstanceValues

public List getInstanceValues()

setValue

public void setValue(int index,
                     Object value)
Parameters:
index -
value -

setCurrentCount

public void setCurrentCount(int currentCount)
Parameters:
currentCount - The currentCount to set.

getMaxCardinality

public int getMaxCardinality()
Returns:
Returns the maxCardinality.

setMaxCardinality

public void setMaxCardinality(int maxCardinality)
Parameters:
maxCardinality - The maxCardinality to set.

getMinCardinality

public int getMinCardinality()
Returns:
Returns the minCardinality.

setMinCardinality

public void setMinCardinality(int minCardinality)
Parameters:
minCardinality - The minCardinality to set.

incrementCount

public void incrementCount()
increments the currentCount if it is less than maxCardinality.


canAddInstances

public boolean canAddInstances()
Returns:
true if additional instances of the field can be added, false otherwise.

getLength

public int getLength()
Access the desired size of a text input field.

Returns:
Returns the length, which represents the size of a text input field.

setLength

public void setLength(int length)
Set the the size of a text input field.

Parameters:
length - The length to set.

getEnumeration

public List getEnumeration()
Returns:
Returns the enumeration.

setEnumeration

public void setEnumeration(List enumeration)
Parameters:
enumeration - The enumeration to set.

isNested

public boolean isNested()

getNested

public List getNested()
Returns:
Returns the nested.

getNestedInstances

public List getNestedInstances()
Returns:
Returns the nested.

setNested

public void setNested(List nested)
Parameters:
nested - The nested to set.

getMaxValue

public Object getMaxValue()
Returns:
Returns the maxValue.

setMaxValue

public void setMaxValue(Object maxValue)
Parameters:
maxValue - The maxValue to set.

getMinValue

public Object getMinValue()
Returns:
Returns the minValue.

setMinValue

public void setMinValue(Object minValue)
Parameters:
minValue - The minValue to set.

getPattern

public Pattern getPattern()
Returns:
Returns the pattern.

setPattern

public void setPattern(Pattern pattern)
Parameters:
pattern - The pattern to set.

isMaxInclusive

public boolean isMaxInclusive()
Returns:
Returns the maxInclusive.

setMaxInclusive

public void setMaxInclusive(boolean maxInclusive)
Parameters:
maxInclusive - The maxInclusive to set.

isMinInclusive

public boolean isMinInclusive()
Returns:
Returns the minInclusive.

setMinInclusive

public void setMinInclusive(boolean minInclusive)
Parameters:
minInclusive - The minInclusive to set.

getDepth

public int getDepth()
Returns:
Returns the depth.

setDepth

public void setDepth(int depth)
Parameters:
depth - The depth to set.

setId

public void setId(String id)

getId

public String getId()

setDottedparts

public void setDottedparts(List parts)

getDottedparts

public List getDottedparts()

setDottedpart

public void setDottedpart(int index,
                          String part)

insertDottedpart

public void insertDottedpart(int index,
                             String part)

getDottedname

public String getDottedname()

getParentname

public String getParentname()

setDottedparts

public void setDottedparts(String path)

getFlatList

public List getFlatList()
Recursively traverses a hierarchy of ResourcesMetadata objects rooted at this node in the hierarchy and returns a flat list of ResourcesMetadata objects. The hierarchy is expressed as references in the list of nested objects. The return value is a list of objects ordered for rendering as an HTML form, with at least one entry for each HTML tag required to render the form.

Returns:
An ordered list of ResourcesMetadata objects.

addInstance

public ResourcesMetadata addInstance()
Add an instance of "this" property. The dotted-name of the new instance will be the same as the dotted-name of "this" property, except that it will have a decimal number appended if the property's maximum cardinality allows multiple instances of the property.