public interface ModelFactory
model adapters
corresponding to IDE (@link Element} types and instances. Model adapters
from different factory instances cannot be mixed.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this factory.
|
java.lang.Object |
getAttribute(java.lang.Object key)
Gets an Audit object model configuration attribute, or null if none.
|
java.util.Map |
getAttributes()
Gets the Audit object model configuration attributes.
|
java.util.Collection<ModelAdapter> |
getContainedModelAdapters(Element element,
java.net.URL url,
ContainerModelAdapter container)
Gets the models in a container corresponding to an
Element . |
ContentCache |
getContentSetCache(Project project,
Workspace workspace)
Gets the
ContentCache for a workspace, or a project in a workspace. |
IntersectedFilters |
getFileFilters()
Gets the supplemental filters to use when filtering application content,
projects, and project content.
|
long |
getMaximumFileSize()
Gets the size of the largest file that can be audited, in Mb.
|
<T extends ModelAdapter> |
getModelAdapter(java.lang.Class<T> type,
java.net.URL url,
Project project,
Workspace workspace)
Gets the model adapter of a type corresponding to a URL, or null if none.
|
java.util.Collection<ModelAdapter> |
getModelAdapters(Element element,
java.net.URL url,
Project project,
Workspace workspace)
Gets the models corresponding to an
Element or URL . |
Location |
getModelRoot()
Gets the location of the root object of the aggregated Audit object model.
|
ModelTypeFactory |
getModelTypeFactory()
Gets the model type factory used by this model factory.
|
WorkingSet |
getWorkingSet()
Gets the working set to use when filtering projects and project content.
|
void |
setFileFilters(IntersectedFilters filters)
Sets the supplemental filters to use when filtering application content,
projects, and project content.
|
void |
setMaximumFileSize(long size)
Sets the size of the largest auditable file.
|
void |
setWorkingSet(WorkingSet workingSet)
Sets the working set to use when filtering projects and project content.
|
ModelTypeFactory getModelTypeFactory()
void setMaximumFileSize(long size)
size
- The size, in Mb, of the largest file that can be audited.long getMaximumFileSize()
void setWorkingSet(WorkingSet workingSet)
java.lang.IllegalStateException
- if getContentSetCache(oracle.ide.model.Project, oracle.ide.model.Workspace)
has already
been invoked.WorkingSet getWorkingSet()
void setFileFilters(IntersectedFilters filters)
java.lang.IllegalStateException
- if getContentSetCache(oracle.ide.model.Project, oracle.ide.model.Workspace)
has already
been invoked.IntersectedFilters getFileFilters()
Location getModelRoot()
ContentCache getContentSetCache(Project project, Workspace workspace)
ContentCache
for a workspace, or a project in a workspace.project
- The project, if getting the cache for the project, or
null if getting the cache for the workspace.workspace
- The workspace.java.util.Collection<ModelAdapter> getModelAdapters(Element element, java.net.URL url, Project project, Workspace workspace)
Element
or URL
.element
- The element.url
- The URL containing the element. Ignored if
element
is a node or a directory.project
- The project containing the element. Ignored if
element
corresponds to a project.workspace
- The workspace containing the element. Ignored if
element
corresponds to a workspace.<T extends ModelAdapter> T getModelAdapter(java.lang.Class<T> type, java.net.URL url, Project project, Workspace workspace)
type
- The Class
of the model type of the model.url
- The URL containing the model.project
- The project containing the model.workspace
- The workspace containing the model.java.util.Collection<ModelAdapter> getContainedModelAdapters(Element element, java.net.URL url, ContainerModelAdapter container)
Element
.element
- The element.url
- The URL of the element, null to extract from element.container
- The container containing the element.void close()
java.lang.Object getAttribute(java.lang.Object key)
java.util.Map getAttributes()