ecologylab.xml.library.kml.geometry
Class Geometry

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.xml.ElementState
          extended by ecologylab.xml.library.kml.KmlObject
              extended by ecologylab.xml.library.kml.geometry.Geometry
All Implemented Interfaces:
OptimizationTypes, XMLTranslationExceptionTypes
Direct Known Subclasses:
LineString, Point

public abstract class Geometry
extends KmlObject

Author:
Zach

Nested Class Summary
 
Nested classes/interfaces inherited from class ecologylab.xml.ElementState
ElementState.ClassToCollectionMap, ElementState.DeclarationStyle, ElementState.xml_attribute, ElementState.xml_class, ElementState.xml_classes, ElementState.xml_collection, ElementState.xml_leaf, ElementState.xml_map, ElementState.xml_nested, ElementState.xml_tag
 
Field Summary
protected  Coordinates coordinates
           
 
Fields inherited from class ecologylab.xml.ElementState
CDATA, ESTIMATE_CHARS_PER_FIELD, FLOATING_PRECISION_OFF, MARSHALLING_PARAMS, NORMAL, UTF16, UTF16_LE, UTF8, XML_FILE_HEADER
 
Fields inherited from interface ecologylab.xml.OptimizationTypes
BAD_FIELD, COLLECTION_ELEMENT, COLLECTION_SCALAR, IGNORED_ATTRIBUTE, IGNORED_ELEMENT, LEAF_NODE_VALUE, MAP_ELEMENT, MAP_SCALAR, NAME_SPACE_ATTRIBUTE, NAME_SPACE_LEAF_NODE, NAME_SPACE_MASK, NAME_SPACE_NESTED_ELEMENT, NAMESPACE_IGNORED_ELEMENT, NAMESPACE_TRIAL_ELEMENT, OTHER_NESTED_ELEMENT, REGULAR_ATTRIBUTE, REGULAR_NESTED_ELEMENT, ROOT, UNSET_TYPE, XMLNS_ATTRIBUTE, XMLNS_IGNORED
 
Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN
 
Constructor Summary
Geometry()
           
 
Method Summary
 Coordinates getCoordinates()
           
protected  void postTranslationProcessingHook()
          Perform custom processing immediately after all translation from XML is completed.
protected  void preTranslationProcessingHook()
          Perform custom processing immediately before translating this to XML.
 void setCoordinates(Coordinates coordinates)
           
 
Methods inherited from class ecologylab.xml.library.kml.KmlObject
getId
 
Methods inherited from class ecologylab.xml.ElementState
addNestedElement, addNestedElement, appendTextNodeString, buildDOM, buildDOM, buildDOM, buildDOM, buildDOM, buildDOMFromXMLCharSequence, buildDOMFromXMLString, checkAnnotation, convertNameStyles, createChildHook, fieldToXMLOptimizations, floatingPrecision, getCollection, getElementStateById, getMap, getNestedNameSpace, getTextNodeString, leafElementFieldNames, lookupNestedNameSpace, optimizations, parent, recycle, setDeclarationStyle, setFieldUsingTypeRegistry, setFloatingPrecision, setParent, setUseDOMForTranslateTo, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXMLCharSequence, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOMCharSequence, translateFromXMLDOMCharSequence, translateFromXMLRootNode, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateToDOM, translateToXML, translateToXML, translateToXML, translateToXML, writePrettyXML, writePrettyXML, writePrettyXML
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

coordinates

protected Coordinates coordinates
Constructor Detail

Geometry

public Geometry()
Method Detail

postTranslationProcessingHook

protected void postTranslationProcessingHook()
Description copied from class: ElementState
Perform custom processing immediately after all translation from XML is completed. This allows a newly-created ElementState object to perform any post processing with all the data it will have from XML.

This method is called by NodeToJavaOptimizations.createChildElement() or translateToXML depending on whether the element in question is a child or the top-level parent.

This, the default implementation, does nothing. Sub-classes may wish to override.

Overrides:
postTranslationProcessingHook in class ElementState

preTranslationProcessingHook

protected void preTranslationProcessingHook()
Description copied from class: ElementState
Perform custom processing immediately before translating this to XML.

This, the default implementation, does nothing. Sub-classes may wish to override.

Overrides:
preTranslationProcessingHook in class ElementState

setCoordinates

public void setCoordinates(Coordinates coordinates)

getCoordinates

public Coordinates getCoordinates()