org.graffiti.plugins.ios.gml.gmlWriter.gmlAttribute
Class GmlAttributeHierarchy

java.lang.Object
  extended by org.graffiti.plugins.ios.gml.gmlWriter.gmlAttribute.GmlAttributeHierarchy

public class GmlAttributeHierarchy
extends Object

Class GmlAttributeHierarchy is used as an intermediate representation of the hierarchy to be saved in GML style.

Author:
ruediger

Constructor Summary
GmlAttributeHierarchy(int offset)
          Constructs a new GmlAttributeHierarchy for a given level of indentation.
 
Method Summary
 void add(String gmlPath, GmlAttributeValue value)
          Adds a an attribute represented as a String to the hierarchy according to its path.
 void addLevel(String path)
          Adds missing levels for the specified path to the hierarchy.
 void printGML(OutputStream os, int indent)
          Prints the attribute hierarchy to a given output stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GmlAttributeHierarchy

public GmlAttributeHierarchy(int offset)
Constructs a new GmlAttributeHierarchy for a given level of indentation.

Parameters:
offset - the level of indentation to be used.
Method Detail

add

public void add(String gmlPath,
                GmlAttributeValue value)
Adds a an attribute represented as a String to the hierarchy according to its path.

Parameters:
gmlPath - the path in GML representation.
value - the value of the Attribute.

addLevel

public void addLevel(String path)
Adds missing levels for the specified path to the hierarchy.

Parameters:
path - the path for which to establish the hierarchy if necessary.

printGML

public void printGML(OutputStream os,
                     int indent)
              throws IOException
Prints the attribute hierarchy to a given output stream.

Parameters:
os - the output stream to which to write the hierarchy.
indent - the offset to be used initially.
Throws:
IOException - if something fails while writing the hierarchy to the output stream.


Generated at 2012-05-30 11:01:25 PM CEST