org.tranche.meta
Class MetaDataAnnotation

java.lang.Object
  extended by org.tranche.meta.MetaDataAnnotation

public class MetaDataAnnotation
extends java.lang.Object

Represents a name/value pair associated with meta-data.

Author:
Jayson Falkner - jfalkner@umich.edu, James "Augie" Hill - augman85@gmail.com, Bryan Smith - bryanesmith@gmail.com

Field Summary
static java.lang.String DELIMITER
          The delimiter between the name and value for the annotation.
static java.lang.String FILE_LAST_MODIFIED_TIMESTAMP
          Deprecated. Moved into meta data properties, name of MetaData.PROP_TIMESTAMP_FILE
static java.lang.String IS_OUT_MDA
          Deprecated. Move to usage location.
static java.lang.String IS_PEAKLIST_MDA
          Deprecated. Move to usage location.
static java.lang.String PKL_IS_XTANDEM
          Deprecated. Move to usage location.
static java.lang.String PROJECT_ANNOTATED_MDA
          Deprecated. No longer in use.
static java.lang.String PROP_DELETE_NEW_VERSION
          Deprecated. No longer in use.
static java.lang.String PROP_DELETE_OLD_VERSION
          Deprecated. No longer in use.
static java.lang.String PROP_DELETED
          Deprecated. Moved to meta data properties, name of MetaData.PROP_HIDDEN
static java.lang.String PROP_NEW_VERSION
          Deprecated. Moved to meta data properties, name of MetaData.PROP_VERSION_NEXT
static java.lang.String PROP_OLD_VERSION
          Deprecated. Moved to meta data properties, name of MetaData.PROP_VERSION_PREVIOUS
static java.lang.String PROP_PUBLISHED_TIMESTAMP
          Deprecated. Moved to AES file encoding properties, name of FileEncoding.PROP_TIMESTAMP_PUBLISHED
static java.lang.String PROP_STICKY_SERVER_HOST
          Name of the meta data annotation that notes the host name for a server on which a file should be stuck.
static java.lang.String PROP_STICKY_SERVER_URL
          Deprecated. Use PROP_STICKY_SERVER_HOST
static java.lang.String PROP_UNDELETED
          Deprecated. No longer in use.
static java.lang.String SEQUEST_OUT_MDVALUE
          Deprecated. Move to usage location.
static MetaDataAnnotation SHARE_META_DATA_IF_ENCRYPTED_ANNOTATION
          Deprecated. Moved to meta data properties, name of MetaData.PROP_SHARE_INFO_IF_ENCRYPTED
 
Constructor Summary
MetaDataAnnotation(java.lang.String value)
           
MetaDataAnnotation(java.lang.String name, java.lang.String value)
           
 
Method Summary
static MetaDataAnnotation createFromString(java.lang.String string)
          Create from a string.
 boolean equals(java.lang.Object o)
          Compare two meta data annotation objects.
 java.lang.String getName()
          Returns the name.
 java.lang.String getValue()
          Returns the value.
 void setName(java.lang.String name)
          Sets the name.
 void setValue(java.lang.String value)
          Sets the value.
 java.lang.String toString()
          Returns the string representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_STICKY_SERVER_URL

public static final java.lang.String PROP_STICKY_SERVER_URL
Deprecated. Use PROP_STICKY_SERVER_HOST

See Also:
Constant Field Values

PROP_STICKY_SERVER_HOST

public static final java.lang.String PROP_STICKY_SERVER_HOST

Name of the meta data annotation that notes the host name for a server on which a file should be stuck.

See Also:
Constant Field Values

FILE_LAST_MODIFIED_TIMESTAMP

public static final java.lang.String FILE_LAST_MODIFIED_TIMESTAMP
Deprecated. Moved into meta data properties, name of MetaData.PROP_TIMESTAMP_FILE

Name of the meta data annotation that notes when the file was last modified.

See Also:
Constant Field Values

PROP_DELETED

public static final java.lang.String PROP_DELETED
Deprecated. Moved to meta data properties, name of MetaData.PROP_HIDDEN

Name of a "Deleted" meta data annotation. Really used for hiding data sets.

See Also:
Constant Field Values

