org.eclipse.xsd.util
Class XSDUtil.UsageCrossReferencer

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>>
          extended by org.eclipse.emf.ecore.util.EcoreUtil.CrossReferencer
              extended by org.eclipse.emf.ecore.util.EcoreUtil.UsageCrossReferencer
                  extended by org.eclipse.xsd.util.XSDUtil.UsageCrossReferencer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>>
Enclosing class:
XSDUtil

public static class XSDUtil.UsageCrossReferencer
extends org.eclipse.emf.ecore.util.EcoreUtil.UsageCrossReferencer

A cross referencer that finds each usage of an EObject or collection of EObjects, excluding uninteresting derived references.

See Also:
Serialized Form

Field Summary
protected  java.util.Collection<?> eObjectsOfInterest
           
 
Fields inherited from class org.eclipse.emf.ecore.util.EcoreUtil.CrossReferencer
emfObjects
 
Constructor Summary
protected XSDUtil.UsageCrossReferencer(java.util.Collection<?> emfObjects)
           
protected XSDUtil.UsageCrossReferencer(org.eclipse.emf.ecore.EObject eObject)
           
protected XSDUtil.UsageCrossReferencer(org.eclipse.emf.ecore.resource.Resource resource)
           
protected XSDUtil.UsageCrossReferencer(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
           
 
Method Summary
protected  boolean crossReference(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EObject crossReferencedEObject)
           
static java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> find(org.eclipse.emf.ecore.EObject eObjectOfInterest, java.util.Collection<?> emfObjectsToSearch)
           
static java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> find(org.eclipse.emf.ecore.EObject eObjectOfInterest, org.eclipse.emf.ecore.EObject eObject)
           
static java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> find(org.eclipse.emf.ecore.EObject eObjectOfInterest, org.eclipse.emf.ecore.resource.Resource resource)
           
static java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> find(org.eclipse.emf.ecore.EObject eObjectOfInterest, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
           
static java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest, java.util.Collection<?> emfObjectsToSearch)
           
static java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest, org.eclipse.emf.ecore.EObject eObject)
           
static java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest, org.eclipse.emf.ecore.resource.Resource resource)
           
static java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
           
protected  java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAllUsage(java.util.Collection<?> eObjectsOfInterest)
           
protected  java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> findUsage(org.eclipse.emf.ecore.EObject eObject)
           
 
Methods inherited from class org.eclipse.emf.ecore.util.EcoreUtil.CrossReferencer
add, containment, crossReference, done, find, getCollection, getCrossReferences, handleCrossReference, newCollection, newContentsIterator, print, print, resolve, toString
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

eObjectsOfInterest

protected java.util.Collection<?> eObjectsOfInterest
Constructor Detail

XSDUtil.UsageCrossReferencer

protected XSDUtil.UsageCrossReferencer(org.eclipse.emf.ecore.EObject eObject)

XSDUtil.UsageCrossReferencer

protected XSDUtil.UsageCrossReferencer(org.eclipse.emf.ecore.resource.Resource resource)

XSDUtil.UsageCrossReferencer

protected XSDUtil.UsageCrossReferencer(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)

XSDUtil.UsageCrossReferencer

protected XSDUtil.UsageCrossReferencer(java.util.Collection<?> emfObjects)
Method Detail

crossReference

protected boolean crossReference(org.eclipse.emf.ecore.EObject eObject,
                                 org.eclipse.emf.ecore.EReference eReference,
                                 org.eclipse.emf.ecore.EObject crossReferencedEObject)
Overrides:
crossReference in class org.eclipse.emf.ecore.util.EcoreUtil.UsageCrossReferencer

findUsage

protected java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> findUsage(org.eclipse.emf.ecore.EObject eObject)
Overrides:
findUsage in class org.eclipse.emf.ecore.util.EcoreUtil.UsageCrossReferencer

findAllUsage

protected java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAllUsage(java.util.Collection<?> eObjectsOfInterest)
Overrides:
findAllUsage in class org.eclipse.emf.ecore.util.EcoreUtil.UsageCrossReferencer

find

public static java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> find(org.eclipse.emf.ecore.EObject eObjectOfInterest,
                                                                                          org.eclipse.emf.ecore.EObject eObject)

find

public static java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> find(org.eclipse.emf.ecore.EObject eObjectOfInterest,
                                                                                          org.eclipse.emf.ecore.resource.Resource resource)

find

public static java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> find(org.eclipse.emf.ecore.EObject eObjectOfInterest,
                                                                                          org.eclipse.emf.ecore.resource.ResourceSet resourceSet)

find

public static java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting> find(org.eclipse.emf.ecore.EObject eObjectOfInterest,
                                                                                          java.util.Collection<?> emfObjectsToSearch)

findAll

public static java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest,
                                                                                                                                          org.eclipse.emf.ecore.EObject eObject)

findAll

public static java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest,
                                                                                                                                          org.eclipse.emf.ecore.resource.Resource resource)

findAll

public static java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest,
                                                                                                                                          org.eclipse.emf.ecore.resource.ResourceSet resourceSet)

findAll

public static java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest,
                                                                                                                                          java.util.Collection<?> emfObjectsToSearch)

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