de.fhhannover.inform.trust.ifmapj.messages
Interface NamespaceDeclarationHolder

All Known Subinterfaces:
PublishDelete, SearchHolder, SearchRequest, SubscribeUpdate

public interface NamespaceDeclarationHolder

Some requests may hold extra namespace declarations. For example, the SearchRequest can hold a result-filter, as well a a match-links-filter attribute. If the filter string uses namespaces, these have to be declared at some point. This inteface offers methods to do so. Note: There is no support for default namespaces at this point.

Author:
aw

Method Summary
 void addNamespaceDeclaration(String prefix, String uri)
          Declare a new namespace on this element.
 Collection<Pair<String,String>> getNamespaceDeclarations()
          Note: The returned collection is unmodifiable.
 

Method Detail

addNamespaceDeclaration

void addNamespaceDeclaration(String prefix,
                             String uri)
Declare a new namespace on this element.

Parameters:
prefix -
uri -
Throws:
NullPointerException - if either prefix or uri is null.

getNamespaceDeclarations

Collection<Pair<String,String>> getNamespaceDeclarations()
Note: The returned collection is unmodifiable.

Returns:
the Collection of namespaces.


Copyright © 2012 Trust@FHH. All Rights Reserved.