com.ibm.etools.xsd.util
Class XSDResourceImpl.XSDKey

java.lang.Object
  |
  +--com.ibm.etools.xsd.util.XSDResourceImpl.XSDKey
All Implemented Interfaces:
com.ibm.etools.emf.ref.IDKey, com.ibm.etools.emf.ref.Key
Enclosing class:
XSDResourceImpl

public static class XSDResourceImpl.XSDKey
extends java.lang.Object
implements com.ibm.etools.emf.ref.IDKey

The Key implementation for the model; it's based on a URI Reference Path. This is a trivial key implementation that does not keep any state; it simply assumes that the key is a string representing a path for XSDSchema.getComponentForURIReferencePath.


Field Summary
protected  com.ibm.etools.emf.ref.Extent extent
          This is the extent for which the key applies.
 
Fields inherited from interface com.ibm.etools.emf.ref.IDKey
copyright
 
Constructor Summary
XSDResourceImpl.XSDKey()
           
 
Method Summary
 void add(java.util.Collection values)
           
 java.lang.Object add(java.lang.Object value)
           
 java.lang.Object get(java.lang.Object key)
          This calls XSDSchema.getComponentForURIReferencePath.
 java.util.Collection getAll(java.lang.Object key)
           
 com.ibm.etools.emf.ref.Extent getExtent()
           
 java.lang.Object getKey(java.lang.Object value)
           
 java.lang.Object getNested(java.lang.Object key)
           
 XSDSchema getSchema()
          This this gets the schema in the extent.
 boolean has(java.lang.Object value)
           
 void remove(java.util.Collection values)
           
 java.lang.Object remove(java.lang.Object value)
           
 void setExtent(com.ibm.etools.emf.ref.Extent extent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extent

protected com.ibm.etools.emf.ref.Extent extent
This is the extent for which the key applies.
Constructor Detail

XSDResourceImpl.XSDKey

public XSDResourceImpl.XSDKey()
Method Detail

getSchema

public XSDSchema getSchema()
This this gets the schema in the extent.

get

public java.lang.Object get(java.lang.Object key)
This calls XSDSchema.getComponentForURIReferencePath.
Specified by:
get in interface com.ibm.etools.emf.ref.Key

getAll

public java.util.Collection getAll(java.lang.Object key)
Specified by:
getAll in interface com.ibm.etools.emf.ref.Key

getNested

public java.lang.Object getNested(java.lang.Object key)

getExtent

public com.ibm.etools.emf.ref.Extent getExtent()
Specified by:
getExtent in interface com.ibm.etools.emf.ref.Key

setExtent

public void setExtent(com.ibm.etools.emf.ref.Extent extent)
Specified by:
setExtent in interface com.ibm.etools.emf.ref.Key

add

public java.lang.Object add(java.lang.Object value)
Specified by:
add in interface com.ibm.etools.emf.ref.Key

add

public void add(java.util.Collection values)
Specified by:
add in interface com.ibm.etools.emf.ref.Key

remove

public java.lang.Object remove(java.lang.Object value)
Specified by:
remove in interface com.ibm.etools.emf.ref.Key

remove

public void remove(java.util.Collection values)
Specified by:
remove in interface com.ibm.etools.emf.ref.Key

getKey

public java.lang.Object getKey(java.lang.Object value)
Specified by:
getKey in interface com.ibm.etools.emf.ref.Key

has

public boolean has(java.lang.Object value)
Specified by:
has in interface com.ibm.etools.emf.ref.Key