pt.ist.fenixframework.dml
Class DomainModel
java.lang.Object
pt.ist.fenixframework.dml.DomainModel
- All Implemented Interfaces:
- Serializable
public class DomainModel
- extends Object
- implements Serializable
- See Also:
- Serialized Form
valueTypes
protected Map<String,ValueType> valueTypes
external
protected Map<String,DomainEntity> external
classes
protected Map<String,DomainClass> classes
relations
protected Map<String,DomainRelation> relations
annotatedSlots
protected Map<String,List<AnnotatedSlot>> annotatedSlots
DomainModel
public DomainModel()
isNullableType
public static boolean isNullableType(ValueType vt)
isNullableTypeFullName
public static boolean isNullableTypeFullName(String vtFullName)
initializeBuiltinValueTypes
protected void initializeBuiltinValueTypes()
isBuiltinValueTypeFullName
public static boolean isBuiltinValueTypeFullName(String name)
initializeBuiltinEntities
protected void initializeBuiltinEntities()
isBuiltinEntity
protected boolean isBuiltinEntity(String name)
findClassOrExternal
public DomainEntity findClassOrExternal(String name)
findClass
public DomainClass findClass(String name)
findRelation
public DomainRelation findRelation(String name)
addClass
public void addClass(DomainClass domClass)
addRelation
public void addRelation(DomainRelation domRelation)
addExternalEntity
public void addExternalEntity(URL sourceFile,
String name)
addExternalEntity
public void addExternalEntity(URL sourceFile,
String name,
String aliasName)
getClasses
public Iterator<DomainClass> getClasses()
getDomainClasses
public Collection<DomainClass> getDomainClasses()
getRelations
public Iterator<DomainRelation> getRelations()
getDomainRelations
public Collection<DomainRelation> getDomainRelations()
getAnnotatedSlots
public Map<String,List<AnnotatedSlot>> getAnnotatedSlots()
newValueType
public void newValueType(String domainName,
String fullName)
newValueType
public void newValueType(String domainName,
ValueType valueType)
newEnumType
public void newEnumType(String domainName,
String fullName)
getAllValueTypes
public Collection<ValueType> getAllValueTypes()
findValueType
public ValueType findValueType(String name)
isEnumType
public boolean isEnumType(String valueTypeName)
finalizeDomain
public void finalizeDomain()
finalizeDomain
public void finalizeDomain(boolean checkForMissingExternals)
checkForRepeatedSlots
protected void checkForRepeatedSlots()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013. All Rights Reserved.