Project Wonder 5.0

er.attachment.metadata
Class ERMetadataEntry

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

public class ERMetadataEntry
extends java.lang.Object

ERMetadataEntry represents a single entry in a metadata directory.

Author:
mschrag

Constructor Summary
ERMetadataEntry(int type, java.lang.String name, java.lang.Object value, java.lang.Class dataType)
          Constructs a new ERMetadataEntry.
 
Method Summary
 java.lang.Class getDataType()
          Returns the data type of the entry.
 int getIntValue(boolean firstWord)
          Returns the int value of the entry.
 java.lang.String getName()
          Returns the directory-specific name for the entry.
 java.lang.String getStringValue()
          Returns the string value of the entry.
 int getType()
          Returns the directory-specific identifier for the entry.
 java.lang.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)
           
 java.lang.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,
                       java.lang.String name,
                       java.lang.Object value,
                       java.lang.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 java.lang.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 java.lang.String getName()
Returns the directory-specific name for the entry.

Returns:
the directory-specific name for the entry

getValue

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

Returns:
the value of the entry

getStringValue

public java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

isValid

public static boolean isValid(ERMetadataEntry entry)

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.