Package de.businesscode.util
Class StandardNamespaceContext
- java.lang.Object
-
- de.businesscode.util.StandardNamespaceContext
-
- All Implemented Interfaces:
javax.xml.namespace.NamespaceContext
public class StandardNamespaceContext extends java.lang.Object implements javax.xml.namespace.NamespaceContext
Singleton to hold all well-known BCD-UI namespaces and their prefixes The prefixes must be used in client js code because they are made known to the browser's parser
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BCDXML_NAMESPACE
static java.lang.String
BCDXML_PREFIX
static java.lang.String
BCDXSLGEN_NAMESPACE
static java.lang.String
BCDXSLGEN_PREFIX
static java.lang.String
BINDINGS_NAMESPACE
static java.lang.String
BINDINGS_PREFIX
static java.lang.String
CALC_NAMESPACE
static java.lang.String
CALC_PREFIX
static java.lang.String
CHAIN_NAMESPACE
static java.lang.String
CHAIN_PREFIX
static java.lang.String
CHART_NAMESPACE
static java.lang.String
CHART_PREFIX
static java.lang.String
CONFIG_NAMESPACE
static java.lang.String
CONFIG_PREFIX
static java.lang.String
CSV_NAMESPACE
static java.lang.String
CSV_PREFIX
static java.lang.String
CTX_NAMESPACE
static java.lang.String
CTX_PREFIX
static java.lang.String
CUBE_NAMESPACE
static java.lang.String
CUBE_PREFIX
static java.lang.String
CUST_NAMESPACE
static java.lang.String
CUST_PREFIX
static java.lang.String
DM_NAMESPACE
static java.lang.String
DM_PREFIX
static java.lang.String
EXSLT_NAMESPACE
static java.lang.String
EXSLT_PREFIX
static java.lang.String
EXSLTDATE_NAMESPACE
static java.lang.String
EXSLTDATE_PREFIX
static java.lang.String
FAR_NAMESPACE
static java.lang.String
FAR_PREFIX
static java.lang.String
FILTER_NAMESPACE
static java.lang.String
FILTER_PREFIX
static java.lang.String
GML_NAMESPACE
static java.lang.String
GML_PREFIX
static java.lang.String
GRID_NAMESPACE
static java.lang.String
GRID_PREFIX
static java.lang.String
GUISTATUS_NAMESPACE
static java.lang.String
GUISTATUS_PREFIX
static java.lang.String
HTML_NAMESPACE
static java.lang.String
HTML_PREFIX
static java.lang.String
MENU_NAMESPACE
static java.lang.String
MENU_PREFIX
static java.lang.String
MSXSL_NAMESPACE
static java.lang.String
MSXSL_PREFIX
static java.lang.String
RENDERER_NAMESPACE
static java.lang.String
RENDERER_PREFIX
static java.lang.String
SCORECARD_NAMESPACE
static java.lang.String
SCORECARD_PREFIX
static java.lang.String
SECURITY_NAMESPACE
static java.lang.String
SECURITY_PREFIX
static java.lang.String
SOAPENV_NAMESPACE
static java.lang.String
SOAPENV_PREFIX
static java.lang.String
TEXTNAV_NAMESPACE
static java.lang.String
TEXTNAV_PREFIX
static java.lang.String
TREE_NAMESPACE
static java.lang.String
TREE_PREFIX
static java.lang.String
WRS_NAMESPACE
static java.lang.String
WRS_PREFIX
static java.lang.String
WRSREQUEST_NAMESPACE
static java.lang.String
WRSREQUEST_PREFIX
static java.lang.String
XAPI_NAMESPACE
static java.lang.String
XAPI_PREFIX
static java.lang.String
XI_NAMESPACE
static java.lang.String
XI_PREFIX
static java.lang.String
XSL_NAMESPACE
static java.lang.String
XSL_PREFIX
static java.lang.String
XSLTFORMULAR_NAMESPACE
static java.lang.String
XSLTFORMULAR_PREFIX
static java.lang.String
XSLTPARAMS_NAMESPACE
static java.lang.String
XSLTPARAMS_PREFIX
-
Constructor Summary
Constructors Modifier Constructor Description protected
StandardNamespaceContext()
Constructor for singelton
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAsJs()
For usage by the clientstatic StandardNamespaceContext
getInstance()
Provide the singeltonjava.util.SortedMap<java.lang.String,java.lang.String>
getMapping()
java.lang.String
getNamespaceURI(java.lang.String prefix)
java.lang.String
getPrefix(java.lang.String namespaceURI)
java.util.Iterator
getPrefixes(java.lang.String namespaceURI)
java.lang.String
getXMLPrefix(java.lang.String namespaceURI)
getXMLPrefix
-
-
-
Field Detail
-
BCDXML_PREFIX
public static final java.lang.String BCDXML_PREFIX
- See Also:
- Constant Field Values
-
BCDXML_NAMESPACE
public static final java.lang.String BCDXML_NAMESPACE
- See Also:
- Constant Field Values
-
BCDXSLGEN_PREFIX
public static final java.lang.String BCDXSLGEN_PREFIX
- See Also:
- Constant Field Values
-
BCDXSLGEN_NAMESPACE
public static final java.lang.String BCDXSLGEN_NAMESPACE
- See Also:
- Constant Field Values
-
BINDINGS_PREFIX
public static final java.lang.String BINDINGS_PREFIX
- See Also:
- Constant Field Values
-
BINDINGS_NAMESPACE
public static final java.lang.String BINDINGS_NAMESPACE
- See Also:
- Constant Field Values
-
CALC_PREFIX
public static final java.lang.String CALC_PREFIX
- See Also:
- Constant Field Values
-
CALC_NAMESPACE
public static final java.lang.String CALC_NAMESPACE
- See Also:
- Constant Field Values
-
CHAIN_PREFIX
public static final java.lang.String CHAIN_PREFIX
- See Also:
- Constant Field Values
-
CHAIN_NAMESPACE
public static final java.lang.String CHAIN_NAMESPACE
- See Also:
- Constant Field Values
-
CHART_PREFIX
public static final java.lang.String CHART_PREFIX
- See Also:
- Constant Field Values
-
CHART_NAMESPACE
public static final java.lang.String CHART_NAMESPACE
- See Also:
- Constant Field Values
-
CUBE_PREFIX
public static final java.lang.String CUBE_PREFIX
- See Also:
- Constant Field Values
-
CUBE_NAMESPACE
public static final java.lang.String CUBE_NAMESPACE
- See Also:
- Constant Field Values
-
GRID_PREFIX
public static final java.lang.String GRID_PREFIX
- See Also:
- Constant Field Values
-
GRID_NAMESPACE
public static final java.lang.String GRID_NAMESPACE
- See Also:
- Constant Field Values
-
FAR_PREFIX
public static final java.lang.String FAR_PREFIX
- See Also:
- Constant Field Values
-
FAR_NAMESPACE
public static final java.lang.String FAR_NAMESPACE
- See Also:
- Constant Field Values
-
CUST_PREFIX
public static final java.lang.String CUST_PREFIX
- See Also:
- Constant Field Values
-
CUST_NAMESPACE
public static final java.lang.String CUST_NAMESPACE
- See Also:
- Constant Field Values
-
CSV_PREFIX
public static final java.lang.String CSV_PREFIX
- See Also:
- Constant Field Values
-
CSV_NAMESPACE
public static final java.lang.String CSV_NAMESPACE
- See Also:
- Constant Field Values
-
CONFIG_PREFIX
public static final java.lang.String CONFIG_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_NAMESPACE
public static final java.lang.String CONFIG_NAMESPACE
- See Also:
- Constant Field Values
-
CTX_PREFIX
public static final java.lang.String CTX_PREFIX
- See Also:
- Constant Field Values
-
CTX_NAMESPACE
public static final java.lang.String CTX_NAMESPACE
- See Also:
- Constant Field Values
-
DM_PREFIX
public static final java.lang.String DM_PREFIX
- See Also:
- Constant Field Values
-
DM_NAMESPACE
public static final java.lang.String DM_NAMESPACE
- See Also:
- Constant Field Values
-
EXSLT_PREFIX
public static final java.lang.String EXSLT_PREFIX
- See Also:
- Constant Field Values
-
EXSLT_NAMESPACE
public static final java.lang.String EXSLT_NAMESPACE
- See Also:
- Constant Field Values
-
EXSLTDATE_PREFIX
public static final java.lang.String EXSLTDATE_PREFIX
- See Also:
- Constant Field Values
-
EXSLTDATE_NAMESPACE
public static final java.lang.String EXSLTDATE_NAMESPACE
- See Also:
- Constant Field Values
-
FILTER_PREFIX
public static final java.lang.String FILTER_PREFIX
- See Also:
- Constant Field Values
-
FILTER_NAMESPACE
public static final java.lang.String FILTER_NAMESPACE
- See Also:
- Constant Field Values
-
GML_PREFIX
public static final java.lang.String GML_PREFIX
- See Also:
- Constant Field Values
-
GML_NAMESPACE
public static final java.lang.String GML_NAMESPACE
- See Also:
- Constant Field Values
-
GUISTATUS_PREFIX
public static final java.lang.String GUISTATUS_PREFIX
- See Also:
- Constant Field Values
-
GUISTATUS_NAMESPACE
public static final java.lang.String GUISTATUS_NAMESPACE
- See Also:
- Constant Field Values
-
HTML_PREFIX
public static final java.lang.String HTML_PREFIX
- See Also:
- Constant Field Values
-
HTML_NAMESPACE
public static final java.lang.String HTML_NAMESPACE
- See Also:
- Constant Field Values
-
MENU_PREFIX
public static final java.lang.String MENU_PREFIX
- See Also:
- Constant Field Values
-
MENU_NAMESPACE
public static final java.lang.String MENU_NAMESPACE
- See Also:
- Constant Field Values
-
MSXSL_PREFIX
public static final java.lang.String MSXSL_PREFIX
- See Also:
- Constant Field Values
-
MSXSL_NAMESPACE
public static final java.lang.String MSXSL_NAMESPACE
- See Also:
- Constant Field Values
-
RENDERER_PREFIX
public static final java.lang.String RENDERER_PREFIX
- See Also:
- Constant Field Values
-
RENDERER_NAMESPACE
public static final java.lang.String RENDERER_NAMESPACE
- See Also:
- Constant Field Values
-
SCORECARD_PREFIX
public static final java.lang.String SCORECARD_PREFIX
- See Also:
- Constant Field Values
-
SCORECARD_NAMESPACE
public static final java.lang.String SCORECARD_NAMESPACE
- See Also:
- Constant Field Values
-
SECURITY_PREFIX
public static final java.lang.String SECURITY_PREFIX
- See Also:
- Constant Field Values
-
SECURITY_NAMESPACE
public static final java.lang.String SECURITY_NAMESPACE
- See Also:
- Constant Field Values
-
SOAPENV_PREFIX
public static final java.lang.String SOAPENV_PREFIX
- See Also:
- Constant Field Values
-
SOAPENV_NAMESPACE
public static final java.lang.String SOAPENV_NAMESPACE
- See Also:
- Constant Field Values
-
TEXTNAV_PREFIX
public static final java.lang.String TEXTNAV_PREFIX
- See Also:
- Constant Field Values
-
TEXTNAV_NAMESPACE
public static final java.lang.String TEXTNAV_NAMESPACE
- See Also:
- Constant Field Values
-
TREE_PREFIX
public static final java.lang.String TREE_PREFIX
- See Also:
- Constant Field Values
-
TREE_NAMESPACE
public static final java.lang.String TREE_NAMESPACE
- See Also:
- Constant Field Values
-
WRS_PREFIX
public static final java.lang.String WRS_PREFIX
- See Also:
- Constant Field Values
-
WRS_NAMESPACE
public static final java.lang.String WRS_NAMESPACE
- See Also:
- Constant Field Values
-
WRSREQUEST_PREFIX
public static final java.lang.String WRSREQUEST_PREFIX
- See Also:
- Constant Field Values
-
WRSREQUEST_NAMESPACE
public static final java.lang.String WRSREQUEST_NAMESPACE
- See Also:
- Constant Field Values
-
XAPI_PREFIX
public static final java.lang.String XAPI_PREFIX
- See Also:
- Constant Field Values
-
XAPI_NAMESPACE
public static final java.lang.String XAPI_NAMESPACE
- See Also:
- Constant Field Values
-
XSL_PREFIX
public static final java.lang.String XSL_PREFIX
- See Also:
- Constant Field Values
-
XSL_NAMESPACE
public static final java.lang.String XSL_NAMESPACE
- See Also:
- Constant Field Values
-
XI_PREFIX
public static final java.lang.String XI_PREFIX
- See Also:
- Constant Field Values
-
XI_NAMESPACE
public static final java.lang.String XI_NAMESPACE
- See Also:
- Constant Field Values
-
XSLTFORMULAR_PREFIX
public static final java.lang.String XSLTFORMULAR_PREFIX
- See Also:
- Constant Field Values
-
XSLTFORMULAR_NAMESPACE
public static final java.lang.String XSLTFORMULAR_NAMESPACE
- See Also:
- Constant Field Values
-
XSLTPARAMS_PREFIX
public static final java.lang.String XSLTPARAMS_PREFIX
- See Also:
- Constant Field Values
-
XSLTPARAMS_NAMESPACE
public static final java.lang.String XSLTPARAMS_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static StandardNamespaceContext getInstance()
Provide the singelton- Returns:
-
getAsJs
public java.lang.String getAsJs()
For usage by the client- Returns:
- A js map named "namespaces" containing prefix-namespace mappings
-
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
- Specified by:
getNamespaceURI
in interfacejavax.xml.namespace.NamespaceContext
-
getPrefix
public java.lang.String getPrefix(java.lang.String namespaceURI)
- Specified by:
getPrefix
in interfacejavax.xml.namespace.NamespaceContext
-
getMapping
public java.util.SortedMap<java.lang.String,java.lang.String> getMapping()
- Returns:
- the mapping (unmodifiable)
-
getPrefixes
public java.util.Iterator getPrefixes(java.lang.String namespaceURI)
- Specified by:
getPrefixes
in interfacejavax.xml.namespace.NamespaceContext
-
getXMLPrefix
public java.lang.String getXMLPrefix(java.lang.String namespaceURI)
getXMLPrefix- Parameters:
namespaceURI
-- Returns:
- the String "prefix:" or an empty String if not prefix for the given namespaceURI
-
-