com.ibm.etools.xsd.util
Class XSDResourceImpl

java.lang.Object
  |
  +--com.ibm.etools.emf.notify.impl.NotifierImpl
        |
        +--com.ibm.etools.emf.resource.impl.ResourceImpl
              |
              +--com.ibm.etools.xsd.util.XSDResourceImpl
All Implemented Interfaces:
com.ibm.etools.emf.notify.InternalNotifier, com.ibm.etools.emf.notify.Notifier, com.ibm.etools.emf.resource.Resource

public class XSDResourceImpl
extends com.ibm.etools.emf.resource.impl.ResourceImpl

The Resource implementation for the model. This specialized resource implementation supports it's own way of making keys and hrefs, and it's own serialization. This class is not intended for subclassing outside of the model implementation; it is intended to be used as is with the Resource framework.


Inner Class Summary
static class XSDResourceImpl.XSDKey
          The Key implementation for the model; it's based on a URI Reference Path.
 
Field Summary
static java.lang.String copyright
           
protected  com.ibm.etools.emf.ref.Key xsdKey
           
 
Fields inherited from class com.ibm.etools.emf.resource.impl.ResourceImpl
extent, idKey, isUnloaded, keyClass, namesToCounters, resources, uri
 
Fields inherited from class com.ibm.etools.emf.notify.impl.NotifierImpl
debug, isOn, isOnAll
 
Fields inherited from interface com.ibm.etools.emf.notify.Notifier
ADD, ADD_MANY, CREATE, MOVE, NO_INDEX, REMOVE, REMOVE_MANY, REMOVING_ADAPTER, SET, TOUCH, UNSET
 
Constructor Summary
XSDResourceImpl()
           
XSDResourceImpl(java.lang.String uri)
           
XSDResourceImpl(java.lang.String uri, com.ibm.etools.emf.ref.Extent extent)
           
 
Method Summary
static void doSerialize(java.io.OutputStream outputStream, Element element)
           
 XSDSchema getSchema()
          This gets the resource's schema.
 java.lang.String makeHref(com.ibm.etools.emf.ref.RefBaseObject object)
          This implementation calls XSDConcreteComponent.getURIReferencePath.
 void save(java.io.OutputStream os, java.lang.Object options)
           
 void save(java.util.zip.ZipOutputStream zos, java.lang.String entry, java.lang.String metaModelName)
          This throws and exceptions.
static void serialize(java.io.OutputStream outputStream, Element element)
           
 void setExtent(com.ibm.etools.emf.ref.Extent extent)
           
 void setResourceSet(com.ibm.etools.emf.resource.ResourceSet parentResourceSet)
           
 
Methods inherited from class com.ibm.etools.emf.resource.impl.ResourceImpl
assignID, getCounter, getDefaultSaveOptions, getExtent, getIDKey, getObject, getResourceSet, getURI, isExtentModified, isUnloaded, refSetID, save, save, save, setExtentModified, setURI, setURI, toString, unload
 
Methods inherited from class com.ibm.etools.emf.notify.impl.NotifierImpl
addAdapter, ensureAdapterSpace, getAdapter, getAdapters, getExistingAdapter, getRegisteredAdapterFactory, internalNotify, isDelivery, isDeliveryAll, notify, notify, removeAdapter, removeAllAdapters, setDelivery, setDeliveryAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.emf.notify.Notifier
addAdapter, getAdapter, getAdapters, getExistingAdapter, isDelivery, isDeliveryAll, notify, notify, removeAdapter, removeAllAdapters, setDelivery, setDeliveryAll
 

Field Detail

copyright

public static final java.lang.String copyright

xsdKey

protected com.ibm.etools.emf.ref.Key xsdKey
Constructor Detail

XSDResourceImpl

public XSDResourceImpl()

XSDResourceImpl

public XSDResourceImpl(java.lang.String uri)

XSDResourceImpl

public XSDResourceImpl(java.lang.String uri,
                       com.ibm.etools.emf.ref.Extent extent)
Method Detail

serialize

public static void serialize(java.io.OutputStream outputStream,
                             Element element)

doSerialize

public static void doSerialize(java.io.OutputStream outputStream,
                               Element element)
                        throws java.lang.Exception

setResourceSet

public void setResourceSet(com.ibm.etools.emf.resource.ResourceSet parentResourceSet)
Overrides:
setResourceSet in class com.ibm.etools.emf.resource.impl.ResourceImpl

setExtent

public void setExtent(com.ibm.etools.emf.ref.Extent extent)
Overrides:
setExtent in class com.ibm.etools.emf.resource.impl.ResourceImpl

save

public void save(java.io.OutputStream os,
                 java.lang.Object options)
          throws java.lang.Exception
Overrides:
save in class com.ibm.etools.emf.resource.impl.ResourceImpl

getSchema

public XSDSchema getSchema()
This gets the resource's schema.

save

public void save(java.util.zip.ZipOutputStream zos,
                 java.lang.String entry,
                 java.lang.String metaModelName)
          throws java.lang.Exception
This throws and exceptions.

makeHref

public java.lang.String makeHref(com.ibm.etools.emf.ref.RefBaseObject object)
This implementation calls XSDConcreteComponent.getURIReferencePath.
Overrides:
makeHref in class com.ibm.etools.emf.resource.impl.ResourceImpl