org.tigris.gef.xml.pgml
Class PGMLParser

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.tigris.gef.xml.pgml.PGMLParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

Deprecated. use org.tigris.gef.persistence.pgml.PgmlParser

public class PGMLParser
extends org.xml.sax.helpers.DefaultHandler


Field Summary
protected  org.tigris.gef.presentation.FigEdge _currentEdge
          Deprecated.  
protected  org.tigris.gef.presentation.Fig _currentEncloser
          Deprecated.  
protected  org.tigris.gef.presentation.FigLine _currentLine
          Deprecated.  
protected  org.tigris.gef.presentation.FigNode _currentNode
          Deprecated.  
protected  org.tigris.gef.presentation.FigPoly _currentPoly
          Deprecated.  
protected  Diagram _diagram
          Deprecated.  
protected  int _elementState
          Deprecated.  
protected  java.util.HashMap _figRegistry
          Deprecated.  
protected  int _nestedGroups
          Deprecated.  
protected  java.util.Map _ownerRegistry
          Deprecated. Model elements indexed by a UUID.
protected  java.lang.StringBuffer _textBuf
          Deprecated.  
protected  int _x1Int
          Deprecated.  
protected  int _y1Int
          Deprecated.  
protected static int ANNOTATION_EDGE_STATE
          Deprecated.  
protected static int ANNOTATION_STATE
          Deprecated.  
protected static int DEFAULT_EDGE_STATE
          Deprecated.  
protected static int DEFAULT_NODE_STATE
          Deprecated.  
protected static int DEFAULT_STATE
          Deprecated.  
protected static int EDGE_STATE
          Deprecated.  
protected static int LINE_STATE
          Deprecated.  
protected static int NODE_STATE
          Deprecated.  
protected static int POLY_EDGE_STATE
          Deprecated.  
protected static int POLY_NODE_STATE
          Deprecated.  
protected static int POLY_STATE
          Deprecated.  
protected static int PRIVATE_EDGE_STATE
          Deprecated.  
protected static int PRIVATE_NODE_STATE
          Deprecated.  
protected static int PRIVATE_STATE
          Deprecated.  
protected  java.lang.String systemId
          Deprecated.  
protected static int TEXT_ANNOTATION_STATE
          Deprecated.  
protected static int TEXT_EDGE_STATE
          Deprecated.  
protected static int TEXT_NODE_STATE
          Deprecated.  
protected static int TEXT_STATE
          Deprecated.  
 
Constructor Summary
PGMLParser(java.util.Map modelElementsByUuid)
          Deprecated.  
 
Method Summary
 void annotationStateStartElement(java.lang.String tagName, org.xml.sax.Attributes attrList)
          Deprecated.  
 void characters(char[] ch, int start, int length)
          Deprecated.  
protected  void edgeStateStartElement(java.lang.String tagName, org.xml.sax.Attributes attrList)
          Deprecated.  
 void endElement(java.lang.String uri, java.lang.String localname, java.lang.String elementName)
          Deprecated.  
protected  org.tigris.gef.presentation.Fig findFig(java.lang.String uri)
          Deprecated.  
protected  java.lang.Object findOwner(java.lang.String uri)
          Deprecated.  
protected  java.lang.String[] getEntityPaths()
          Deprecated.  
protected  GraphModel getGraphModelFor(java.lang.String desc)
          Deprecated.  
 java.lang.String getSystemId()
          Deprecated.  
