public class MXMLDataManager extends Object implements IMXMLDataManager
MXMLDataManager
of the IWorkspace
maintains a cache of DOM-like MXMLData
objects for MXML files.
This cache supports concurrent access by multiple threads.
If an MXML file is used in multiple projects, its MXMLData
can be shared, but its symbol table and parse tree cannot,
because the meaning of various MXML tags could be different
in different projects.
Constructor and Description |
---|
MXMLDataManager()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MXMLData |
get(IFileSpecification fileSpec)
Gets the
IMXMLData for the specified MXML file. |
void |
invalidate(IFileSpecification fileSpec)
Removes any cached
IMXMLData objects for the specified file. |
public MXMLData get(IFileSpecification fileSpec)
IMXMLDataManager
IMXMLData
for the specified MXML file. If the manager
already has the IMXMLData
for the file, it returns it. Otherwise,
it will parse the MXML file, store the IMXMLData
, and return it.get
in interface IMXMLDataManager
fileSpec
- An IFileSpecification
object specifying an MXML
file.IMXMLData
object representing the tags, attributes, and
text in the MXML file.public void invalidate(IFileSpecification fileSpec)
IMXMLDataManager
IMXMLData
objects for the specified file.invalidate
in interface IMXMLDataManager
fileSpec
- An IFileSpecification
for the file being
invalidated.Copyright © 2016 The Apache Software Foundation. All rights reserved.