|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.bpmn2.util.QNameUtil
public class QNameUtil
Constructor Summary | |
---|---|
QNameUtil()
|
Method Summary | ||
---|---|---|
static void |
addQNameReferenceImport(org.eclipse.emf.ecore.EObject referencer,
BaseElement referenced,
javax.xml.namespace.QName referenceQName)
|
|
static Import |
checkIfImportWithDifferentLocationExists(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.common.util.URI location,
javax.xml.namespace.QName reference,
java.lang.String importType)
|
|
static void |
createImportForTargetQName(org.eclipse.emf.ecore.EObject referencer,
org.eclipse.emf.ecore.EObject targetObject,
javax.xml.namespace.QName targetQName)
This method will create an import in the definitions based on targetQName details |
|
static org.eclipse.emf.common.util.URI |
createReferenceURI(org.eclipse.emf.ecore.EObject referencer,
javax.xml.namespace.QName referenceQName)
|
|
static org.eclipse.emf.common.util.URI |
createReferenceURI(org.eclipse.emf.ecore.EObject referencer,
javax.xml.namespace.QName referenceQName,
java.lang.String importType)
This method first try to find an Import in the definitions associated to the referencer
If it succeeds it will create a location URI based on the available details in the import |
|
static java.lang.String |
findVobPart(java.io.File directory)
|
|
static java.lang.String |
findVobPart(java.lang.String location)
|
|
static javax.xml.namespace.QName |
generateQName(BaseElement owner,
BaseElement other)
Creates and returns a QName for other (which may be
a proxy) in the context of the its reference from owner . |
|
static javax.xml.namespace.QName |
generateQName(java.lang.String targetNamespace,
java.lang.String localPart)
This method will generate a QName for the given name space and local part |
|
static Definitions |
getDefinitions(org.eclipse.emf.ecore.EObject other)
|
|
static Import |
getMatchingImport(org.eclipse.emf.ecore.EObject referencer,
BaseElement referenced,
javax.xml.namespace.QName referenceQName)
|
|
static Import |
getMatchingImport(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.common.util.URI location)
Gets the first Import in the owner 's
Definitions that matches the location URI,
which represents the location of a referenced BPMN element. |
|
static Import |
getMatchingImport(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.common.util.URI location,
javax.xml.namespace.QName reference,
java.lang.String importType)
Gets the first Import in the owner 's
Definitions that matches the location URI. |
|
static java.util.Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EAttribute> |
getQNamedReferences(org.eclipse.emf.ecore.EClass eClass)
|
|
static boolean |
matches(Import bpmnImport,
org.eclipse.emf.ecore.EObject referencer,
javax.xml.namespace.QName referenceQName)
|
|
static
|
resolveQNameReference(org.eclipse.emf.ecore.EObject referencer,
org.eclipse.emf.ecore.EReference feature,
javax.xml.namespace.QName referenceQName)
Resolves the referenceQName to a model object in the the
context of the referencer and the referencing
feature . |
|
static
|
resolveQNameReference(org.eclipse.emf.ecore.EObject referencer,
javax.xml.namespace.QName referenceQName)
Resolves the referenceQName to a model object in the the
context of the referencer . |
|
static void |
setQNameReference(org.eclipse.emf.ecore.EObject referencer,
BaseElement referenced,
org.eclipse.emf.ecore.EStructuralFeature reference)
|
|
static void |
setQNameReference(org.eclipse.emf.ecore.EObject referencer,
java.lang.Object referenced,
org.eclipse.emf.ecore.EStructuralFeature reference)
|
|
static void |
setQNameReference(org.eclipse.emf.ecore.EObject referencer,
org.eclipse.emf.common.util.URI referencedLocation,
java.lang.String importType,
javax.xml.namespace.QName referenceQName,
org.eclipse.emf.ecore.EStructuralFeature reference)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QNameUtil()
Method Detail |
---|
public static final void setQNameReference(org.eclipse.emf.ecore.EObject referencer, BaseElement referenced, org.eclipse.emf.ecore.EStructuralFeature reference)
public static Import checkIfImportWithDifferentLocationExists(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.common.util.URI location, javax.xml.namespace.QName reference, java.lang.String importType)
public static final void setQNameReference(org.eclipse.emf.ecore.EObject referencer, org.eclipse.emf.common.util.URI referencedLocation, java.lang.String importType, javax.xml.namespace.QName referenceQName, org.eclipse.emf.ecore.EStructuralFeature reference)
public static final void addQNameReferenceImport(org.eclipse.emf.ecore.EObject referencer, BaseElement referenced, javax.xml.namespace.QName referenceQName)
public static final void setQNameReference(org.eclipse.emf.ecore.EObject referencer, java.lang.Object referenced, org.eclipse.emf.ecore.EStructuralFeature reference)
public static <T> T resolveQNameReference(org.eclipse.emf.ecore.EObject referencer, org.eclipse.emf.ecore.EReference feature, javax.xml.namespace.QName referenceQName)
referenceQName
to a model object in the the
context of the referencer
and the referencing
feature
.
This method will return a proxy model object if feature
is
specified and the reference cannot be resolved.
T
- the type of model object to be resolvedreferencer
- the referencerfeature
- the referencing feature, can be null
if the
referenced QName is not a modeled BPMN objectreferenceQName
- the QName to be resolved
public static java.lang.String findVobPart(java.lang.String location)
public static java.lang.String findVobPart(java.io.File directory)
public static <T> T resolveQNameReference(org.eclipse.emf.ecore.EObject referencer, javax.xml.namespace.QName referenceQName)
referenceQName
to a model object in the the
context of the referencer
.
This method will not return a proxy model object if the reference cannot be resolved.
T
- the type of model object to be resolvedreferencer
- the referencerreferenceQName
- the QName to be resolved
public static org.eclipse.emf.common.util.URI createReferenceURI(org.eclipse.emf.ecore.EObject referencer, javax.xml.namespace.QName referenceQName)
referencer
- referenceQName
-
public static org.eclipse.emf.common.util.URI createReferenceURI(org.eclipse.emf.ecore.EObject referencer, javax.xml.namespace.QName referenceQName, java.lang.String importType)
referencer
If it succeeds it will create a location URI based on the available details in the import
referencer
- referenceQName
- importType
- the type of import to match, may be null
public static Import getMatchingImport(org.eclipse.emf.ecore.EObject referencer, BaseElement referenced, javax.xml.namespace.QName referenceQName)
public static Import getMatchingImport(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.common.util.URI location, javax.xml.namespace.QName reference, java.lang.String importType)
Import
in the owner
's
Definitions
that matches the location
URI.
owner
- the reference ownerlocation
- the reference location URI; can be null
if
referenceQName
is specified insteadreference
- the reference QName; can be null
if the
location
URI is specified insteadimportType
- the type of import to match; may be null
Import
that matches the
location
URI (if specified) and the
reference
QName (if specified)public static Import getMatchingImport(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.common.util.URI location)
Import
in the owner
's
Definitions
that matches the location
URI,
which represents the location of a referenced BPMN element.
owner
- the ownerlocation
- the location URI
Import
that matches the
location
URIpublic static boolean matches(Import bpmnImport, org.eclipse.emf.ecore.EObject referencer, javax.xml.namespace.QName referenceQName)
public static final javax.xml.namespace.QName generateQName(BaseElement owner, BaseElement other)
QName
for other
(which may be
a proxy) in the context of the its reference from owner
.
owner
- the reference ownerother
- the referenced element
QName
for other
public static final Definitions getDefinitions(org.eclipse.emf.ecore.EObject other)
public static final java.util.Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EAttribute> getQNamedReferences(org.eclipse.emf.ecore.EClass eClass)
public static void createImportForTargetQName(org.eclipse.emf.ecore.EObject referencer, org.eclipse.emf.ecore.EObject targetObject, javax.xml.namespace.QName targetQName)
referencer
- this references the targetQNametargetObject
- External domain objecttargetQName
- A QName object that represents targetObjectpublic static javax.xml.namespace.QName generateQName(java.lang.String targetNamespace, java.lang.String localPart)
targetNamespace
- target namesapce for the QNamelocalPart
- local part for the QName
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |