- All Superinterfaces:
Parser.NamespaceMap
- All Known Subinterfaces:
SheetContext
- All Known Implementing Classes:
AbstractCSSStyleSheet,BaseCSSStyleSheet,BaseDocumentCSSStyleSheet,DOMCSSStyleSheet,DOMDocumentCSSStyleSheet
Maps a namespace URI to a prefix, useful for selector serialization.
-
Method Summary
Modifier and TypeMethodDescriptiongetNamespacePrefix(String namespaceURI) Get the namespace prefix corresponding to the given URI.booleanHas the style sheet a default namespace?voidregisterNamespacePrefix(String prefix, String namespaceURI) Register a namespace prefix - URI pair.Methods inherited from interface io.sf.carte.doc.style.css.nsac.Parser.NamespaceMap
getNamespaceURI
-
Method Details
-
hasDefaultNamespace
boolean hasDefaultNamespace()Has the style sheet a default namespace?- Returns:
trueif it has a default namespace.
-
getNamespacePrefix
Get the namespace prefix corresponding to the given URI.- Parameters:
namespaceURI- the namespace URI.- Returns:
- the prefix.
-
registerNamespacePrefix
Register a namespace prefix - URI pair.- Parameters:
prefix- the namespace prefix.namespaceURI- the namespace URI.
-