java.lang.Object
org.tentackle.model.impl.ModelDirectoryImpl
- All Implemented Interfaces:
ModelDirectory
Default implementation of a
ModelDirectory.- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionModelDirectoryImpl(String modelDir, ModelDefaults defaults, EntityAliases aliases) Creates a model directory object. -
Method Summary
-
Constructor Details
-
ModelDirectoryImpl
public ModelDirectoryImpl(String modelDir, ModelDefaults defaults, EntityAliases aliases) throws ModelException Creates a model directory object.- Parameters:
modelDir- the directory namedefaults- optional model defaults, null if nonealiases- optional entity aliases, null if none- Throws:
ModelException- if directory does not exist or is not a directory
-
-
Method Details
-
getPath
Description copied from interface:ModelDirectoryGets the directory path.- Specified by:
getPathin interfaceModelDirectory- Returns:
- the canonical path
-
getURLs
Description copied from interface:ModelDirectoryGets the model file URLs.- Specified by:
getURLsin interfaceModelDirectory- Returns:
- the list of urls, never null
- Throws:
ModelException
-
getModelDefaults
Description copied from interface:ModelDirectoryGets the model defaults.- Specified by:
getModelDefaultsin interfaceModelDirectory- Returns:
- the defaults, null if none
-
getEntityAliases
Description copied from interface:ModelDirectoryGets the entity aliases.- Specified by:
getEntityAliasesin interfaceModelDirectory- Returns:
- the aliases, null if none
-
hasChanged
public boolean hasChanged()Description copied from interface:ModelDirectoryReturns whether the directory has changed.- Specified by:
hasChangedin interfaceModelDirectory- Returns:
- true if changed
-
markDirty
public void markDirty()Description copied from interface:ModelDirectoryMarks this directory dirty.- Specified by:
markDirtyin interfaceModelDirectory
-