public class ChronoSphereGraphFormat
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
E_LABEL__BUNDLE_OWNED_EPACKAGE
The edge label that marks the connections between an EPackage Bundle and its contained EPackages.
|
static java.lang.String |
E_LABEL__ECLASS_ESUPERTYPE
The label for edges that connect an
EClass vertex to one of its supertype
vertices. |
static java.lang.String |
E_LABEL__ECLASS_OWNED_EATTRIBUTE
The label for edges that connect an
EClass vertex to an owned EAttribute vertex. |
static java.lang.String |
E_LABEL__ECLASS_OWNED_EREFERENCE
The label for edges that connect an
EClass vertex to an owned EReference vertex. |
static java.lang.String |
E_LABEL__ECONTAINER
The edge label that marks the "eContainer" reference.
|
static java.lang.String |
E_LABEL__EPACKAGE_OWNED_CLASSIFIERS
The label for edges that connect an
EClass vertex to the owning EPackage vertex. |
static java.lang.String |
E_LABEL__EPACKAGE_REGISTRY_OWNED_BUNDLE
The edge label that marks the connections between the central EPackage Registry and the registered bundles.
|
static java.lang.String |
E_LABEL__ESUBPACKAGE
The label for edges that connect an
EPackage vertex with the vertices representing the sub-EPackages. |
static java.lang.String |
E_LABEL_PREFIX__EREFERENCE
The common prefix for labels on edges that represent
EReference links. |
static java.lang.String |
E_PROP__ORDER
The edge property that contains the ordering for multiplicity-many
EReference links. |
static java.lang.String |
V_ID__EPACKAGE_REGISTRY |
static java.lang.String |
V_PROP__ECLASS_ID
the vertex property that contains the ID of the EClass.
|
static java.lang.String |
V_PROP__ECONTAININGFEATUREID
The vertex property that holds the numeric Ecore ID of the
EObject.eContainingFeature(). |
static java.lang.String |
V_PROP__KIND
The vertex property that contains the vertex kind.
|
static java.lang.String |
V_PROP__NAME
The vertex property that contains the name of
EPackages,
EClasses and EStructuralFeatures. |
static java.lang.String |
V_PROP__NS_PREFIX
The vertex property that contains the namespace prefix of an
EPackage
. |
static java.lang.String |
V_PROP__NS_URI
The vertex property that contains the namespace URI of an
EPackage. |
static java.lang.String |
V_PROP__XMI_CONTENTS
The vertex property that allows a
Vertex representing an EPackage to hold the XMI contents of the
EPackage. |
static java.lang.String |
V_PROP_PREFIX__EATTRIBUTE_VALUE
The common prefix for vertex properties that represent
EAttribute values. |
static java.lang.String |
VARIABLES__GRAPH_FORMAT_VERSION
Graph Variable Name: The version of the graph format used by this instance.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
createEContainerReferenceEdgeLabel()
Creates and returns the edge label for the
eContainer reference edge. |
static java.lang.String |
createReferenceEdgeLabel(ChronoEPackageRegistry registry,
org.eclipse.emf.ecore.EReference eReference)
Creates the label for an
Edge that represents an instance of the given EReference. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
createVertexForEPackage(org.chronos.chronograph.api.structure.ChronoGraph graph,
org.eclipse.emf.ecore.EPackage ePackage)
Creates a vertex in the given graph for the given
EPackage. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
createVertexForEPackageBundle(org.chronos.chronograph.api.structure.ChronoGraph graph,
EPackageBundle bundle)
Creates a new
Vertex for the given EPackageBundle. |
static java.lang.String |
createVertexPropertyKey(ChronoEPackageRegistry registry,
org.eclipse.emf.ecore.EAttribute eAttribute)
Creates the
Property key for a Vertex that needs to store a value for the given
EAttribute. |
static java.lang.Object |
getEAttributeValue(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.eclipse.emf.ecore.EAttribute attribute)
Returns the value for the given multiplicity-one attribute in the given
Vertex. |
static java.util.Collection<?> |
getEAttributeValues(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.eclipse.emf.ecore.EAttribute attribute)
Returns the values for the given multiplicity-many attribute in the given
Vertex. |
static org.eclipse.emf.ecore.EClass |
getEClassForEObjectVertex(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Returns the
EClass that acts as the classifier for the EObject represented by the given
Vertex. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getEContainer(org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex)
Returns the vertex representing the
EObject that acts as the eContainer() of
the given EObject. |
static java.lang.Integer |
getEContainingFeatureId(org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex)
Returns the numeric Ecore ID of the eContainingFeature on the EObject
represented by the given vertex.
|
static java.util.Set<org.apache.tinkerpop.gremlin.structure.Vertex> |
getEpackageBundleVertices(org.chronos.chronograph.api.structure.ChronoGraph graph)
Returns the set of vertices that represent
EPackageBundles. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getEPackageVertexForEClassVertex(org.apache.tinkerpop.gremlin.structure.Vertex eClassVertex)
Returns the
Vertex that represents the EPackage that contains the EClass represented by
the given vertex. |
static int |
getEReferenceEdgeOrder(org.apache.tinkerpop.gremlin.structure.Edge edge)
Returns the
order property of the given Edge that represents an EReference link. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getEReferenceTarget(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex,
org.eclipse.emf.ecore.EReference eReference)
Returns the single target of the given
EReference on the given EObject vertex. |
static java.util.List<org.apache.tinkerpop.gremlin.structure.Vertex> |
getEReferenceTargets(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex,
org.eclipse.emf.ecore.EReference eReference)
Returns the targets of the given
EReference on the given EObject vertex. |
static java.lang.String |
getNsPrefix(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex)
Returns the
namespace Prefix stored in the given EPackage vertex. |
static java.lang.String |
getNsURI(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex)
Returns the
namespace URI stored in the given EPackage vertex. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getRootEPackageVertexForEClassVertex(org.apache.tinkerpop.gremlin.structure.Vertex eClassVertex)
Returns the
Vertex that represents the root of the EPackage hierarchy that contains the
EClass represented by the given vertex. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getRootEPackageVertexForEPackageVertex(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex)
Returns the
Vertex that represents the root of the EPackage hierarchy that contains the
EPackage represented by the given vertex. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getVertexForEAttributeRaw(org.apache.tinkerpop.gremlin.structure.Vertex eClassVertex,
org.eclipse.emf.ecore.EAttribute eAttribute)
Returns the
Vertex that represents the given EAttribute and is attached to the given
EClass vertex. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getVertexForEClass(ChronoEPackageRegistry registry,
org.chronos.chronograph.api.structure.ChronoGraph graph,
org.eclipse.emf.ecore.EClass eClass)
Returns the
Vertex that represents the given EClass in the given graph. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getVertexForEClassRaw(org.chronos.chronograph.api.structure.ChronoGraph graph,
org.eclipse.emf.ecore.EClass eClass)
Attempts to find the
Vertex that represents the given EClass in the graph. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getVertexForEObject(org.chronos.chronograph.api.structure.ChronoGraph graph,
ChronoEObject eObject)
Returns the vertex from the given graph that represents the given
EObject.
|
static org.apache.tinkerpop.gremlin.structure.Vertex |
getVertexForEObject(org.chronos.chronograph.api.structure.ChronoGraph graph,
java.lang.String eObjectId)
|
static org.apache.tinkerpop.gremlin.structure.Vertex |
getVertexForEPackage(org.chronos.chronograph.api.structure.ChronoGraph graph,
org.eclipse.emf.ecore.EPackage ePackage)
Returns the
Vertex that represents the given EPackage. |
static org.apache.tinkerpop.gremlin.structure.Vertex |
getVertexForEReferenceRaw(org.apache.tinkerpop.gremlin.structure.Vertex eClassVertex,
org.eclipse.emf.ecore.EReference eReference)
Returns the
Vertex that represents the given EReference and is attached to the given
EClass vertex. |
static VertexKind |
getVertexKind(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Returns the kind of the vertex.
|
static java.lang.String |
getVertexName(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Returns the name of the given vertex.
|
static java.lang.String |
getXMIContents(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Returns the XMI contents stored in the given
Vertex. |
static org.apache.tinkerpop.gremlin.structure.Property<?> |
setEAttributeValue(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.eclipse.emf.ecore.EAttribute attribute,
java.lang.Object value)
Sets the given multiplicity-one attribute value in the given
Vertex. |
static org.apache.tinkerpop.gremlin.structure.Property<?> |
setEAttributeValues(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.eclipse.emf.ecore.EAttribute attribute,
java.util.Collection<?> values)
Sets the given multiplicity-many attribute value in the given
Vertex. |
static void |
setEClassForEObjectVertex(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.eclipse.emf.ecore.EClass eClass)
Sets the EClass for the EObject represented by the given vertex.
|
static void |
setEContainer(org.apache.tinkerpop.gremlin.structure.Vertex sourceVertex,
org.apache.tinkerpop.gremlin.structure.Vertex targetVertex)
Sets the
eContainer() of the EObject represented by the given source vertex
to the EObject represented by the given target vertex. |
static void |
setEContainingFeatureId(org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex,
java.lang.Integer containingFeatureId)
Sets the numeric Ecore ID of the eContainingFeature on the EObject
represented by the given vertex.
|
static void |
setEReferenceEdgeOrder(org.apache.tinkerpop.gremlin.structure.Edge edge,
int orderIndex)
Sets the
order property of the given Edge that represents an EReference link to the
given value. |
static void |
setEReferenceTarget(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex,
org.eclipse.emf.ecore.EReference eReference,
org.apache.tinkerpop.gremlin.structure.Vertex target)
Sets the target of the given
EReference on the given EObject vertex to the given target vertex. |
static void |
setEReferenceTargets(ChronoEPackageRegistry registry,
org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex,
org.eclipse.emf.ecore.EReference eReference,
java.util.List<org.apache.tinkerpop.gremlin.structure.Vertex> targets)
Sets the target of the given
EReference on the given EObject vertex to the given target vertices. |
static void |
setNsPrefix(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex,
java.lang.String nsPrefix)
Sets the
namespace prefix for the given EPackage vertex. |
static void |
setNsURI(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex,
java.lang.String nsURI)
Sets the
namespace URI for the given EPackage vertex. |
static void |
setVertexKind(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
VertexKind kind)
Sets the kind of the vertex.
|
static void |
setVertexName(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
java.lang.String name)
Sets the name of the given vertex to the given value.
|
static void |
setXMIContents(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
java.lang.String xmiContents)
Sets the XMI contents of the given
Vertex. |
static void |
updateEPackageBundleVertex(org.apache.tinkerpop.gremlin.structure.Vertex bundleVertex,
EPackageBundle bundle)
Updates the contents of the
Vertex to reflect the given EPackageBundle. |
public static final java.lang.String V_PROP__KIND
VertexKind literals.public static final java.lang.String V_PROP__ECLASS_ID
public static final java.lang.String V_PROP_PREFIX__EATTRIBUTE_VALUE
EAttribute values.public static final java.lang.String V_PROP__NS_URI
EPackage.public static final java.lang.String V_PROP__NS_PREFIX
EPackage
.public static final java.lang.String V_PROP__NAME
EPackages,
EClasses and EStructuralFeatures.public static final java.lang.String V_PROP__XMI_CONTENTS
Vertex representing an EPackage to hold the XMI contents of the
EPackage.public static final java.lang.String V_PROP__ECONTAININGFEATUREID
EObject.eContainingFeature().public static final java.lang.String E_LABEL__EPACKAGE_REGISTRY_OWNED_BUNDLE
public static final java.lang.String E_LABEL__BUNDLE_OWNED_EPACKAGE
public static final java.lang.String E_LABEL__ECONTAINER
public static final java.lang.String E_LABEL__EPACKAGE_OWNED_CLASSIFIERS
EClass vertex to the owning EPackage vertex.public static final java.lang.String E_LABEL__ECLASS_OWNED_EATTRIBUTE
EClass vertex to an owned EAttribute vertex.public static final java.lang.String E_LABEL__ECLASS_OWNED_EREFERENCE
EClass vertex to an owned EReference vertex.public static final java.lang.String E_LABEL__ECLASS_ESUPERTYPE
EClass vertex to one of its supertype
vertices.public static final java.lang.String E_LABEL__ESUBPACKAGE
EPackage vertex with the vertices representing the sub-EPackages.public static final java.lang.String E_LABEL_PREFIX__EREFERENCE
EReference links.public static final java.lang.String E_PROP__ORDER
EReference links.public static final java.lang.String V_ID__EPACKAGE_REGISTRY
public static final java.lang.String VARIABLES__GRAPH_FORMAT_VERSION
public static VertexKind getVertexKind(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
vertex - The vertex to check. Must not be null.null if no kind is set.public static void setVertexKind(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
VertexKind kind)
vertex - The vertex to assign the new vertex kind to. Must not be null.kind - The vertex kind to assign to the vertex. Must not be null.public static java.lang.String createVertexPropertyKey(ChronoEPackageRegistry registry, org.eclipse.emf.ecore.EAttribute eAttribute)
Property key for a Vertex that needs to store a value for the given
EAttribute.registry - The ChronoEPackageRegistry to use. Must not be null.eAttribute - The EAttribute to generate the property key for. Must not be null.null.public static java.lang.String createReferenceEdgeLabel(ChronoEPackageRegistry registry, org.eclipse.emf.ecore.EReference eReference)
Edge that represents an instance of the given EReference.registry - The ChronoEPackageRegistry to use. Must not be null.eReference - The EReference to generate the edge label for. Must not be null.null.public static java.lang.String createEContainerReferenceEdgeLabel()
eContainer reference edge.null.public static org.apache.tinkerpop.gremlin.structure.Property<?> setEAttributeValues(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex vertex, org.eclipse.emf.ecore.EAttribute attribute, java.util.Collection<?> values)
Vertex.registry - The ChronoEPackageRegistry to use. Must not be null.vertex - The vertex to write the values to. Must not be null.attribute - The attribute to write. Must not be null, must be many-valued.values - The collection of values to assign to the vertex property. May be null or empty to clear
the property.null if the property was cleared.public static java.util.Collection<?> getEAttributeValues(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex vertex, org.eclipse.emf.ecore.EAttribute attribute)
Vertex.registry - The ChronoEPackageRegistry to use. Must not be null.vertex - The vertex to read the value from. Must not be null.attribute - The attribute to read from the vertex. Must not be null, must be
many-valued.null.public static org.apache.tinkerpop.gremlin.structure.Property<?> setEAttributeValue(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex vertex, org.eclipse.emf.ecore.EAttribute attribute, java.lang.Object value)
Vertex.registry - The ChronoEPackageRegistry to use. Must not be null.vertex - The vertex to write the value to. Must not be null.attribute - The attribute to write. Must not be null, must not be many-valued.value - The value to assign to the vertex property. May be null or empty to clear the property.null if the property was cleared.public static java.lang.Object getEAttributeValue(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex vertex, org.eclipse.emf.ecore.EAttribute attribute)
Vertex.registry - The ChronoEPackageRegistry to use. Must not be null.vertex - The vertex to read the value from. Must not be null.attribute - The attribute to read from the vertex. Must not be null, must not be
many-valued.null if no value is set on
the vertex for the given attribute.public static void setEReferenceEdgeOrder(org.apache.tinkerpop.gremlin.structure.Edge edge,
int orderIndex)
order property of the given Edge that represents an EReference link to the
given value.edge - The edge to set the order index for. Must not be null.orderIndex - The oder index to set. Must not be negative.public static int getEReferenceEdgeOrder(org.apache.tinkerpop.gremlin.structure.Edge edge)
order property of the given Edge that represents an EReference link.edge - The edge to get the order property for. Must not be null.public static org.apache.tinkerpop.gremlin.structure.Vertex getEReferenceTarget(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex, org.eclipse.emf.ecore.EReference eReference)
EReference on the given EObject vertex.registry - The package to work with. Must not be null.eObjectVertex - The vertex that represents the EObject to get the reference target for. Must not be null.eReference - The EReference to get the target for. Must not be null. Must not be many-valued.null if none is set.public static java.util.List<org.apache.tinkerpop.gremlin.structure.Vertex> getEReferenceTargets(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex, org.eclipse.emf.ecore.EReference eReference)
EReference on the given EObject vertex.registry - The package to work with. Must not be null.eObjectVertex - The vertex that represents the EObject to get the reference target for. Must not be null.eReference - The EReference to get the target for. Must not be null. Must be many-valued.null if none is set.public static void setEReferenceTarget(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex, org.eclipse.emf.ecore.EReference eReference, org.apache.tinkerpop.gremlin.structure.Vertex target)
EReference on the given EObject vertex to the given target vertex.registry - The package to work with. Must not be null.eObjectVertex - The vertex representing the EObject to change the reference target for (i.e. the reference owner).
Must not be null.eReference - The EReference to set. Must not be null, must not be many-valued.target - The vertex representing the target EObject. May be null to clear the reference.public static void setEReferenceTargets(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex, org.eclipse.emf.ecore.EReference eReference, java.util.List<org.apache.tinkerpop.gremlin.structure.Vertex> targets)
EReference on the given EObject vertex to the given target vertices.registry - The package to work with. Must not be null.eObjectVertex - The vertex representing the EObject to change the reference target for (i.e. the reference owner).
Must not be null.eReference - The EReference to set. Must not be null, must be many-valued.targets - The vertices representing the target EObjects. May be null or empty to clear the
reference.public static org.apache.tinkerpop.gremlin.structure.Vertex getVertexForEClass(ChronoEPackageRegistry registry, org.chronos.chronograph.api.structure.ChronoGraph graph, org.eclipse.emf.ecore.EClass eClass)
Vertex that represents the given EClass in the given graph.registry - The ChronoEPackageRegistry to use. Must not be null.graph - The graph to search in. Must not be null.eClass - The EClass to get the vertex for. Must not be null.null if there is no such vertex.public static org.apache.tinkerpop.gremlin.structure.Vertex getVertexForEClassRaw(org.chronos.chronograph.api.structure.ChronoGraph graph,
org.eclipse.emf.ecore.EClass eClass)
Vertex that represents the given EClass in the graph.
In contrast to getVertexForEClass(ChronoEPackageRegistry, ChronoGraph, EClass), this method does not
rely on IDs, but rather on the graph structure itself and on the name of the EClass.
This method should not be used outside of a package initialization process!
graph - The graph to search in. Must not be null.eClass - The EClass to search the vertex for. Must not be null.null if no vertex is found.public static org.apache.tinkerpop.gremlin.structure.Vertex getVertexForEObject(org.chronos.chronograph.api.structure.ChronoGraph graph,
ChronoEObject eObject)
graph - The graph to search in. Must not be null.eObject - The EObject to search the vertex for. Must not be null.null if none was found.public static org.apache.tinkerpop.gremlin.structure.Vertex getVertexForEObject(org.chronos.chronograph.api.structure.ChronoGraph graph,
java.lang.String eObjectId)
graph - The graph to search in. Must not be null.eObjectId - The ID of the ChronoEObject to search for. Must not be null.null if there is no ChronoEObject in the graph with the given ID.public static org.apache.tinkerpop.gremlin.structure.Vertex getVertexForEPackage(org.chronos.chronograph.api.structure.ChronoGraph graph,
org.eclipse.emf.ecore.EPackage ePackage)
Vertex that represents the given EPackage.graph - The graph to search in. Must not be null.ePackage - The ePackage to get the vertex for. Must not be null.null if none exists.public static org.apache.tinkerpop.gremlin.structure.Vertex createVertexForEPackage(org.chronos.chronograph.api.structure.ChronoGraph graph,
org.eclipse.emf.ecore.EPackage ePackage)
EPackage.
This method will also create the corresponding edges and set the appropriate vertex properties on the newly created vertex.
graph - The graph to work on. Must not be null.ePackage - The EPackage to create the vertex for. Must not be null. Must not exist in the graph yet.null.java.lang.IllegalStateException - Thrown if there is already a vertex in the graph for the given EPackage.public static org.apache.tinkerpop.gremlin.structure.Vertex createVertexForEPackageBundle(org.chronos.chronograph.api.structure.ChronoGraph graph,
EPackageBundle bundle)
Vertex for the given EPackageBundle.graph - The graph to modify. Must not be null.bundle - The EPackageBundle to represent in the graph. Must not be null.null.public static void updateEPackageBundleVertex(org.apache.tinkerpop.gremlin.structure.Vertex bundleVertex,
EPackageBundle bundle)
Vertex to reflect the given EPackageBundle.bundleVertex - The bundle vertex to update. Must not be null.bundle - The EPackageBundle to get the data from. Must not be null.public static void setVertexName(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
java.lang.String name)
Please note that not all vertices are meant to have a name. In particular, regular EObject vertices don't
use this property. It is meant primarily for meta-elements, such as vertices that represent EPackages,
EClasses, EAttributes and EReferences.
vertex - The vertex to set the name for. Must not be null.name - The name to assign to the vertex. May be null to clear the name.public static void setNsURI(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex,
java.lang.String nsURI)
namespace URI for the given EPackage vertex.ePackageVertex - The vertex to modify. Must not be null.nsURI - The namespace URI to set. May be null to clear the namespace URI property.public static java.lang.String getNsURI(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex)
namespace URI stored in the given EPackage vertex.ePackageVertex - The vertex to read the namespace URI from. Must not be null.null if none is set.public static void setNsPrefix(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex,
java.lang.String nsPrefix)
namespace prefix for the given EPackage vertex.ePackageVertex - The vertex to modify. Must not be null.nsPrefix - The namespace prefix to set. May be null to clear the namespace Prefix property.public static java.lang.String getNsPrefix(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex)
namespace Prefix stored in the given EPackage vertex.ePackageVertex - The vertex to read the namespace Prefix from. Must not be null.null if none is set.public static java.lang.String getVertexName(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Please note that not all vertices are meant to have a name. In particular, regular EObject vertices don't
use this property. It is meant primarily for meta-elements, such as vertices that represent EPackages,
EClasses, EAttributes and EReferences.
vertex - The vertex to return the name property for. Must not be null.null if the given vertex doesn't have a name assigned.public static void setXMIContents(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
java.lang.String xmiContents)
Vertex.
Please note that this is intended exclusively for vertices that represent EPackages.
vertex - The vertex to set the XMI contents for. Must not be null.xmiContents - The XMI contents to store in the vertex. May be null to clear.public static java.lang.String getXMIContents(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Vertex.
Please note that this is intended exclusively for vertices that represent EPackages.
vertex - The vertex to get the XMI data from. Must not be null.null if the vertex contains no XMI data.public static org.apache.tinkerpop.gremlin.structure.Vertex getVertexForEAttributeRaw(org.apache.tinkerpop.gremlin.structure.Vertex eClassVertex,
org.eclipse.emf.ecore.EAttribute eAttribute)
Vertex that represents the given EAttribute and is attached to the given
EClass vertex.eClassVertex - The vertex that represents the EClass that owns the EAttribute. Must not be null.eAttribute - The EAttribute to get the vertex for. Must not be null.null if no
vertex for the given EAttribute was found.public static org.apache.tinkerpop.gremlin.structure.Vertex getVertexForEReferenceRaw(org.apache.tinkerpop.gremlin.structure.Vertex eClassVertex,
org.eclipse.emf.ecore.EReference eReference)
Vertex that represents the given EReference and is attached to the given
EClass vertex.eClassVertex - The vertex that represents the EClass that owns the EAttribute. Must not be null.eReference - The EReference to get the vertex for. Must not be null.null if no
vertex for the given EReference was found.public static org.eclipse.emf.ecore.EClass getEClassForEObjectVertex(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex vertex)
EClass that acts as the classifier for the EObject represented by the given
Vertex.registry - The package to work with. Must not be null.vertex - The vertex representing the EObject to get the EClass for. Must not be null.null if none is found.public static void setEClassForEObjectVertex(ChronoEPackageRegistry registry, org.apache.tinkerpop.gremlin.structure.Vertex vertex, org.eclipse.emf.ecore.EClass eClass)
registry - The package to work with. Must not be null.vertex - The vertex representing the EObject to set the EClass for. Must not be null.eClass - The eClass to use. Must be part of the given package. Must not be null.public static void setEContainer(org.apache.tinkerpop.gremlin.structure.Vertex sourceVertex,
org.apache.tinkerpop.gremlin.structure.Vertex targetVertex)
eContainer() of the EObject represented by the given source vertex
to the EObject represented by the given target vertex.sourceVertex - The source vertex that should be relocated to the new container. Must not be null.targetVertex - The target vertex that should act as the new container. May be null to clear the
eContainer of the source vertex.public static org.apache.tinkerpop.gremlin.structure.Vertex getEContainer(org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex)
EObject that acts as the eContainer() of
the given EObject.eObjectVertex - The vertex that represents the eObject to get the eContainer for. Must not be null.null
if no eContainer is present.public static void setEContainingFeatureId(org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex,
java.lang.Integer containingFeatureId)
eObjectVertex - The vertex representing the EObject where the eContainingFeatureID should be changed. Must not be
null.containingFeatureId - The new eContainingFeatureID to use. May be null to clear it.public static java.lang.Integer getEContainingFeatureId(org.apache.tinkerpop.gremlin.structure.Vertex eObjectVertex)
eObjectVertex - The vertex representing the EObject where the eContainingFeatureID should be retrieved. Must not be
null.null if
no eContainingFeatureID is set.public static org.apache.tinkerpop.gremlin.structure.Vertex getRootEPackageVertexForEClassVertex(org.apache.tinkerpop.gremlin.structure.Vertex eClassVertex)
Vertex that represents the root of the EPackage hierarchy that contains the
EClass represented by the given vertex.eClassVertex - The vertex that represents the EClass. Must not be null.null.public static org.apache.tinkerpop.gremlin.structure.Vertex getRootEPackageVertexForEPackageVertex(org.apache.tinkerpop.gremlin.structure.Vertex ePackageVertex)
Vertex that represents the root of the EPackage hierarchy that contains the
EPackage represented by the given vertex.ePackageVertex - The vertex that represents the EPackage. Must not be null.null.public static org.apache.tinkerpop.gremlin.structure.Vertex getEPackageVertexForEClassVertex(org.apache.tinkerpop.gremlin.structure.Vertex eClassVertex)
Vertex that represents the EPackage that contains the EClass represented by
the given vertex.eClassVertex - The vertex that represents the EClass. Must not be null.null.public static java.util.Set<org.apache.tinkerpop.gremlin.structure.Vertex> getEpackageBundleVertices(org.chronos.chronograph.api.structure.ChronoGraph graph)
EPackageBundles.graph - The graph to search in. Must not be null.null.