|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.jmzidml.xml.io.MzIdentMLUnmarshaller
public class MzIdentMLUnmarshaller
Constructor Summary | |
---|---|
MzIdentMLUnmarshaller(File mzIdentMLFile)
|
|
MzIdentMLUnmarshaller(File mzIdentMLFile,
MzIdentMLObjectCache cache)
Deprecated. |
|
MzIdentMLUnmarshaller(MzIdentMLIndexer indexer)
|
|
MzIdentMLUnmarshaller(URL mzIdentMLFileURL)
|
|
MzIdentMLUnmarshaller(URL mzIdentMLFileURL,
MzIdentMLObjectCache cache)
Deprecated. |
Method Summary | ||
---|---|---|
Map<String,String> |
getElementAttributes(String id,
Class clazz)
Method to retrieve attribute name-value pairs for a XML element defined by it's id and Class. |
|
Set<String> |
getIDsForElement(MzIdentMLElement element)
Depends on the element being indexed and ID mapped. |
|
String |
getMzIdentMLId()
|
|
String |
getMzIdentMLName()
|
|
String |
getMzIdentMLVersion()
|
|
int |
getObjectCountForXpath(String xpath)
|
|
|
unmarshal(Class<T> clazz)
Unmarshal one object for the specified class. |
|
|
unmarshal(Class<T> clazz,
String id)
|
|
|
unmarshal(MzIdentMLElement element)
Unmarshals one element of the type defined by the MzIdentMLElement. |
|
|
unmarshal(String xpath)
|
|
|
unmarshalCollectionFromXpath(MzIdentMLElement element)
|
|
|
unmarshall(Class<T> clazz,
String id)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MzIdentMLUnmarshaller(URL mzIdentMLFileURL)
public MzIdentMLUnmarshaller(File mzIdentMLFile)
public MzIdentMLUnmarshaller(MzIdentMLIndexer indexer)
@Deprecated public MzIdentMLUnmarshaller(URL mzIdentMLFileURL, MzIdentMLObjectCache cache)
@Deprecated public MzIdentMLUnmarshaller(File mzIdentMLFile, MzIdentMLObjectCache cache)
Method Detail |
---|
public String getMzIdentMLVersion()
public String getMzIdentMLId()
public String getMzIdentMLName()
public Map<String,String> getElementAttributes(String id, Class clazz)
id
- the value of the 'id' attribute of the XML element.clazz
- the Class representing the XML element.
public int getObjectCountForXpath(String xpath)
xpath
- the xpath defining the XML element.
MzIdentMLIndexer.getCount(String)
public <T extends MzIdentMLObject> T unmarshal(Class<T> clazz)
clazz
- the type of Object to sub-class. It has to be a sub-class of MzIdentMLObject.
unmarshal(uk.ac.ebi.jmzidml.MzIdentMLElement)
public <T extends MzIdentMLObject> T unmarshal(String xpath)
public <T extends MzIdentMLObject> T unmarshal(MzIdentMLElement element)
element
- The MzIdentMLElement defining the type of element to unmarshal.
unmarshalCollectionFromXpath(uk.ac.ebi.jmzidml.MzIdentMLElement)
public <T extends MzIdentMLObject> Iterator<T> unmarshalCollectionFromXpath(MzIdentMLElement element)
public Set<String> getIDsForElement(MzIdentMLElement element) throws ConfigurationException
element
- the element for which to get the IDs.
ConfigurationException
MzIdentMLElement
@Deprecated public <T extends MzIdentMLObject> T unmarshall(Class<T> clazz, String id) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public <T extends MzIdentMLObject> T unmarshal(Class<T> clazz, String id) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |