org.ucworkbench.model
Interface IModelFileElement
- All Superinterfaces:
- IFileElement, IIdentifiable, IUCElement
public interface IModelFileElement
- extends IFileElement, IIdentifiable
This interface is implemented by all file-based objects. It provides basic
point for model retrieval (@link #getCorrespondingModel(),
Methods inherited from interface org.ucworkbench.model.IUCElement |
accept, childrenAccept, exists, getAncestor, getChildren, getCorrespondingResource, getElementName, getElementType, getParent, getPath, getUCProject, getUnderlyingResource |
Methods inherited from interface org.ucworkbench.model.IUCElement |
accept, childrenAccept, exists, getAncestor, getChildren, getCorrespondingResource, getElementName, getElementType, getParent, getPath, getUCProject, getUnderlyingResource |
isStructureKnown
boolean isStructureKnown()
- Determines if the structure of the file is known, i.e. if the file is
able to be parsed using assigned parser. If the structure is known
- Returns:
true
if the file is parseable
getCorrespondingModel
IFileModel getCorrespondingModel()
- Returns the model object for the file, i.e. IActor, IUseCase, etc., or
null
if the file contains errors and is impossible to be
parsed
- Returns:
- instance of