public class PrefixedXMLName extends XMLName
name, NULL_NAME, xmlNamespace
Constructor and Description |
---|
PrefixedXMLName(String rawName,
MXMLData mxmlData)
Constructor This version will parse the containingDocument on the fly (or
use an existing parse, if there is already one in the MXMLDataProvider).
|
PrefixedXMLName(String rawName,
PrefixMap prefixMap)
Constructor
|
PrefixedXMLName(String rawName,
String uri) |
PrefixedXMLName(String xmlNamespace,
String name,
String rawName)
Constructor used when we already know the specific namespace and prefix
being used by a particular instance of an XML element.
|
Modifier and Type | Method and Description |
---|---|
String |
getPrefix()
Get the prefix for the element
|
String |
getPrefixedName()
Return the prefixed version of the name.
|
protected String |
resolvePrefix(String prefix,
MXMLData mxmlData)
Determine which XML namespace is appropriate for the given prefix in the
given document
|
protected String |
resolvePrefix(String prefix,
PrefixMap prefixMap)
Determine which XML namespace is appropriate for the given prefix in the
given prefix map
|
public PrefixedXMLName(String rawName, MXMLData mxmlData)
rawName
- full element name (e.g. mx:Button)mxmlData
- MXMLData containing the elementpublic PrefixedXMLName(String rawName, PrefixMap prefixMap)
rawName
- full element name (e.g. mx:Button)prefixMap
- map of element prefixes to XML namespacespublic PrefixedXMLName(String xmlNamespace, String name, String rawName)
xmlNamespace
- the namespace URIname
- the unprefixed element namerawName
- the prefixed element name (e.g. mx:Button)protected String resolvePrefix(String prefix, MXMLData mxmlData)
prefix
- element prefixmxmlData
- containing MXMLDataprotected String resolvePrefix(String prefix, PrefixMap prefixMap)
public String getPrefix()
public String getPrefixedName()
Copyright © 2016 The Apache Software Foundation. All rights reserved.