PROP_UNDELETED

public static final java.lang.String PROP_UNDELETED
Deprecated. No longer in use.

Name of an "Undeleted" meta data annotation.

See Also:
Constant Field Values

PROP_PUBLISHED_TIMESTAMP

public static final java.lang.String PROP_PUBLISHED_TIMESTAMP
Deprecated. Moved to AES file encoding properties, name of FileEncoding.PROP_TIMESTAMP_PUBLISHED

Name of a "Publish Passphrase Timestamp" meta data annotation.

See Also:
Constant Field Values

PROP_OLD_VERSION

public static final java.lang.String PROP_OLD_VERSION
Deprecated. Moved to meta data properties, name of MetaData.PROP_VERSION_PREVIOUS

Name of an "Old Version" meta data annotation.

See Also:
Constant Field Values

PROP_DELETE_OLD_VERSION

public static final java.lang.String PROP_DELETE_OLD_VERSION
Deprecated. No longer in use.

Name of a "Delete Old Version" meta data annotation.

See Also:
Constant Field Values

PROP_NEW_VERSION

public static final java.lang.String PROP_NEW_VERSION
Deprecated. Moved to meta data properties, name of MetaData.PROP_VERSION_NEXT

Name of a "New Version" meta data annotation.

See Also:
Constant Field Values

PROP_DELETE_NEW_VERSION

public static final java.lang.String PROP_DELETE_NEW_VERSION
Deprecated. No longer in use.

Name of a "Delete New Version" meta data annotation.

See Also:
Constant Field Values

PROJECT_ANNOTATED_MDA

public static final java.lang.String PROJECT_ANNOTATED_MDA
Deprecated. No longer in use.

Meta-data annotation name flagging that project has been annotated.

See Also:
Constant Field Values

IS_PEAKLIST_MDA

public static final java.lang.String IS_PEAKLIST_MDA
Deprecated. Move to usage location.

Meta-data annotation name flagging that file is a peaklist.

See Also:
Constant Field Values

IS_OUT_MDA

public static final java.lang.String IS_OUT_MDA
Deprecated. Move to usage location.

Meta-data annotation name for an output file annotation.

See Also:
Constant Field Values

SEQUEST_OUT_MDVALUE

public static final java.lang.String SEQUEST_OUT_MDVALUE
Deprecated. Move to usage location.

Meta-data annotation value for sequest output file.

See Also:
Constant Field Values

PKL_IS_XTANDEM

public static final java.lang.String PKL_IS_XTANDEM
Deprecated. Move to usage location.

Meta-data annotation value flagging a peaklist as XTandem.

See Also:
Constant Field Values

SHARE_META_DATA_IF_ENCRYPTED_ANNOTATION

public static final MetaDataAnnotation SHARE_META_DATA_IF_ENCRYPTED_ANNOTATION
Deprecated. Moved to meta data properties, name of MetaData.PROP_SHARE_INFO_IF_ENCRYPTED

Annotation used with encrypted projects if user permits sharing meta data while encrypted.


DELIMITER

public static final java.lang.String DELIMITER

The delimiter between the name and value for the annotation.

See Also:
Constant Field Values
Constructor Detail

MetaDataAnnotation

public MetaDataAnnotation(java.lang.String name,
                          java.lang.String value)
Parameters:
name -
value -

MetaDataAnnotation

public MetaDataAnnotation(java.lang.String value)
Parameters:
value -
Method Detail

getValue

public final java.lang.String getValue()

Returns the value.

Returns:

setValue

public final void setValue(java.lang.String value)

Sets the value.

Parameters:
value -

getName

public final java.lang.String getName()

Returns the name.

Returns:

setName

public final void setName(java.lang.String name)

Sets the name.

Parameters:
name -

toString

public java.lang.String toString()

Returns the string representation.

Overrides:
toString in class java.lang.Object
Returns:

createFromString

public static final MetaDataAnnotation createFromString(java.lang.String string)

Create from a string.

Parameters:
string -
Returns:

equals

public boolean equals(java.lang.Object o)

Compare two meta data annotation objects.

Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:


This code is free for use both commercially and non-commercially as stated in the project's license