gov.nist.microanalysis.EPQLibrary
Class SpectrumProperties.PropertyId

java.lang.Object
  extended by gov.nist.microanalysis.EPQLibrary.SpectrumProperties.PropertyId
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
SpectrumProperties

public static class SpectrumProperties.PropertyId
extends java.lang.Object
implements java.lang.Comparable

Represents a tag by which individual properties can be identified.


Constructor Summary
SpectrumProperties.PropertyId(SpectrumProperties.PropertyId base, int index)
           
SpectrumProperties.PropertyId(java.lang.String name, java.lang.Class type)
           
SpectrumProperties.PropertyId(java.lang.String name, java.lang.String unit, java.lang.Class type)
           
SpectrumProperties.PropertyId(java.lang.String name, java.lang.String unit, java.lang.String fmtStr)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getFormatString()
           
 java.lang.String getName()
          getName - Gets the name of this property.
 int getPropertyType()
          getPropertyType - Returns an integer index (one of Numeric, Timestamp, Boolean, ImageType, Textual or Unknown) to represent the type of item stored in a property identified with this PropertyId.
 java.lang.String getUnits()
          getUnits - Get the type of units associated with an item of this PropertyId.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpectrumProperties.PropertyId

public SpectrumProperties.PropertyId(java.lang.String name,
                                     java.lang.String unit,
                                     java.lang.Class type)

SpectrumProperties.PropertyId

public SpectrumProperties.PropertyId(java.lang.String name,
                                     java.lang.String unit,
                                     java.lang.String fmtStr)

SpectrumProperties.PropertyId

public SpectrumProperties.PropertyId(java.lang.String name,
                                     java.lang.Class type)

SpectrumProperties.PropertyId

public SpectrumProperties.PropertyId(SpectrumProperties.PropertyId base,
                                     int index)
Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getName

public java.lang.String getName()
getName - Gets the name of this property.

Returns:
String

getUnits

public java.lang.String getUnits()
getUnits - Get the type of units associated with an item of this PropertyId.

Returns:
String

getPropertyType

public int getPropertyType()
getPropertyType - Returns an integer index (one of Numeric, Timestamp, Boolean, ImageType, Textual or Unknown) to represent the type of item stored in a property identified with this PropertyId.

Returns:
int

getFormatString

public java.lang.String getFormatString()