org.springframework.util.xml

## 类 SimpleNamespaceContext

- java.lang.Object
- - org.springframework.util.xml.SimpleNamespaceContext

- 所有已实现的接口:
    NamespaceContext

      public class SimpleNamespaceContext
      extends Object
      implements NamespaceContext

  Simple `javax.xml.namespace.NamespaceContext` implementation. Follows the standard `NamespaceContext` contract, and is loadable via a `java.util.Map` or `java.util.Properties` object
  从以下版本开始:
    3.0
  作者:
    Arjen Poutsma, Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `SimpleNamespaceContext()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `bindDefaultNamespaceUri(String namespaceUri)` Bind the given namespace as default namespace.
    `void` | `bindNamespaceUri(String prefix, String namespaceUri)` Bind the given prefix to the given namespace.
    `void` | `clear()` Remove all declared prefixes.
    `Iterator<String>` | `getBoundPrefixes()` Return all declared prefixes.
    `String` | `getNamespaceURI(String prefix)`
    `String` | `getPrefix(String namespaceUri)`
    `Iterator<String>` | `getPrefixes(String namespaceUri)`
    `void` | `removeBinding(String prefix)` Remove the given prefix from this context.
    `void` | `setBindings(Map<String,String> bindings)` Set the bindings for this namespace context.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SimpleNamespaceContext

          public SimpleNamespaceContext()

  - ### 方法详细资料

    - #### getNamespaceURI

          public String getNamespaceURI(String prefix)

      指定者:
        `getNamespaceURI` 在接口中 `NamespaceContext`

    - #### getPrefix

          @Nullable
          public String getPrefix(String namespaceUri)

      指定者:
        `getPrefix` 在接口中 `NamespaceContext`

    - #### getPrefixes

          public Iterator<String> getPrefixes(String namespaceUri)

      指定者:
        `getPrefixes` 在接口中 `NamespaceContext`

    - #### setBindings

          public void setBindings(Map<String,String> bindings)

      Set the bindings for this namespace context. The supplied map must consist of string key value pairs.

    - #### bindDefaultNamespaceUri

          public void bindDefaultNamespaceUri(String namespaceUri)

      Bind the given namespace as default namespace.
      参数:
        `namespaceUri` - the namespace uri

    - #### bindNamespaceUri

          public void bindNamespaceUri(String prefix,
                                       String namespaceUri)

      Bind the given prefix to the given namespace.
      参数:
        `prefix` - the namespace prefix
        `namespaceUri` - the namespace uri

    - #### removeBinding

          public void removeBinding(@Nullable
                                    String prefix)

      Remove the given prefix from this context.
      参数:
        `prefix` - the prefix to be removed

    - #### clear

          public void clear()

      Remove all declared prefixes.

    - #### getBoundPrefixes

          public Iterator<String> getBoundPrefixes()

      Return all declared prefixes.