Package org.eclipse.emf.cdo.common.model
Class CDOModelUtil
java.lang.Object
org.eclipse.emf.cdo.common.model.CDOModelUtil
- All Implemented Interfaces:
CDOModelConstants
Various static helper methods for dealing with CDO meta models.
- Since:
- 2.0
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from interface org.eclipse.emf.cdo.common.model.CDOModelConstants
BLOB_CLASS_NAME, CLOB_CLASS_NAME, CORE_PACKAGE_URI, RESOURCE_BINARY_FILE_CLASS_NAME, RESOURCE_CLASS_NAME, RESOURCE_FILE_CLASS_NAME, RESOURCE_FOLDER_CLASS_NAME, RESOURCE_FOLDER_NODES_REFERENCE, RESOURCE_LEAF_CLASS_NAME, RESOURCE_NODE_CLASS_NAME, RESOURCE_NODE_FOLDER_REFERENCE, RESOURCE_NODE_NAME_ATTRIBUTE, RESOURCE_PACKAGE_URI, RESOURCE_TEXT_FILE_CLASS_NAME, ROOT_CLASS_NAME, TYPES_PACKAGE_URI
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkCrossResourceURIs
(EPackage ePackage) static void
checkNoFeatureMaps
(StringBuilder builder, EPackage ePackage, boolean checkFeatureMapEntries) static void
checkNoFeatureMaps
(InternalCDOPackageUnit[] packageUnits, boolean checkFeatureMapEntries) static CDOPackageUnit
copyPackageUnit
(CDOPackageUnit packageUnit) static CDOPackageInfo
static CDOPackageUnit
static EStructuralFeature[]
getAllPersistentFeatures
(EClass eClass) Deprecated.static CDOClassInfo
getClassInfo
(EClass eClass) Returns additional CDO infos for anEClass
.static CDOType
getCoreType
(EClassifier eDataType) Core types includes also complex data like EAnnotation, and EEnumstatic CDOPackageInfo
getPackageInfo
(Object value, CDOPackageRegistry packageRegistry) static CDOType
getPrimitiveType
(Class<? extends Object> primitiveType) getSubTypes
(EPackage.Registry packageRegistry) static CDOType
getType
(byte typeID) static CDOType
getType
(EClassifier classifier) static CDOType
getType
(EStructuralFeature feature) static CDOType
getTypeOfObject
(Object object) static boolean
isBasedInPackage
(EClass eClass, String nsURI) static boolean
isCorePackage
(EPackage ePackage) static boolean
isLob
(EClassifier eClassifier) static boolean
isResource
(EClass eClass) static boolean
isResourceFolder
(EClass eClass) static boolean
isResourceNode
(EClass eClass) static boolean
isResourcePackage
(EPackage ePackage) static boolean
isResourcePathFeature
(EStructuralFeature eStructuralFeature) static boolean
static boolean
isSystemPackage
(EPackage ePackage) static boolean
isSystemPackageURI
(String nsURI) static boolean
isTypesPackage
(EPackage ePackage) static EPackage
readPackage
(org.eclipse.net4j.util.io.ExtendedDataInput in, ResourceSet resourceSet, boolean lookForResource) static void
writePackage
(org.eclipse.net4j.util.io.ExtendedDataOutput out, EPackage ePackage, boolean zipped, EPackage.Registry packageRegistry)
-
Method Details
-
isCorePackage
- Since:
- 2.0
-
isRoot
- Since:
- 2.0
-
isResourcePackage
- Since:
- 2.0
-
isResource
- Since:
- 2.0
-
isResourceFolder
- Since:
- 2.0
-
isResourceNode
- Since:
- 2.0
-
isResourcePathFeature
- Since:
- 4.3
-
isTypesPackage
- Since:
- 4.0
-
isSystemPackage
- Since:
- 2.0
-
isSystemPackageURI
- Since:
- 4.7
-
isBasedInPackage
- Since:
- 4.21
-
isLob
- Since:
- 4.0
-
getType
- Since:
- 2.0
-
getType
- Since:
- 4.0
-
getType
- Since:
- 2.0
-
getCoreType
Core types includes also complex data like EAnnotation, and EEnum- Since:
- 2.0
-
getPrimitiveType
- Since:
- 2.0
-
getTypeOfObject
- Since:
- 4.0
-
getPackageInfo
- Since:
- 2.0
-
getClassInfo
Returns additional CDO infos for anEClass
.This operation is somewhat expensive because it synchronizes on the EClass and iterates over all adapters. Whenever possible use
CDORevision.getClassInfo()
orInternalCDOObject.getClassInfo()
.- Since:
- 2.0
-
getAllPersistentFeatures
Deprecated.As of 4.2 useCDOModelUtil.getClassInfo(eClass).getAllPersistentFeatures()
.Returns all persistentfeatures
of anEClass
.This operation is somewhat expensive because it synchronizes on the EClass and iterates over all adapters.
- Since:
- 2.0
- See Also:
-
copyPackageUnit
- Since:
- 4.13
-
createPackageUnit
- Since:
- 2.0
-
createPackageInfo
- Since:
- 2.0
-
readPackage
public static EPackage readPackage(org.eclipse.net4j.util.io.ExtendedDataInput in, ResourceSet resourceSet, boolean lookForResource) throws IOException - Throws:
IOException
- Since:
- 3.0
-
writePackage
public static void writePackage(org.eclipse.net4j.util.io.ExtendedDataOutput out, EPackage ePackage, boolean zipped, EPackage.Registry packageRegistry) throws IOException - Throws:
IOException
- Since:
- 2.0
-
checkCrossResourceURIs
- Since:
- 3.0
-
checkNoFeatureMaps
public static void checkNoFeatureMaps(StringBuilder builder, EPackage ePackage, boolean checkFeatureMapEntries) - Since:
- 4.10
-
checkNoFeatureMaps
public static void checkNoFeatureMaps(InternalCDOPackageUnit[] packageUnits, boolean checkFeatureMapEntries) throws CDOException - Throws:
CDOException
- Since:
- 4.10
-
getSubTypes
- Since:
- 4.0
-
CDOModelUtil.getClassInfo(eClass).getAllPersistentFeatures()
.