protected  org.tigris.gef.presentation.FigCircle handleEllipse(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.Fig handleGroup(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.FigLine handleLine(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.FigPoly handlePath(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  void handlePGML(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.Fig handlePolyLine(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.FigRect handleRect(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  org.tigris.gef.presentation.FigText handleText(org.xml.sax.Attributes attrList)
          Deprecated.  
protected  void initDiagram(java.lang.String diagDescr)
          Deprecated.  
protected  void lineStateStartElement(java.lang.String tagName, org.xml.sax.Attributes attrList)
          Deprecated.  
protected  void nodeStateStartElement(java.lang.String tagName, org.xml.sax.Attributes attrList)
          Deprecated.  
protected  void polyStateStartElement(java.lang.String tagName, org.xml.sax.Attributes attrList)
          Deprecated.  
protected  void privateStateEndElement(java.lang.String tagName)
          Deprecated.  
 Diagram readDiagram(java.io.InputStream is)
          Deprecated.  
 Diagram readDiagram(java.io.InputStream is, boolean closeStream)
          Deprecated.  
 Diagram readDiagram(java.net.URL url)
          Deprecated.  
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Deprecated.  
protected  void rollbackAdd(org.tigris.gef.presentation.Fig currentFig)
          Deprecated.  
protected  void setAttrs(org.tigris.gef.presentation.Fig f, org.xml.sax.Attributes attrList)
          Deprecated.  
protected  void setOwnerAttr(org.tigris.gef.presentation.Fig f, org.xml.sax.Attributes attrList)
          Deprecated.  
 void setSystemId(java.lang.String id)
          Deprecated.  
 void startElement(java.lang.String uri, java.lang.String localname, java.lang.String elementName, org.xml.sax.Attributes atts)
          Deprecated.  
protected  java.lang.String translateClassName(java.lang.String oldName)
          Deprecated.  
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_diagram

protected Diagram _diagram
Deprecated. 

_nestedGroups

protected int _nestedGroups
Deprecated. 

_figRegistry

protected java.util.HashMap _figRegistry
Deprecated. 

_ownerRegistry

protected java.util.Map _ownerRegistry
Deprecated. 
Model elements indexed by a UUID.


systemId

protected java.lang.String systemId
Deprecated. 

_elementState

protected int _elementState
Deprecated. 

DEFAULT_STATE

protected static final int DEFAULT_STATE
Deprecated. 
See Also:
Constant Field Values

TEXT_STATE

protected static final int TEXT_STATE
Deprecated. 
See Also:
Constant Field Values

LINE_STATE

protected static final int LINE_STATE
Deprecated. 
See Also:
Constant Field Values

POLY_STATE

protected static final int POLY_STATE
Deprecated. 
See Also:
Constant Field Values

NODE_STATE

protected static final int NODE_STATE
Deprecated. 
See Also:
Constant Field Values

EDGE_STATE

protected static final int EDGE_STATE
Deprecated. 
See Also:
Constant Field Values

PRIVATE_STATE

protected static final int PRIVATE_STATE
Deprecated. 
See Also:
Constant Field Values

ANNOTATION_STATE

protected static final int ANNOTATION_STATE
Deprecated. 
See Also:
Constant Field Values

PRIVATE_NODE_STATE

protected static final int PRIVATE_NODE_STATE
Deprecated. 
See Also:
Constant Field Values

PRIVATE_EDGE_STATE

protected static final int PRIVATE_EDGE_STATE
Deprecated. 
See Also:
Constant Field Values

ANNOTATION_EDGE_STATE

protected static final int ANNOTATION_EDGE_STATE
Deprecated. 
See Also:
Constant Field Values

TEXT_NODE_STATE

protected static final int TEXT_NODE_STATE
Deprecated. 
See Also:
Constant Field Values

TEXT_EDGE_STATE

protected static final int TEXT_EDGE_STATE
Deprecated. 
See Also:
Constant Field Values

TEXT_ANNOTATION_STATE

protected static final int TEXT_ANNOTATION_STATE
Deprecated. 
See Also:
Constant Field Values

POLY_EDGE_STATE

protected static final int POLY_EDGE_STATE
Deprecated. 
See Also:
Constant Field Values

POLY_NODE_STATE

protected static final int POLY_NODE_STATE
Deprecated. 
See Also:
Constant Field Values

DEFAULT_NODE_STATE

protected static final int DEFAULT_NODE_STATE
Deprecated. 
See Also:
Constant Field Values

DEFAULT_EDGE_STATE

protected static final int DEFAULT_EDGE_STATE
Deprecated. 
See Also:
Constant Field Values

_currentLine

protected org.tigris.gef.presentation.FigLine _currentLine
Deprecated. 

_x1Int

protected int _x1Int
Deprecated. 

_y1Int

protected int _y1Int
Deprecated. 

_textBuf

protected java.lang.StringBuffer _textBuf
Deprecated. 

_currentPoly

protected org.tigris.gef.presentation.FigPoly _currentPoly
Deprecated. 

_currentNode

protected org.tigris.gef.presentation.FigNode _currentNode
Deprecated. 

_currentEncloser

protected org.tigris.gef.presentation.Fig _currentEncloser
Deprecated. 

_currentEdge

protected org.tigris.gef.presentation.FigEdge _currentEdge
Deprecated. 
Constructor Detail

PGMLParser

public PGMLParser(java.util.Map modelElementsByUuid)
Deprecated. 
Method Detail

readDiagram

public Diagram readDiagram(java.net.URL url)
                    throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

readDiagram

public Diagram readDiagram(java.io.InputStream is)
                    throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

readDiagram

public Diagram readDiagram(java.io.InputStream is,
                           boolean closeStream)
                    throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

initDiagram

protected void initDiagram(java.lang.String diagDescr)
                    throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localname,
                         java.lang.String elementName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localname,
                       java.lang.String elementName)
                throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
Deprecated. 

handlePGML

protected void handlePGML(org.xml.sax.Attributes attrList)
                   throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

handlePolyLine

protected org.tigris.gef.presentation.Fig handlePolyLine(org.xml.sax.Attributes attrList)
                                                  throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

handleLine

protected org.tigris.gef.presentation.FigLine handleLine(org.xml.sax.Attributes attrList)
                                                  throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

lineStateStartElement

protected void lineStateStartElement(java.lang.String tagName,
                                     org.xml.sax.Attributes attrList)
Deprecated. 

handleEllipse

protected org.tigris.gef.presentation.FigCircle handleEllipse(org.xml.sax.Attributes attrList)
                                                       throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

handleRect

protected org.tigris.gef.presentation.FigRect handleRect(org.xml.sax.Attributes attrList)
                                                  throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

handleText

protected org.tigris.gef.presentation.FigText handleText(org.xml.sax.Attributes attrList)
                                                  throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

handlePath

protected org.tigris.gef.presentation.FigPoly handlePath(org.xml.sax.Attributes attrList)
                                                  throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

polyStateStartElement

protected void polyStateStartElement(java.lang.String tagName,
                                     org.xml.sax.Attributes attrList)
Deprecated. 

handleGroup

protected org.tigris.gef.presentation.Fig handleGroup(org.xml.sax.Attributes attrList)
                                               throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

privateStateEndElement

protected void privateStateEndElement(java.lang.String tagName)
                               throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

nodeStateStartElement

protected void nodeStateStartElement(java.lang.String tagName,
                                     org.xml.sax.Attributes attrList)
                              throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

edgeStateStartElement

protected void edgeStateStartElement(java.lang.String tagName,
                                     org.xml.sax.Attributes attrList)
                              throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

annotationStateStartElement

public void annotationStateStartElement(java.lang.String tagName,
                                        org.xml.sax.Attributes attrList)
                                 throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

setAttrs

protected void setAttrs(org.tigris.gef.presentation.Fig f,
                        org.xml.sax.Attributes attrList)
                 throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

setOwnerAttr

protected void setOwnerAttr(org.tigris.gef.presentation.Fig f,
                            org.xml.sax.Attributes attrList)
                     throws org.xml.sax.SAXException
Deprecated. 
Throws:
org.xml.sax.SAXException

findOwner

protected java.lang.Object findOwner(java.lang.String uri)
Deprecated. 

findFig

protected org.tigris.gef.presentation.Fig findFig(java.lang.String uri)
Deprecated. 

getGraphModelFor

protected GraphModel getGraphModelFor(java.lang.String desc)
Deprecated. 

translateClassName

protected java.lang.String translateClassName(java.lang.String oldName)
Deprecated. 

getEntityPaths

protected java.lang.String[] getEntityPaths()
Deprecated. 

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
Deprecated. 

setSystemId

public void setSystemId(java.lang.String id)
Deprecated. 

getSystemId

public java.lang.String getSystemId()
Deprecated. 

rollbackAdd

protected void rollbackAdd(org.tigris.gef.presentation.Fig currentFig)
Deprecated.