com.swfm.mica.view
Class MiModelIndentedTreeIOFormatManager

java.lang.Object
  extended bycom.swfm.mica.model.MiModelEntity
      extended bycom.swfm.mica.view.MiModelIndentedTreeIOFormatManager
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiModelEntity, MiiModelIOFormatManager, MiiModelTypes, MiiPropertyTypes

public class MiModelIndentedTreeIOFormatManager
extends MiModelEntity
implements MiiModelIOFormatManager

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
         
Constructor Summary
MiModelIndentedTreeIOFormatManager()
           
 
Method Summary
 MiiModelDocument load(java.io.InputStream inputStream, java.lang.String streamName)
          Creates, loads contents (the entities of type MiModelEntity) of, and returns a new MiiModelEntity from the given Stream.
 void save(MiiModelEntity document, java.io.OutputStream outputStream, java.lang.String header)
          Saves the contents (the entities of type MiModelEntity) of the given document to the given Stream.
 
Methods inherited from class com.swfm.mica.model.MiModelEntity
appendModelChangeHandler, appendModelEntity, appendModelRelation, appendPropertyChangeHandler, copy, copy, createModelEntity, createModelRelation, deepCopy, deepCopy, deleteSelf, dispatchModelChangeEvent, dispatchPropertyChange, dispatchPropertyChangeEvent, dump, dump, equals, equalsProperties, getChild, getChildren, getDefaultPropertyValue, getEditingPermissions, getIgnoreCase, getIndexOfModelEntity, getLocation, getModelChangeHandler, getModelEntities, getModelEntity, getModelEntity, getModelRelations, getName, getNumberOfModelChangeHandlers, getNumberOfModelEntities, getNumberOfPropertyChangeHandlers, getParent, getPropertiesAreOrdered, getPropertyChangeHandler, getPropertyDescriptions, getPropertyNames, getPropertyValue, getTitle, getType, getUserData, hasUserData, insertModelEntity, insertModelRelation, isObservedProperty, isToCopyEntitysRelationsWhenDeepCopyEntity, processAction, removeAllModelEntities, removeAllModelRelations, removeAllProperties, removeModelChangeHandler, removeModelEntity, removeModelRelation, removeProperty, removePropertyChangeHandler, removeSelf, replaceSelf, setIgnoreCase, setLocation, setModelChangeEventDispatchingEnabled, setName, setParent, setPropertiesAreOrdered, setPropertiesToDefaultValues, setPropertyChangeEventDispatchingEnabled, setPropertyDescriptions, setPropertyValue, setTitle, setToCopyEntitysRelationsWhenDeepCopyEntity, setType, toString, toString, validateModelEntity, validateModelRelation, validatePropertyValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.swfm.mica.model.MiiModelEntity
appendModelChangeHandler, appendModelEntity, appendModelRelation, appendPropertyChangeHandler, copy, copy, createModelEntity, createModelRelation, deepCopy, deepCopy, deleteSelf, equals, equalsProperties, getChild, getChildren, getEditingPermissions, getIgnoreCase, getIndexOfModelEntity, getLocation, getModelChangeHandler, getModelEntities, getModelEntity, getModelEntity, getModelRelations, getName, getNumberOfModelChangeHandlers, getNumberOfModelEntities, getNumberOfPropertyChangeHandlers, getParent, getPropertiesAreOrdered, getPropertyChangeHandler, getPropertyDescriptions, getPropertyNames, getPropertyValue, getTitle, getType, getUserData, hasUserData, insertModelEntity, insertModelRelation, removeAllModelEntities, removeAllModelRelations, removeAllProperties, removeModelChangeHandler, removeModelEntity, removeModelRelation, removeProperty, removePropertyChangeHandler, removeSelf, replaceSelf, setIgnoreCase, setLocation, setModelChangeEventDispatchingEnabled, setName, setParent, setPropertiesAreOrdered, setPropertyChangeEventDispatchingEnabled, setPropertyDescriptions, setPropertyValue, setTitle, setType, validateModelEntity, validateModelRelation, validatePropertyValue
 

Constructor Detail

MiModelIndentedTreeIOFormatManager

public MiModelIndentedTreeIOFormatManager()
Method Detail

load

public MiiModelDocument load(java.io.InputStream inputStream,
                             java.lang.String streamName)
                      throws java.io.IOException
Creates, loads contents (the entities of type MiModelEntity) of, and returns a new MiiModelEntity from the given Stream.

Specified by:
load in interface MiiModelIOFormatManager
Parameters:
inputStream - the source of the data from which the document contents will be built.
streamName - The name of the stream to be used for error messages
Returns:
the document
Throws:
java.io.IOException

save

public void save(MiiModelEntity document,
                 java.io.OutputStream outputStream,
                 java.lang.String header)
Saves the contents (the entities of type MiModelEntity) of the given document to the given Stream.

Specified by:
save in interface MiiModelIOFormatManager
Parameters:
document - The document to save
outputStream - the destination of the data built from the document contents.
header - The first line output that identifies the format of the data