Project Wonder 5.0

er.attachment.metadata
Class ERMetadataEntry

java.lang.Object
  extended by er.attachment.metadata.ERMetadataEntry

public class ERMetadataEntry
extends Object

ERMetadataEntry represents a single entry in a metadata directory.

Author:
mschrag

Constructor Summary
ERMetadataEntry(int type, String name, Object value, Class dataType)
          Constructs a new ERMetadataEntry.
 
Method Summary
 Class getDataType()
          Returns the data type of the entry.
 int getIntValue(boolean firstWord)
          Returns the int value of the entry.
 String getName()
          Returns the directory-specific name for the entry.
 String getStringValue()
          Returns the string value of the entry.
 int getType()
          Returns the directory-specific identifier for the entry.
 Object getValue()
          Returns the value of the entry.
 boolean isValid()
          Returns whether or not this metadata entry is valid (// MS ...
static boolean isValid(ERMetadataEntry entry)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERMetadataEntry

public ERMetadataEntry(int type,
                       String name,
                       Object value,
                       Class dataType)
Constructs a new ERMetadataEntry.

Parameters:
type - the directory-specific identifier for the entry
name - the directory-specific name of the entry
value - the value of the entry
dataType - the dataType of the entry
Method Detail

getDataType

public Class getDataType()
Returns the data type of the entry.

Returns:
the data type of the entry

getType

public int getType()
Returns the directory-specific identifier for the entry.

Returns:
the directory-specific identifier for the entry

getName

public String getName()
Returns the directory-specific name for the entry.

Returns:
the directory-specific name for the entry

getValue

public Object getValue()
Returns the value of the entry.

Returns:
the value of the entry

getStringValue

public String getStringValue()
Returns the string value of the entry.

Returns:
the string value of the entry

getIntValue

public int getIntValue(boolean firstWord)
Returns the int value of the entry.

Parameters:
firstWord - if true, only the first word is converted to an int
Returns:
the int value of the entry

isValid

public boolean isValid()
Returns whether or not this metadata entry is valid (// MS ... I think this is cruft leftover from the original impl).

Returns:
whether or not this metadata entry is valid

toString

public String toString()
Overrides:
toString in class Object

isValid

public static boolean isValid(ERMetadataEntry entry)

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.