org.eclipse.emf.ecore.xmi_2.7.0.v20120127-1122

16:43:32.195 INFO  jd.cli.Main - Decompiling org.eclipse.emf.ecore.xmi_2.7.0.v20120127-1122.jar
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.ecore.EFactory;

public class ClassNotFoundException
  extends XMIException
{
  private static final long serialVersionUID = 1L;
  protected String className;
  protected transient EFactory factory;
  
  public ClassNotFoundException(String name, EFactory factory, String location, int line, int column)
  {
    super("Class '" + name + "' is not found or is abstract.", location, line, column);
    className = name;
    this.factory = factory;
  }
  
  public String getName()
  {
    return className;
  }
  
  public EFactory getFactory()
  {
    return factory;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.ClassNotFoundException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.w3c.dom.Node;

public abstract interface DOMHandler
{
  public abstract void recordValues(Node paramNode, EObject paramEObject, EStructuralFeature paramEStructuralFeature, Object paramObject);
  
  public abstract DOMHelper getDOMHelper();
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.DOMHandler
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.w3c.dom.Node;

public abstract interface DOMHelper
{
  public abstract EObject getContainer(Node paramNode);
  
  public abstract EStructuralFeature getEStructuralFeature(Node paramNode);
  
  public abstract Object getValue(Node paramNode);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.DOMHelper
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

public class DanglingHREFException
  extends XMIException
{
  private static final long serialVersionUID = 1L;
  
  public DanglingHREFException(String message, String location, int line, int column)
  {
    super(message, location, line, column);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.DanglingHREFException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.util.Collection;
import java.util.Map;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.util.ExtendedMetaData;

public abstract interface EcoreBuilder
{
  public abstract Collection<? extends Resource> generate(URI paramURI)
    throws Exception;
  
  public abstract Collection<? extends Resource> generate(Collection<URI> paramCollection)
    throws Exception;
  
  public abstract Collection<? extends Resource> generate(Map<String, URI> paramMap)
    throws Exception;
  
  public abstract void setExtendedMetaData(ExtendedMetaData paramExtendedMetaData);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.EcoreBuilder
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.ecore.EObject;

public class FeatureNotFoundException
  extends XMIException
{
  private static final long serialVersionUID = 1L;
  protected String featureName;
  protected transient EObject object;
  
  public FeatureNotFoundException(String name, EObject object, String location, int line, int column)
  {
    super("Feature '" + name + "' not found.", location, line, column);
    featureName = name;
    this.object = object;
  }
  
  public String getName()
  {
    return featureName;
  }
  
  public EObject getObject()
  {
    return object;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.FeatureNotFoundException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;

public class IllegalValueException
  extends XMIException
{
  private static final long serialVersionUID = 1L;
  protected transient EObject object;
  protected transient EStructuralFeature feature;
  protected transient Object value;
  
  public IllegalValueException(EObject object, EStructuralFeature feature, Object value, Exception emfException, String location, int line, int column)
  {
    super("Value '" + value + "' is not legal.", emfException, location, line, column);
    this.object = object;
    this.feature = feature;
    this.value = value;
  }
  
  public EObject getObject()
  {
    return object;
  }
  
  public EStructuralFeature getFeature()
  {
    return feature;
  }
  
  public Object getValue()
  {
    return value;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.IllegalValueException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

public abstract interface NameInfo
{
  public abstract String getLocalPart();
  
  public abstract void setLocalPart(String paramString);
  
  public abstract String getQualifiedName();
  
  public abstract void setQualifiedName(String paramString);
  
  public abstract String getNamespaceURI();
  
  public abstract void setNamespaceURI(String paramString);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.NameInfo
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

public class PackageNotFoundException
  extends XMIException
{
  private static final long serialVersionUID = 1L;
  protected String uri;
  
  public PackageNotFoundException(String uri, String location, int line, int column)
  {
    super("Package with uri '" + uri + "' not found.", location, line, column);
    this.uri = uri;
  }
  
  public String uri()
  {
    return uri;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.PackageNotFoundException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

public class UnresolvedReferenceException
  extends XMIException
{
  private static final long serialVersionUID = 1L;
  protected String reference;
  
  public UnresolvedReferenceException(String reference, String location, int line, int column)
  {
    super("Unresolved reference '" + reference + "'.", location, line, column);
    this.reference = reference;
  }
  
  public String getReference()
  {
    return reference;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.UnresolvedReferenceException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.ecore.resource.Resource.Diagnostic;

public class XMIException
  extends Exception
  implements Resource.Diagnostic
{
  private static final long serialVersionUID = 1L;
  protected String location;
  protected int line;
  protected int column;
  
  public XMIException(String message)
  {
    super(message);
  }
  
  public XMIException(Exception exception)
  {
    super(exception);
  }
  
  public XMIException(String message, Exception exception)
  {
    super(message, exception);
  }
  
  public XMIException(String message, String location, int line, int column)
  {
    super(message);
    this.location = location;
    this.line = line;
    this.column = column;
  }
  
  public XMIException(String message, Exception exception, String location, int line, int column)
  {
    super(message, exception);
    this.location = location;
    this.line = line;
    this.column = column;
  }
  
  public XMIException(Exception exception, String location, int line, int column)
  {
    super(exception);
    this.location = location;
    this.line = line;
    this.column = column;
  }
  
  public String getMessage()
  {
    String result = super.getMessage();
    if (line != 0) {
      result = result + " (" + location + ", " + line + ", " + column + ")";
    }
    return result;
  }
  
  public String getLocation()
  {
    return location;
  }
  
  public int getLine()
  {
    return line;
  }
  
  public int getColumn()
  {
    return column;
  }
  
  @Deprecated
  public Exception getWrappedException()
  {
    return (Exception)getCause();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMIException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.common.EMFPlugin.EclipsePlugin;

public class XMIPlugin$Implementation
  extends EMFPlugin.EclipsePlugin
{
  public XMIPlugin$Implementation()
  {
    XMIPlugin.access$0(this);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMIPlugin.Implementation
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.EMFPlugin.EclipsePlugin;
import org.eclipse.emf.common.util.ResourceLocator;

public final class XMIPlugin
  extends EMFPlugin
{
  public static final XMIPlugin INSTANCE = new XMIPlugin();
  private static Implementation plugin;
  
  private XMIPlugin()
  {
    super(new ResourceLocator[0]);
  }
  
  public ResourceLocator getPluginResourceLocator()
  {
    return plugin;
  }
  
  public static Implementation getPlugin()
  {
    return plugin;
  }
  
  public static class Implementation
    extends EMFPlugin.EclipsePlugin
  {
    public Implementation()
    {
      XMIPlugin.plugin = this;
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMIPlugin
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

public abstract interface XMIResource
  extends XMLResource
{
  public static final String OPTION_USE_XMI_TYPE = "USE_XMI_TYPE";
  public static final String OPTION_SUPPRESS_XMI = "SUPPRESS_XMI";
  public static final String VERSION_NAME = "version";
  public static final String VERSION_VALUE = "2.0";
  public static final String XMI_NAMESPACE_PREFIX = "http://schema.omg.org/spec/XMI/";
  public static final String XMI_NS = "xmi";
  public static final String XMI_ID = "id";
  public static final String XMI_TAG_NAME = "XMI";
  public static final String XMI_URI = "http://www.omg.org/XMI";
  
  public abstract String getXMIVersion();
  
  public abstract void setXMIVersion(String paramString);
  
  public abstract String getXMINamespace();
  
  public abstract void setXMINamespace(String paramString);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMIResource
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.util.Map;
import org.xml.sax.ContentHandler;
import org.xml.sax.DTDHandler;
import org.xml.sax.EntityResolver;
import org.xml.sax.ErrorHandler;
import org.xml.sax.ext.LexicalHandler;

public abstract interface XMLDefaultHandler
  extends ContentHandler, EntityResolver, DTDHandler, ErrorHandler, LexicalHandler
{
  public abstract void reset();
  
  public abstract void prepare(XMLResource paramXMLResource, XMLHelper paramXMLHelper, Map<?, ?> paramMap);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLDefaultHandler
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;

public abstract interface XMLHelper$ManyReference
{
  public abstract EObject getObject();
  
  public abstract EStructuralFeature getFeature();
  
  public abstract Object[] getValues();
  
  public abstract int[] getPositions();
  
  public abstract int getLineNumber();
  
  public abstract int getColumnNumber();
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLHelper.ManyReference
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.util.List;
import java.util.Map;
import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EFactory;
import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.ExtendedMetaData;

public abstract interface XMLHelper
{
  public static final int DATATYPE_SINGLE = 1;
  public static final int DATATYPE_IS_MANY = 2;
  public static final int IS_MANY_ADD = 3;
  public static final int IS_MANY_MOVE = 4;
  public static final int OTHER = 5;
  
  public abstract void setOptions(Map<?, ?> paramMap);
  
  public abstract void setNoNamespacePackage(EPackage paramEPackage);
  
  public abstract EPackage getNoNamespacePackage();
  
  public abstract void setAnySimpleType(EClass paramEClass);
  
  public abstract void setXMLMap(XMLResource.XMLMap paramXMLMap);
  
  public abstract XMLResource.XMLMap getXMLMap();
  
  public abstract void setExtendedMetaData(ExtendedMetaData paramExtendedMetaData);
  
  public abstract ExtendedMetaData getExtendedMetaData();
  
  public abstract XMLResource getResource();
  
  public abstract Object getValue(EObject paramEObject, EStructuralFeature paramEStructuralFeature);
  
  public abstract String getName(ENamedElement paramENamedElement);
  
  public abstract String getQName(EClass paramEClass);
  
  public abstract void populateNameInfo(NameInfo paramNameInfo, EClass paramEClass);
  
  public abstract String getQName(EDataType paramEDataType);
  
  public abstract void populateNameInfo(NameInfo paramNameInfo, EDataType paramEDataType);
  
  public abstract String getQName(EStructuralFeature paramEStructuralFeature);
  
  public abstract void populateNameInfo(NameInfo paramNameInfo, EStructuralFeature paramEStructuralFeature);
  
  public abstract String getPrefix(String paramString);
  
  public abstract String getPrefix(EPackage paramEPackage);
  
  public abstract String getNamespaceURI(String paramString);
  
  public abstract List<String> getPrefixes(EPackage paramEPackage);
  
  public abstract String getID(EObject paramEObject);
  
  public abstract String getIDREF(EObject paramEObject);
  
  public abstract String getHREF(EObject paramEObject);
  
  public abstract URI deresolve(URI paramURI);
  
  public abstract EPackage[] packages();
  
  @Deprecated
  public abstract EObject createObject(EFactory paramEFactory, String paramString);
  
  public abstract EObject createObject(EFactory paramEFactory, EClassifier paramEClassifier);
  
  public abstract EClassifier getType(EFactory paramEFactory, String paramString);
  
  public abstract void setValue(EObject paramEObject, EStructuralFeature paramEStructuralFeature, Object paramObject, int paramInt);
  
  public abstract EStructuralFeature getFeature(EClass paramEClass, String paramString1, String paramString2);
  
  public abstract EStructuralFeature getFeature(EClass paramEClass, String paramString1, String paramString2, boolean paramBoolean);
  
  public abstract int getFeatureKind(EStructuralFeature paramEStructuralFeature);
  
  public abstract String getXMLEncoding(String paramString);
  
  public abstract String getJavaEncoding(String paramString);
  
  public abstract List<XMIException> setManyReference(ManyReference paramManyReference, String paramString);
  
  public abstract void setCheckForDuplicates(boolean paramBoolean);
  
  public abstract void setProcessDanglingHREF(String paramString);
  
  public abstract DanglingHREFException getDanglingHREFException();
  
  public abstract URI resolve(URI paramURI1, URI paramURI2);
  
  public abstract void addPrefix(String paramString1, String paramString2);
  
  public abstract Map<String, String> getAnyContentPrefixToURIMapping();
  
  public abstract void recordPrefixToURIMapping();
  
  public abstract String getURI(String paramString);
  
  public abstract void pushContext();
  
  public abstract void popContext();
  
  public abstract void popContext(Map<String, EFactory> paramMap);
  
  public abstract String convertToString(EFactory paramEFactory, EDataType paramEDataType, Object paramObject);
  
  public abstract EMap<String, String> getPrefixToNamespaceMap();
  
  public abstract void setPrefixToNamespaceMap(EMap<String, String> paramEMap);
  
  public abstract void setMustHavePrefix(boolean paramBoolean);
  
  public static abstract interface ManyReference
  {
    public abstract EObject getObject();
    
    public abstract EStructuralFeature getFeature();
    
    public abstract Object[] getValues();
    
    public abstract int[] getPositions();
    
    public abstract int getLineNumber();
    
    public abstract int getColumnNumber();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLHelper
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;

public abstract interface XMLLoad
{
  public abstract void load(XMLResource paramXMLResource, InputStream paramInputStream, Map<?, ?> paramMap)
    throws IOException;
  
  public abstract void load(XMLResource paramXMLResource, InputSource paramInputSource, Map<?, ?> paramMap)
    throws IOException;
  
  public abstract void load(XMLResource paramXMLResource, Node paramNode, Map<?, ?> paramMap)
    throws IOException;
  
  public abstract XMLDefaultHandler createDefaultHandler();
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLLoad
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.util.Map;
import org.eclipse.emf.common.util.URI;

public abstract interface XMLOptions
{
  public abstract void setProcessAnyXML(boolean paramBoolean);
  
  public abstract boolean isProcessAnyXML();
  
  public abstract void setEcoreBuilder(EcoreBuilder paramEcoreBuilder);
  
  public abstract EcoreBuilder getEcoreBuilder();
  
  public abstract void setExternalSchemaLocations(Map<String, URI> paramMap);
  
  public abstract Map<String, URI> getExternalSchemaLocations();
  
  public abstract void setProcessSchemaLocations(boolean paramBoolean);
  
  public abstract boolean isProcessSchemaLocations();
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLOptions
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.util.Map;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import org.xml.sax.SAXException;

public abstract interface XMLParserPool
{
  public abstract SAXParser get(Map<String, Boolean> paramMap, Map<String, ?> paramMap1, boolean paramBoolean)
    throws ParserConfigurationException, SAXException;
  
  public abstract void release(SAXParser paramSAXParser, Map<String, Boolean> paramMap, Map<String, ?> paramMap1, boolean paramBoolean);
  
  public abstract XMLDefaultHandler getDefaultHandler(XMLResource paramXMLResource, XMLLoad paramXMLLoad, XMLHelper paramXMLHelper, Map<?, ?> paramMap);
  
  public abstract void releaseDefaultHandler(XMLDefaultHandler paramXMLDefaultHandler, Map<?, ?> paramMap);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLParserPool
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.ExtendedMetaData;

public abstract interface XMLResource$ElementHandler
{
  public abstract EStructuralFeature getRoot(ExtendedMetaData paramExtendedMetaData, EClassifier paramEClassifier);
  
  public abstract EStructuralFeature getSubstitutionGroup(ExtendedMetaData paramExtendedMetaData, EStructuralFeature paramEStructuralFeature, EClassifier paramEClassifier);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLResource.ElementHandler
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.util.Map;

public abstract interface XMLResource$ResourceEntityHandler
{
  public abstract void reset();
  
  public abstract void handleEntity(String paramString1, String paramString2);
  
  public abstract String getEntityName(String paramString);
  
  public abstract Map<String, String> getNameToValueMap();
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLResource.ResourceEntityHandler
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;

public abstract interface XMLResource$ResourceHandler
{
  public abstract void preLoad(XMLResource paramXMLResource, InputStream paramInputStream, Map<?, ?> paramMap);
  
  public abstract void postLoad(XMLResource paramXMLResource, InputStream paramInputStream, Map<?, ?> paramMap);
  
  public abstract void preSave(XMLResource paramXMLResource, OutputStream paramOutputStream, Map<?, ?> paramMap);
  
  public abstract void postSave(XMLResource paramXMLResource, OutputStream paramOutputStream, Map<?, ?> paramMap);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLResource.ResourceHandler
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.common.util.URI;

public abstract interface XMLResource$URIHandler
{
  public abstract void setBaseURI(URI paramURI);
  
  public abstract URI resolve(URI paramURI);
  
  public abstract URI deresolve(URI paramURI);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLResource.URIHandler
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

public abstract interface XMLResource$XMLInfo
{
  public static final int UNSPECIFIED = -1;
  public static final int ELEMENT = 0;
  public static final int ATTRIBUTE = 1;
  public static final int CONTENT = 2;
  
  public abstract int getXMLRepresentation();
  
  public abstract void setXMLRepresentation(int paramInt);
  
  public abstract void setTargetNamespace(String paramString);
  
  public abstract String getTargetNamespace();
  
  public abstract String getName();
  
  public abstract void setName(String paramString);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLResource.XMLInfo
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EStructuralFeature;

public abstract interface XMLResource$XMLMap
{
  public abstract void add(ENamedElement paramENamedElement, XMLResource.XMLInfo paramXMLInfo);
  
  public abstract XMLResource.XMLInfo getInfo(ENamedElement paramENamedElement);
  
  public abstract void setNoNamespacePackage(EPackage paramEPackage);
  
  public abstract EPackage getNoNamespacePackage();
  
  public abstract void setIDAttributeName(String paramString);
  
  public abstract String getIDAttributeName();
  
  public abstract EClassifier getClassifier(String paramString1, String paramString2);
  
  public abstract EStructuralFeature getFeature(EClass paramEClass, String paramString1, String paramString2);
  
  public abstract List<EStructuralFeature> getFeatures(EClass paramEClass);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLResource.XMLMap
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Writer;
import java.util.List;
import java.util.Map;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.util.ExtendedMetaData;
import org.eclipse.emf.ecore.xml.type.AnyType;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;

public abstract interface XMLResource
  extends Resource
{
  public static final String OPTION_USE_PARSER_POOL = "USE_PARSER_POOL";
  public static final String OPTION_USE_XML_NAME_TO_FEATURE_MAP = "USE_XML_NAME_TO_FEATURE_MAP";
  public static final String OPTION_USE_CACHED_LOOKUP_TABLE = "USE_CACHED_LOOKUP_TABLE";
  public static final String OPTION_USE_DEPRECATED_METHODS = "USE_DEPRECATED_METHODS";
  public static final String OPTION_CONFIGURATION_CACHE = "CONFIGURATION_CACHE";
  public static final String OPTION_SAVE_TYPE_INFORMATION = "SAVE_TYPE_INFORMATION";
  public static final String OPTION_PARSER_FEATURES = "PARSER_FEATURES";
  public static final String OPTION_PARSER_PROPERTIES = "PARSER_PROPERTIES";
  public static final String OPTION_USE_LEXICAL_HANDLER = "USE_LEXICAL_HANDLER";
  public static final String OPTION_DOM_USE_NAMESPACES_IN_SCOPE = "DOM_USE_NAMESPACES_IN_SCOPE";
  public static final String OPTION_EXTENDED_META_DATA = "EXTENDED_META_DATA";
  public static final String OPTION_ANY_TYPE = "ANY_TYPE";
  public static final String OPTION_ANY_SIMPLE_TYPE = "ANY_SIMPLE_TYPE";
  public static final String OPTION_XML_MAP = "XML_MAP";
  public static final String OPTION_USE_ENCODED_ATTRIBUTE_STYLE = "USE_ENCODED_ATTRIBUTE_STYLE";
  public static final String OPTION_FORMATTED = "FORMATTED";
  public static final String OPTION_LINE_WIDTH = "LINE_WIDTH";
  public static final String OPTION_DECLARE_XML = "DECLARE_XML";
  public static final String OPTION_KEEP_DEFAULT_CONTENT = "KEEP_DEFAULT_CONTENT";
  public static final String OPTION_SAVE_DOCTYPE = "SAVE_DOCTYPE";
  public static final String OPTION_RESOURCE_ENTITY_HANDLER = "RESOURCE_ENTITY_HANDLER";
  public static final String OPTION_SKIP_ESCAPE = "SKIP_ESCAPE";
  public static final String OPTION_SKIP_ESCAPE_URI = "SKIP_ESCAPE_URI";
  public static final String OPTION_PROCESS_DANGLING_HREF = "PROCESS_DANGLING_HREF";
  public static final String OPTION_PROCESS_DANGLING_HREF_THROW = "THROW";
  public static final String OPTION_PROCESS_DANGLING_HREF_DISCARD = "DISCARD";
  public static final String OPTION_PROCESS_DANGLING_HREF_RECORD = "RECORD";
  public static final String OPTION_RECORD_UNKNOWN_FEATURE = "RECORD_UNKNOWN_FEATURE";
  public static final String OPTION_LAX_FEATURE_PROCESSING = "LAX_FEATURE_PROCESSING";
  public static final String OPTION_LAX_WILDCARD_PROCESSING = "LAX_WILDCARD_PROCESSING";
  public static final String OPTION_XML_OPTIONS = "XML_OPTIONS";
  public static final String OPTION_DISABLE_NOTIFY = "DISABLE_NOTIFY";
  public static final String OPTION_SCHEMA_LOCATION = "SCHEMA_LOCATION";
  public static final String OPTION_SCHEMA_LOCATION_IMPLEMENTATION = "SCHEMA_LOCATION_IMPLEMENTATION";
  public static final String OPTION_ENCODING = "ENCODING";
  public static final String OPTION_XML_VERSION = "XML_VERSION";
  public static final String OPTION_RECORD_ANY_TYPE_NAMESPACE_DECLARATIONS = "RECORD_ANY_TYPE_NAMESPACE_DECLARATIONS";
  public static final String OPTION_FLUSH_THRESHOLD = "FLUSH_THRESHOLD";
  public static final String OPTION_USE_FILE_BUFFER = "USE_FILE_BUFFER";
  public static final String OPTION_DEFER_IDREF_RESOLUTION = "DEFER_IDREF_RESOLUTION";
  public static final String OPTION_ROOT_OBJECTS = "ROOT_OBJECTS";
  public static final String OPTION_RESOURCE_HANDLER = "RESOURCE_HANDLER";
  public static final String OPTION_DEFER_ATTACHMENT = "DEFER_ATTACHMENT";
  public static final String OPTION_URI_HANDLER = "URI_HANDLER";
  public static final String OPTION_ELEMENT_HANDLER = "ELEMENT_HANDLER";
  public static final String OPTION_SUPPRESS_DOCUMENT_ROOT = "SUPPRESS_DOCUMENT_ROOT";
  public static final String OPTION_ESCAPE_USING_CDATA = "ESCAPE_USING_CDATA";
  public static final String OPTION_BINARY = "BINARY";
  public static final String OPTION_PROXY_ATTRIBUTES = "PROXY_ATTRIBUTES";
  public static final String HREF = "href";
  public static final String NIL = "nil";
  public static final String TYPE = "type";
  public static final String SCHEMA_LOCATION = "schemaLocation";
  public static final String NO_NAMESPACE_SCHEMA_LOCATION = "noNamespaceSchemaLocation";
  public static final String XML_NS = "xmlns";
  public static final String XSI_NS = "xsi";
  public static final String XSI_URI = "http://www.w3.org/2001/XMLSchema-instance";
  public static final String XML_SCHEMA_URI = "http://www.w3.org/2001/XMLSchema";
  
  public abstract boolean useZip();
  
  public abstract void setUseZip(boolean paramBoolean);
  
  public abstract Map<Object, Object> getDefaultSaveOptions();
  
  public abstract Map<Object, Object> getDefaultLoadOptions();
  
  public abstract String getPublicId();
  
  public abstract String getSystemId();
  
  public abstract void setDoctypeInfo(String paramString1, String paramString2);
  
  public abstract String getEncoding();
  
  public abstract void setEncoding(String paramString);
  
  public abstract String getXMLVersion();
  
  public abstract void setXMLVersion(String paramString);
  
  @Deprecated
  public abstract Map<String, EObject> getIDToEObjectMap();
  
  @Deprecated
  public abstract Map<EObject, String> getEObjectToIDMap();
  
  public abstract String getID(EObject paramEObject);
  
  public abstract void setID(EObject paramEObject, String paramString);
  
  public abstract Map<EObject, AnyType> getEObjectToExtensionMap();
  
  public abstract Document save(Document paramDocument, Map<?, ?> paramMap, DOMHandler paramDOMHandler);
  
  public abstract void save(Writer paramWriter, Map<?, ?> paramMap)
    throws IOException;
  
  public abstract DOMHelper getDOMHelper();
  
  public abstract void load(Node paramNode, Map<?, ?> paramMap)
    throws IOException;
  
  public abstract void load(InputSource paramInputSource, Map<?, ?> paramMap)
    throws IOException;
  
  public static abstract interface ElementHandler
  {
    public abstract EStructuralFeature getRoot(ExtendedMetaData paramExtendedMetaData, EClassifier paramEClassifier);
    
    public abstract EStructuralFeature getSubstitutionGroup(ExtendedMetaData paramExtendedMetaData, EStructuralFeature paramEStructuralFeature, EClassifier paramEClassifier);
  }
  
  public static abstract interface ResourceEntityHandler
  {
    public abstract void reset();
    
    public abstract void handleEntity(String paramString1, String paramString2);
    
    public abstract String getEntityName(String paramString);
    
    public abstract Map<String, String> getNameToValueMap();
  }
  
  public static abstract interface ResourceHandler
  {
    public abstract void preLoad(XMLResource paramXMLResource, InputStream paramInputStream, Map<?, ?> paramMap);
    
    public abstract void postLoad(XMLResource paramXMLResource, InputStream paramInputStream, Map<?, ?> paramMap);
    
    public abstract void preSave(XMLResource paramXMLResource, OutputStream paramOutputStream, Map<?, ?> paramMap);
    
    public abstract void postSave(XMLResource paramXMLResource, OutputStream paramOutputStream, Map<?, ?> paramMap);
  }
  
  public static abstract interface URIHandler
  {
    public abstract void setBaseURI(URI paramURI);
    
    public abstract URI resolve(URI paramURI);
    
    public abstract URI deresolve(URI paramURI);
  }
  
  public static abstract interface XMLInfo
  {
    public static final int UNSPECIFIED = -1;
    public static final int ELEMENT = 0;
    public static final int ATTRIBUTE = 1;
    public static final int CONTENT = 2;
    
    public abstract int getXMLRepresentation();
    
    public abstract void setXMLRepresentation(int paramInt);
    
    public abstract void setTargetNamespace(String paramString);
    
    public abstract String getTargetNamespace();
    
    public abstract String getName();
    
    public abstract void setName(String paramString);
  }
  
  public static abstract interface XMLMap
  {
    public abstract void add(ENamedElement paramENamedElement, XMLResource.XMLInfo paramXMLInfo);
    
    public abstract XMLResource.XMLInfo getInfo(ENamedElement paramENamedElement);
    
    public abstract void setNoNamespacePackage(EPackage paramEPackage);
    
    public abstract EPackage getNoNamespacePackage();
    
    public abstract void setIDAttributeName(String paramString);
    
    public abstract String getIDAttributeName();
    
    public abstract EClassifier getClassifier(String paramString1, String paramString2);
    
    public abstract EStructuralFeature getFeature(EClass paramEClass, String paramString1, String paramString2);
    
    public abstract List<EStructuralFeature> getFeatures(EClass paramEClass);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLResource
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EStructuralFeature;

public abstract interface XMLSave$XMLTypeInfo
{
  public abstract boolean shouldSaveType(EClass paramEClass, EClassifier paramEClassifier, EStructuralFeature paramEStructuralFeature);
  
  public abstract boolean shouldSaveType(EClass paramEClass1, EClass paramEClass2, EStructuralFeature paramEStructuralFeature);
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLSave.XMLTypeInfo
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi;

import java.io.IOException;
import java.io.OutputStream;
import java.io.Writer;
import java.util.Map;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.w3c.dom.Document;

public abstract interface XMLSave
{
  public abstract void save(XMLResource paramXMLResource, OutputStream paramOutputStream, Map<?, ?> paramMap)
    throws IOException;
  
  public abstract Document save(XMLResource paramXMLResource, Document paramDocument, Map<?, ?> paramMap, DOMHandler paramDOMHandler);
  
  public abstract void save(XMLResource paramXMLResource, Writer paramWriter, Map<?, ?> paramMap)
    throws IOException;
  
  public static abstract interface XMLTypeInfo
  {
    public abstract boolean shouldSaveType(EClass paramEClass, EClassifier paramEClassifier, EStructuralFeature paramEStructuralFeature);
    
    public abstract boolean shouldSaveType(EClass paramEClass1, EClass paramEClass2, EStructuralFeature paramEStructuralFeature);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.XMLSave
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi.impl;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import org.eclipse.emf.ecore.xmi.XMLResource;
import org.eclipse.emf.ecore.xmi.XMLResource.ResourceHandler;

public class BasicResourceHandler
  implements XMLResource.ResourceHandler
{
  public void preLoad(XMLResource resource, InputStream inputStream, Map<?, ?> options) {}
  
  public void postLoad(XMLResource resource, InputStream inputStream, Map<?, ?> options) {}
  
  public void preSave(XMLResource resource, OutputStream outputStream, Map<?, ?> options) {}
  
  public void postSave(XMLResource resource, OutputStream outputStream, Map<?, ?> options) {}
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.impl.BasicResourceHandler
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi.impl;

import java.util.HashMap;
import java.util.Map;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

public class ConfigurationCache
{
  public static final ConfigurationCache INSTANCE = new ConfigurationCache();
  protected static final int SIZE = 100;
  protected Map<EPackage, EObject> documentRoots = new HashMap();
  protected XMLString[] printers = new XMLString[100];
  protected XMLSaveImpl.Escape[] escapes = new XMLSaveImpl.Escape[100];
  protected int freePrinterIndex = -1;
  protected int freeEscapeIndex = -1;
  protected int currentSize = 100;
  
  protected synchronized XMLString getPrinter()
  {
    if (freePrinterIndex < 0) {
      return new XMLString();
    }
    XMLString printer = printers[freePrinterIndex];
    printers[(freePrinterIndex--)] = null;
    return printer;
  }
  
  protected synchronized void releasePrinter(XMLString printer)
  {
    freePrinterIndex += 1;
    if (printers.length == freePrinterIndex)
    {
      currentSize += 100;
      XMLString[] newarray = new XMLString[currentSize];
      System.arraycopy(printers, 0, newarray, 0, printers.length);
      printers = newarray;
    }
    printers[freePrinterIndex] = printer;
  }
  
  protected synchronized XMLSaveImpl.Escape getEscape()
  {
    if (freeEscapeIndex < 0) {
      return new XMLSaveImpl.Escape();
    }
    XMLSaveImpl.Escape escape = escapes[freeEscapeIndex];
    escapes[(freeEscapeIndex--)] = null;
    return escape;
  }
  
  protected synchronized void releaseEscape(XMLSaveImpl.Escape escape)
  {
    freeEscapeIndex += 1;
    if (escapes.length == freeEscapeIndex)
    {
      currentSize += 100;
      XMLSaveImpl.Escape[] newarray = new XMLSaveImpl.Escape[currentSize];
      System.arraycopy(escapes, 0, newarray, 0, escapes.length);
      escapes = newarray;
    }
    escapes[freeEscapeIndex] = escape;
  }
  
  public synchronized void release()
  {
    freeEscapeIndex = -1;
    freePrinterIndex = -1;
    for (int i = 0; i < printers.length; i++) {
      printers[i] = null;
    }
    for (int i = 0; i < escapes.length; i++) {
      escapes[i] = null;
    }
  }
  
  public synchronized EClass getDocumentRoot(EPackage ePackage)
  {
    return (EClass)documentRoots.get(ePackage);
  }
  
  public synchronized void putDocumentRoot(EPackage ePackage, EClass documentRoot)
  {
    documentRoots.put(ePackage, documentRoot);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.ecore.xmi.impl.ConfigurationCache
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.ecore.xmi.impl;

import java.util.HashMap;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.ExtendedMetaData;
import org.eclipse.emf.ecore.xmi.DOMHandler;
import org.eclipse.emf.ecore.xmi.DOMHelper;
import org.w3c.dom.Attr;
import org.w3c.dom.Node;

public class DefaultDOMHandlerImpl
  implements DOMHandler, DOMHelper
{
  protected final HashMap<Node, Object> nodeToObject = new HashMap();
  protected final HashMap<Node, EStructuralFeature> nodeToFeature = new HashMap();
  protected final HashMap<Node, EObject> nodeToContainer = new HashMap();
  protected ExtendedMetaData extendedMetaData;
  static final boolean DEBUG = false;
  
  void setExtendedMetaData(ExtendedMetaData extendedMetaData)
  {
    this.extendedMetaData = extendedMetaData;
  }
  
  public EObject getContainer(Node node)
  {
    short type = node.getNodeType();
    switch (type)
    {
    case 1: 
      Object o = nodeToObject.get(node);
      if ((o != null) && ((o instanceof EObject))) {
        return ((EObject)o).eContainer();
      }
      return (EObject)nodeToObject.get(node.getParentNode());
    case 3: 
    case 4: 
      Object o = nodeToContainer.get(node);
      if (o != null) {
        return (EObject)o;
      }
      retu
1 2 3 4 5 6 7 8 9 10 11 12 13 14

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd