ogre.dms.data
Class Metadata

java.lang.Object
  extended by ogre.dms.data.Metadata

public class Metadata
extends Object

A syntax tolerant and multi-valued metadata container. All the static String fields declared by this class are used as reference names for syntax correction on meta-data naming.

Version:
$Id: Metadata.java,v 1.1.2.2 2008/10/08 09:26:41 esso Exp $
Author:
Docpedia team.

Field Summary
static String APPLICATION_NAME
           
static String AUTHOR
           
static String CHARACTER_COUNT
           
static String COMMENTS
           
static String CONTENTS
           
static String DOC_KEY
           
static String DOC_NAME
           
static String FILE_NAME
           
static String FILE_SIZE
           
static String FILE_TYPE
           
static String FOLDER_ID
           
static String FULL_PATH
           
static String KEYWORDS
           
static String LAST_AUTHOR
           
static String LAST_MODIFIED
           
static String LAST_PRINTED
           
static String LAST_SAVED
           
static String LOCATION
          Which location of multi storage sites.
static String PAGE_COUNT
           
static String PDOC_KEY
           
static String REVISION_NUMBER
           
static String SUMMARY
           
static String TEMPLATE
           
static String TERM_KEY
           
static String TITLE
           
static String WORD_COUNT
           
 
Constructor Summary
Metadata()
          Constructs a new, empty metadata.
 
Method Summary
 void add(String name, String value)
          Add a metadata name/value mapping.
static String getNormalizedName(String name)
          Get the normalized name of metadata attribute name.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TERM_KEY

public static final String TERM_KEY
See Also:
Constant Field Values

KEYWORDS

public static final String KEYWORDS
See Also:
Constant Field Values

COMMENTS

public static final String COMMENTS
See Also:
Constant Field Values

LAST_AUTHOR

public static final String LAST_AUTHOR
See Also:
Constant Field Values

APPLICATION_NAME

public static final String APPLICATION_NAME
See Also:
Constant Field Values

CHARACTER_COUNT

public static final String CHARACTER_COUNT
See Also:
Constant Field Values

LAST_PRINTED

public static final String LAST_PRINTED
See Also:
Constant Field Values

LAST_SAVED

public static final String LAST_SAVED
See Also:
Constant Field Values

PAGE_COUNT

public static final String PAGE_COUNT
See Also:
Constant Field Values

REVISION_NUMBER

public static final String REVISION_NUMBER
See Also:
Constant Field Values

WORD_COUNT

public static final String WORD_COUNT
See Also:
Constant Field Values

TEMPLATE

public static final String TEMPLATE
See Also:
Constant Field Values

AUTHOR

public static final String AUTHOR
See Also:
Constant Field Values

TITLE

public static final String TITLE
See Also:
Constant Field Values

FILE_NAME

public static final String FILE_NAME
See Also:
Constant Field Values

FOLDER_ID

public static final String FOLDER_ID
See Also:
Constant Field Values

PDOC_KEY

public static final String PDOC_KEY
See Also:
Constant Field Values

DOC_KEY

public static final String DOC_KEY
See Also:
Constant Field Values

DOC_NAME

public static final String DOC_NAME
See Also:
Constant Field Values

CONTENTS

public static final String CONTENTS
See Also:
Constant Field Values

FULL_PATH

public static final String FULL_PATH
See Also:
Constant Field Values

FILE_SIZE

public static final String FILE_SIZE
See Also:
Constant Field Values

FILE_TYPE

public static final String FILE_TYPE
See Also:
Constant Field Values

SUMMARY

public static final String SUMMARY
See Also:
Constant Field Values

LAST_MODIFIED

public static final String LAST_MODIFIED
See Also:
Constant Field Values

LOCATION

public static final String LOCATION
Which location of multi storage sites.

See Also:
Constant Field Values
Constructor Detail

Metadata

public Metadata()
Constructs a new, empty metadata.

Method Detail

add

public void add(String name,
                String value)
Add a metadata name/value mapping. Add the specified value to the list of values associated to the specified metadata name.

Parameters:
name - the metadata name.
value - the metadata value.

getNormalizedName

public static String getNormalizedName(String name)
Get the normalized name of metadata attribute name. This method tries to find a well-known metadata name (one of the metadata names defined in this class) that matches the specified name. The matching is error tolerent. For instance, If no matching with a well-known metadata name is found, then the original name is returned.


toString

public String toString()
Overrides:
toString in class Object


Copyright(c) 2005-2012 by Flowring Technology Corp., 12 F., No 120, Sec 2, Gongdao 5th Rd., Hsin-Chu City 300, Taiwan(R.O.C.) All rights reserved.