public class MXMLManifestManager extends Object implements IMXMLManifestManager
FlexProject has an MXMLManifestManager to resolve MXML tags to ActionScript classes,
using the | Constructor and Description |
|---|
MXMLManifestManager(FlexProject project)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ICompilerProblem> |
getProblems()
Looks for inconsistent manifest mappings and returns
a collection of compiler problems for them.
|
Collection<String> |
getQualifiedNamesForNamespaces(Set<String> namespaceURIs,
boolean manifestEntriesOnly)
Find all the qualified names in the manifest information that have a
corresponding MXML tag whose namespace is in the specified set of
namespaces.
|
Collection<XMLName> |
getTagNamesForClass(String className)
Uses the manifest information to find all the MXML tags that map to a
specified fully-qualified ActionScript classname, such as as
"spark.controls.Button" |
boolean |
isLookupOnly(XMLName tagName)
Determines if a manifest entry is "lookupOnly" or not.
|
String |
resolve(XMLName tagName)
Uses the manifest information to map an MXML tag
to a ActionScript classname.
|
String |
toString()
For debugging only.
|
public MXMLManifestManager(FlexProject project)
project - The FlexProject for which this manifest manager
provides MXML-tag-to-ActionScript-classname mappings.public String toString()
public String resolve(XMLName tagName)
IMXMLManifestManagerresolve in interface IMXMLManifestManagertagName - An XMLName representing an MXML tag,
such as an <s:Button> tag."spark.controls.Button"public boolean isLookupOnly(XMLName tagName)
IMXMLManifestManagerisLookupOnly in interface IMXMLManifestManagertagName - An XMLName representing an MXML tag.true if tag name's manifest entry has its lookupOnly
property set to true, and false otherwise.public Collection<XMLName> getTagNamesForClass(String className)
IMXMLManifestManager"spark.controls.Button"getTagNamesForClass in interface IMXMLManifestManagerclassName - Fully-qualified ActionScript classname, such as as
"spark.controls.Button"XMLName's representing a MXML tags, such
as a "Button" tag in the namespace
"library://ns.adobe.com/flex/spark".public Collection<String> getQualifiedNamesForNamespaces(Set<String> namespaceURIs, boolean manifestEntriesOnly)
IMXMLManifestManagergetQualifiedNamesForNamespaces in interface IMXMLManifestManagernamespaceURIs - Set set of MXML tag namespace URIs such as:
"library://ns.adobe.com/flex/spark"manifestEntriesOnly - determines if all the qualified names are
returned or if only the entries from manifest files are returned.spark.components.Button for example ) that have correponding
MXML tags in the manifest information whose namespaces are in the
specified set of namespaces.public Collection<ICompilerProblem> getProblems()
ICompilerProblem objects.Copyright © 2016 The Apache Software Foundation. All rights reserved.