edu.washington.biostr.sig.brainj3d.model
Class BrainInfoAtlasDecoder

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.data.decoder.BasicXMLDecoder
      extended by edu.washington.biostr.sig.brainj3d.model.BrainInfoAtlasDecoder
All Implemented Interfaces:
Decoder

public class BrainInfoAtlasDecoder
extends BasicXMLDecoder


Constructor Summary
BrainInfoAtlasDecoder()
           
 
Method Summary
 Class<? extends Data> getResultType()
          Return the class of the Data that will be returned by decode.
 Data interpret(Document document, String directory, FileGroup source)
          Interpret the document and return a new instance of LabelData.
protected  void parseArea(String directory, Element element, BrainInfoAtlasData bia)
          parse the Label tag and return a LabelClass
 
Methods inherited from class edu.washington.biostr.sig.brainj3d.data.decoder.BasicXMLDecoder
decode, decode, getNumberOfFiles, getSubText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrainInfoAtlasDecoder

public BrainInfoAtlasDecoder()
Method Detail

interpret

public Data interpret(Document document,
                      String directory,
                      FileGroup source)
Interpret the document and return a new instance of LabelData. The document must conform to the map.xml type.

Specified by:
interpret in class BasicXMLDecoder
Parameters:
document - The XML document to interpret
directory - The directory where the data is loaded from. Currently ignored.
Returns:
A new LabelData that represents the information in this file.

parseArea

protected void parseArea(String directory,
                         Element element,
                         BrainInfoAtlasData bia)
                  throws BadDataFile,
                         IOException
parse the Label tag and return a LabelClass

Parameters:
element -
att -
Throws:
BadDataFile
IOException

getResultType

public Class<? extends Data> getResultType()
Description copied from interface: Decoder
Return the class of the Data that will be returned by decode.

Returns:


Copyright © 2006 University of Washington. All Rights Reserved.