org.eclipse.emf.cdo.common.model
Class CDOModelUtil
java.lang.Object
org.eclipse.emf.cdo.common.model.CDOModelUtil
- All Implemented Interfaces:
- CDOModelConstants
- public final class CDOModelUtil
- extends Object
- implements CDOModelConstants
Various static helper methods for dealing with CDO meta models.
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isCorePackage
public static boolean isCorePackage(EPackage ePackage)
- Since:
- 2.0
isRoot
public static boolean isRoot(EClass eClass)
- Since:
- 2.0
isResourcePackage
public static boolean isResourcePackage(EPackage ePackage)
- Since:
- 2.0
isResource
public static boolean isResource(EClass eClass)
- Since:
- 2.0
isResourceFolder
public static boolean isResourceFolder(EClass eClass)
- Since:
- 2.0
isResourceNode
public static boolean isResourceNode(EClass eClass)
- Since:
- 2.0
isTypesPackage
public static boolean isTypesPackage(EPackage ePackage)
- Since:
- 4.0
isSystemPackage
public static boolean isSystemPackage(EPackage ePackage)
- Since:
- 2.0
isLob
public static boolean isLob(EClassifier eClassifier)
- Since:
- 4.0
getType
public static CDOType getType(EStructuralFeature feature)
- Since:
- 2.0
getType
public static CDOType getType(byte typeID)
- Since:
- 4.0
getType
public static CDOType getType(EClassifier classifier)
- Since:
- 2.0
getCoreType
public static CDOType getCoreType(EClassifier eDataType)
- Core types includes also complex data like EAnnotation, and EEnum
- Since:
- 2.0
getPrimitiveType
public static CDOType getPrimitiveType(Class<? extends Object> primitiveType)
- Since:
- 2.0
getTypeOfObject
public static CDOType getTypeOfObject(Object object)
- Since:
- 4.0
getPackageInfo
public static CDOPackageInfo getPackageInfo(Object value,
CDOPackageRegistry packageRegistry)
- Since:
- 2.0
getClassInfo
public static CDOClassInfo getClassInfo(EClass eClass)
- Since:
- 2.0
getAllPersistentFeatures
public static EStructuralFeature[] getAllPersistentFeatures(EClass eClass)
- Since:
- 2.0
createPackageUnit
public static CDOPackageUnit createPackageUnit()
- Since:
- 2.0
createPackageInfo
public static CDOPackageInfo createPackageInfo()
- Since:
- 2.0
readPackage
public static EPackage readPackage(ExtendedDataInput in,
ResourceSet resourceSet,
boolean lookForResource)
throws IOException
- Throws:
IOException
- Since:
- 3.0
writePackage
public static void writePackage(ExtendedDataOutput out,
EPackage ePackage,
boolean zipped,
EPackage.Registry packageRegistry)
throws IOException
- Throws:
IOException
- Since:
- 2.0
checkCrossResourceURIs
public static void checkCrossResourceURIs(EPackage ePackage)
- Since:
- 3.0
getSubTypes
public static Map<EClass,List<EClass>> getSubTypes(EPackage.Registry packageRegistry)
- Since:
- 4.0
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.