sk.uniba.euromath.gene.exportgraph
Class NamespaceMapAcceptor

java.lang.Object
  extended by sk.uniba.euromath.gene.exportgraph.NamespaceMapAcceptor
All Implemented Interfaces:
INamespaceAcceptor

public final class NamespaceMapAcceptor
extends Object
implements INamespaceAcceptor

Accepts all namespaces defined in a map.

Author:
Martin Vysny

Constructor Summary
NamespaceMapAcceptor(Map<String,EnumSet<SourceEnum>> accepts)
          Constructor.
 
Method Summary
 EnumSet<SourceEnum> getSource(String namespace)
          Returns kind of source for this namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceMapAcceptor

public NamespaceMapAcceptor(Map<String,EnumSet<SourceEnum>> accepts)
Constructor.

Parameters:
accepts - Only namespaces from this map are accepted.
Method Detail

getSource

public EnumSet<SourceEnum> getSource(String namespace)
Description copied from interface: INamespaceAcceptor
Returns kind of source for this namespace.

Specified by:
getSource in interface INamespaceAcceptor
Parameters:
namespace - the namespace URI
Returns:
kinds of sources that this coordinator accepts as input for given namespace. null if namespace is not accepted by the acceptor.


Copyright 2003-2003-2006 null. All Rights Reserved.