Class AspectBinding


  • public final class AspectBinding
    extends java.lang.Object
    Routines for unmarshaling Aspect objects from XML.
    Author:
    Thomas Riley
    See Also:
    org.intermine.web.dataset.Aspect
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​Aspect> unmarhsal​(java.io.InputStream is)
      Read data set configuration from an input stream.
      static java.util.Map<java.lang.String,​Aspect> unmarshal​(java.io.Reader reader)
      Read in data set configuration from XML.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • unmarshal

        public static java.util.Map<java.lang.String,​Aspect> unmarshal​(java.io.Reader reader)
                                                                      throws java.io.IOException,
                                                                             org.xml.sax.SAXException
        Read in data set configuration from XML. The keys (set names) in the returned map are ordered to match the ordering in the XML file.
        Parameters:
        reader - data set xml reader
        Returns:
        Map from set name to Aspect object
        Throws:
        org.xml.sax.SAXException - if there is a problem parsing XML
        java.io.IOException - if there is a IO problem
      • unmarhsal

        public static java.util.Map<java.lang.String,​Aspect> unmarhsal​(java.io.InputStream is)
                                                                      throws java.io.IOException,
                                                                             org.xml.sax.SAXException
        Read data set configuration from an input stream.
        Parameters:
        is - an InputStream to the XML document
        Returns:
        Map from data set name to Aspect object
        Throws:
        org.xml.sax.SAXException - if there is a problem parsing XML
        java.io.IOException - if there is a IO problem
        See Also:
        unmarshal(Reader)