Package ome.util
Class LSID
- java.lang.Object
-
- ome.util.LSID
-
public class LSID extends java.lang.ObjectThis 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 booleanequals(java.lang.Object obj)int[]getIndexes()Returns the indexes for this LSID within the OME-XML data model.java.lang.ClassgetJavaClass()Returns the Java class which qualifies the type of object this LSID represents.inthashCode()int[]parseIndexes()Attempts to parse and return the indexes for the LSID parsed from the LSID's string representation.java.lang.ClassparseJavaClass()Attempts to parse and return the concrete Java class for the LSID from the LSID's string representation.java.lang.StringtoString()
-
-
-
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.
nullif 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:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-