Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.data.readers
Class MetadataParser

java.lang.Object
  extended by cytoscape.data.readers.MetadataParser

public class MetadataParser
extends Object

Manipulates network metadata for loading and saving.

Author:
kono

Field Summary
static String DEFAULT_NETWORK_METADATA_LABEL
           
 
Constructor Summary
MetadataParser(CyNetwork network)
          Constructor.
MetadataParser(CyNetwork network, String metadataLabel)
          Constructor.
 
Method Summary
 Map getMetadataMap()
          Get Network Metadata as Map object
 Map<String,String> makeNewMetadataMap()
          Build new metadata RDF structure based on given network information.
 void setMetadata(MetadataEntries entryName, String value)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NETWORK_METADATA_LABEL

public static final String DEFAULT_NETWORK_METADATA_LABEL
See Also:
Constant Field Values
Constructor Detail

MetadataParser

public MetadataParser(CyNetwork network)
Constructor.

Parameters:
network - Target network for editing metadata.

MetadataParser

public MetadataParser(CyNetwork network,
                      String metadataLabel)
Constructor.

Parameters:
network - Target network
metadataLabel - Label used as a tag for this attribute.
Method Detail

makeNewMetadataMap

public Map<String,String> makeNewMetadataMap()
Build new metadata RDF structure based on given network information. Data items in "defaultLabels" will be created and inserted into RDF structure.


getMetadataMap

public Map getMetadataMap()
Get Network Metadata as Map object

Returns:
Throws:
URISyntaxException

setMetadata

public void setMetadata(MetadataEntries entryName,
                        String value)
DOCUMENT ME!

Parameters:
entryName - DOCUMENT ME!
value - DOCUMENT ME!

www.cytoscape.org