public class SchemaHelper
extends java.lang.Object
Constructor and Description |
---|
SchemaHelper() |
Modifier and Type | Method and Description |
---|---|
static EClass |
getEClass(java.lang.String qualifiedEntityTypeName)
Returns the org.eclipse.emf.ecore.EClass object of the given qualified entity type name.
|
static EClass |
getEClass(Type type)
Returns the org.eclipse.emf.ecore.EClass object of the given type object.
|
static java.util.List |
getProperties(java.lang.String qualifiedEntityTypeName)
Returns all the properties of an entity type.
|
static java.lang.String |
getTypeNsURI(java.lang.String qualifiedEntityTypeName)
Returns the name space URI of the given qualified type.
|
static boolean |
isGroupType(java.lang.String entityType)
Returns true if the entity type is Group or an extension of Group.
|
static boolean |
isLoginAccountType(java.lang.String entityType)
Returns true if the entity type is LoginAccount or an extension of LoginAccount.
|
static boolean |
isMultiValuedProperty(java.lang.String qualifiedEntityType,
java.lang.String qualifiedPropName)
Returns true if the property name is a multi-valued property for
the entity type.
|
static boolean |
isReferenceProperty(java.lang.String propName)
Returns true if the property name is a reference type property (for example,
manager, secretary).
|
static boolean |
isSuperType(java.lang.String superType,
java.lang.String subType)
Returns true if one entity type is super type of another.
|
public static boolean isSuperType(java.lang.String superType, java.lang.String subType)
superType
- super entity type.subType
- sub entity type.public static boolean isLoginAccountType(java.lang.String entityType)
entityType
- entity type.public static boolean isGroupType(java.lang.String entityType)
entityType
- entity type.public static EClass getEClass(java.lang.String qualifiedEntityTypeName)
wimext:EPerson,
yourco:MyPerson.
qualifiedEntityTypeName
- the qualified entity type name with format "public static EClass getEClass(Type type)
type
- The type object of entity type.public static java.lang.String getTypeNsURI(java.lang.String qualifiedEntityTypeName)
qualifiedEntityTypeName
- the qualified entity type name with format "public static java.util.List getProperties(java.lang.String qualifiedEntityTypeName)
qualifiedEntityTypeName
- the qualified entity type name with format "public static boolean isReferenceProperty(java.lang.String propName) throws WIMException
propName
- property name.WIMException
public static boolean isMultiValuedProperty(java.lang.String qualifiedEntityType, java.lang.String qualifiedPropName)
qualifiedEntityType
- entity type.qualifiedPropName
- property name.