Package ome.util
Class LSID
- java.lang.Object
-
- ome.util.LSID
-
public class LSID extends java.lang.Object
This class represents an LSID as used by the OME-XML data model.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int[]
getIndexes()
Returns the indexes for this LSID within the OME-XML data model.java.lang.Class
getJavaClass()
Returns the Java class which qualifies the type of object this LSID represents.int
hashCode()
int[]
parseIndexes()
Attempts to parse and return the indexes for the LSID parsed from the LSID's string representation.java.lang.Class
parseJavaClass()
Attempts to parse and return the concrete Java class for the LSID from the LSID's string representation.java.lang.String
toString()
-
-
-
Constructor Detail
-
LSID
public LSID(java.lang.Class klass, int... indexes)
Default constructor.- Parameters:
klass
- Concrete Java class which qualifies the type of object this LSID represents.indexes
- Indexes for this LSID within the OME-XML data model.
-
LSID
public LSID(java.lang.String asString)
Constructor for non-standard LSIDs.- Parameters:
asString
- The LSID as a string.
-
LSID
public LSID(java.lang.String asString, boolean parse)
Constructor for standard LSIDs that should be parsed.- Parameters:
asString
- The LSID as a string.parse
- Whether or not to parse the LSID.
-
-
Method Detail
-
getJavaClass
public java.lang.Class getJavaClass()
Returns the Java class which qualifies the type of object this LSID represents.- Returns:
- See above.
-
parseJavaClass
public java.lang.Class parseJavaClass()
Attempts to parse and return the concrete Java class for the LSID from the LSID's string representation.- Returns:
- See above.
null
if the concrete class cannot be parsed.
-
parseIndexes
public int[] parseIndexes()
Attempts to parse and return the indexes for the LSID parsed from the LSID's string representation.- Returns:
- See above.
-
getIndexes
public int[] getIndexes()
Returns the indexes for this LSID within the OME-XML data model.- Returns:
- See above.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-