|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModelFactory
A factory for model adapters. It creates model adapters
corresponding to IDE (@link Element} types and instances. Model adapters
from different factory instances cannot be mixed.
Method Summary | ||
---|---|---|
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 project and workspace. |
|
long |
getMaximumFileSize()
Gets the size of the largest file that can be audited, in Mb. |
|
|
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. |
|
void |
setMaximumFileSize(long size)
Sets the size of the largest auditable file. |
|
void |
setWorkingSet(WorkingSet workingSet)
Sets whether to filter projects by their current working set. |
Method Detail |
---|
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()
Location getModelRoot()
ContentCache getContentSetCache(Project project, Workspace workspace)
ContentCache
for a project and 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> ModelAdapter getModelAdapter(java.lang.Class<T> type, java.net.URL url, Project project, Workspace workspace)
Using the Class
of the model type to identify the model type is
problematic (the concrete model type classes are not in the public API),
and hopefully will be replaced with some kind of public identifier.
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.container
- The container containing the element.void close()
java.lang.Object getAttribute(java.lang.Object key)
Auditor.setAttribute(java.lang.Object, java.lang.Object)
java.util.Map getAttributes()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |