|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xslt.result.NamespaceSupport
NamespaceSupport helps ResultBuilders to output the correct namespace declarations.
Nested Class Summary | |
static class |
NamespaceSupport.Declaration
|
Constructor Summary | |
NamespaceSupport()
|
Method Summary | |
void |
addDeclaration(String prefix,
String uri,
boolean canOverwrite)
|
String |
adjustAttributeName(String name,
String prefix,
String uri)
Norm the qualififed attribute name by adjusting its namespace prefix if it a) does not yet have a prefix (e.g. |
void |
endElement()
Called when a element ended. |
NamespaceSupport.Declaration |
getElementDeclarations()
Get the namespace declaration chain for the current element. |
String |
getElementUri(String prefix)
Return the uri for the namespace prefix declared by the current element. |
String |
getPrefix(String uri)
Return the prefix for the namespace uri |
String |
getUri(String prefix)
Return the uri for the namespace prefix |
void |
reset()
Reset the NamespaceSupport to the default state. |
void |
startElement(String elementUri,
NamespaceContext nsContext,
NamespaceContext lastContext)
Called when a new element starts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NamespaceSupport()
Method Detail |
public void startElement(String elementUri, NamespaceContext nsContext, NamespaceContext lastContext)
public void endElement()
public NamespaceSupport.Declaration getElementDeclarations()
public void addDeclaration(String prefix, String uri, boolean canOverwrite) throws XsltException
XsltException
public String adjustAttributeName(String name, String prefix, String uri)
name
- the qualified name of the attribute.prefix
- the prefifx. If it is null then a prefix should be generateduri
- the namespace uri
public String getPrefix(String uri)
public String getUri(String prefix)
public String getElementUri(String prefix)
public void reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |