Class InterfaceShapeXMLHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
mgui.io.domestic.shapes.xml.InterfaceShapeXMLHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class InterfaceShapeXMLHandler
extends org.xml.sax.helpers.DefaultHandler
XML handler for an InterfaceShape object.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected AttributeXMLHandler attribute_handler  
    protected java.lang.StringBuilder current_shape_string  
    protected XMLObject.XMLType current_type  
    protected XMLObject.XMLType current_xml_type  
    protected boolean is_vertex_data  
    protected java.lang.String root_dir  
    protected InterfaceShape shape  
  • Constructor Summary

    Constructors
    Constructor Description
    InterfaceShapeXMLHandler()
    Empty constructor; shape must be set
    InterfaceShapeXMLHandler​(InterfaceShape shape)
    Construct with a shape.
  • Method Summary

    Modifier and Type Method Description
    void characters​(char[] ch, int start, int length)  
    void endElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName)  
    java.lang.String getRootDir()  
    InterfaceShape getShape()  
    void setRootDir​(java.lang.String dir)  
    void startElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)  

    Methods inherited from class org.xml.sax.helpers.DefaultHandler

    endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.xml.sax.ContentHandler

    declaration
  • Field Details

    • shape

      protected InterfaceShape shape
    • attribute_handler

      protected AttributeXMLHandler attribute_handler
    • current_shape_string

      protected java.lang.StringBuilder current_shape_string
    • current_xml_type

      protected XMLObject.XMLType current_xml_type
    • root_dir

      protected java.lang.String root_dir
    • is_vertex_data

      protected boolean is_vertex_data
    • current_type

      protected XMLObject.XMLType current_type
  • Constructor Details

    • InterfaceShapeXMLHandler

      public InterfaceShapeXMLHandler()
      Empty constructor; shape must be set
    • InterfaceShapeXMLHandler

      public InterfaceShapeXMLHandler​(InterfaceShape shape)
      Construct with a shape.
      Parameters:
      shape -
  • Method Details

    • setRootDir

      public void setRootDir​(java.lang.String dir)
    • getRootDir

      public java.lang.String getRootDir()
    • getShape

      public InterfaceShape getShape()
    • startElement

      public void startElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
      Specified by:
      startElement in interface org.xml.sax.ContentHandler
      Overrides:
      startElement in class org.xml.sax.helpers.DefaultHandler
      Throws:
      org.xml.sax.SAXException
    • endElement

      public void endElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
      Specified by:
      endElement in interface org.xml.sax.ContentHandler
      Overrides:
      endElement in class org.xml.sax.helpers.DefaultHandler
      Throws:
      org.xml.sax.SAXException
    • characters

      public void characters​(char[] ch, int start, int length) throws org.xml.sax.SAXException
      Specified by:
      characters in interface org.xml.sax.ContentHandler
      Overrides:
      characters in class org.xml.sax.helpers.DefaultHandler
      Throws:
      org.xml.sax.SAXException