org.eclipse.emf.ecore.xmi.impl
Class XMIHandler

java.lang.Object
  extended byorg.eclipse.emf.ecore.xmi.impl.XMLHandler
      extended byorg.eclipse.emf.ecore.xmi.impl.XMIHandler
Direct Known Subclasses:
SAXXMIHandler

public abstract class XMIHandler
extends XMLHandler

This class is a SAX handler for creating MOF2 objects from an XMI 2.0 file.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.xmi.impl.XMLHandler
XMLHandler.ManyReference, XMLHandler.MyStack, XMLHandler.SingleReference
 
Field Summary
protected static String ID_ATTRIB
           
protected static String UUID_ATTRIB
           
protected static String VERSION_ATTRIB
           
protected static String XMI_ELEMENT_NAME
           
protected static String XMI_ELEMENT_TYPE
           
protected static String XMI_EXTENSION
           
protected static String XMI_TYPE_ATTRIB
           
protected static String XMI_UUID
           
 
Fields inherited from class org.eclipse.emf.ecore.xmi.impl.XMLHandler
anySimpleType, anyType, ARRAY_SIZE, capacity, contextFeature, DEBUG_DEMANDED_PACKAGES, disableNotify, DOCUMENT_ROOT_TYPE, elements, eObjectToExtensionMap, ERROR_TYPE, extendedMetaData, extent, forwardManyReferences, forwardSingleReferences, helper, hrefAttribute, idAttribute, identifiers, isIDREF, isSimpleFeature, mixedTargets, NIL_ATTRIB, NO_NAMESPACE_SCHEMA_LOCATION_ATTRIB, notFeatures, OBJECT_TYPE, objects, oldStyleProxyURIs, packageRegistry, positions, prefixesToFactories, recordUnknownFeature, REFERENCE_THRESHOLD, resolve, resourceSet, resourceURI, sameDocumentProxies, SCHEMA_LOCATION_ATTRIB, text, TYPE_ATTRIB, types, UNKNOWN_FEATURE_TYPE, urisToLocations, xmlMap, xmlResource, xmlSchemaTypePackage
 
Constructor Summary
XMIHandler(XMLResource xmiResource, XMLHelper helper, Map options)
          Constructor.
 
Method Summary
protected  void handleUnknownFeature(String prefix, String name, boolean isElement, EObject peekObject, String value)
           
protected  boolean isTextFeatureValue(Object type)
           
protected  void processElement(String name, String prefix, String localName)
           
 
Methods inherited from class org.eclipse.emf.ecore.xmi.impl.XMLHandler
characters, comment, createObject, createObjectByType, createObjectFromFactory, createObjectFromFeatureType, createObjectFromTypeName, createTopObject, endCDATA, endDocument, endElement, endPrefixMapping, error, fatalError, getColumnNumber, getExtension, getFactoryForPrefix, getFeature, getFeature, getLineNumber, getLocation, getPackageForURI, getURIConverter, getXMLEncoding, getXSIType, growArrays, handleCDATA, handleComment, handleFeature, handleForwardReferences, handleForwardReferences, handleMissingPackage, handleMixedText, handleNamespaceAttribs, handleObjectAttribs, handleProxy, handleTopLocations, handleXMLNSAttribute, handleXSINoNamespaceSchemaLocation, handleXSISchemaLocation, isError, isNull, processObject, processTopObject, recordUnknownFeature, reportUnknownFeature, setAttributes, setAttribValue, setExtendedMetaDataOption, setFeatureValue, setFeatureValue, setFeatureValues, setLocator, setValueFromId, startCDATA, startDocument, startDTD, startElement, startPrefixMapping, validateCreateObjectFromFactory, validateCreateObjectFromFactory, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XMI_ELEMENT_TYPE

protected static final String XMI_ELEMENT_TYPE
See Also:
Constant Field Values

XMI_UUID

protected static final String XMI_UUID
See Also:
Constant Field Values

XMI_EXTENSION

protected static final String XMI_EXTENSION
See Also:
Constant Field Values

XMI_TYPE_ATTRIB

protected static final String XMI_TYPE_ATTRIB
See Also:
Constant Field Values

ID_ATTRIB

protected static final String ID_ATTRIB
See Also:
Constant Field Values

VERSION_ATTRIB

protected static final String VERSION_ATTRIB
See Also:
Constant Field Values

UUID_ATTRIB

protected static final String UUID_ATTRIB
See Also:
Constant Field Values

XMI_ELEMENT_NAME

protected static final String XMI_ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

XMIHandler

public XMIHandler(XMLResource xmiResource,
                  XMLHelper helper,
                  Map options)
Constructor.

Method Detail

processElement

protected void processElement(String name,
                              String prefix,
                              String localName)
Overrides:
processElement in class XMLHandler

isTextFeatureValue

protected boolean isTextFeatureValue(Object type)
Overrides:
isTextFeatureValue in class XMLHandler

handleUnknownFeature

protected void handleUnknownFeature(String prefix,
                                    String name,
                                    boolean isElement,
                                    EObject peekObject,
                                    String value)
Overrides:
handleUnknownFeature in class XMLHandler

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.