org.oddjob.arooa.parsing
Class SimplePrefixMappings

java.lang.Object
  extended by org.oddjob.arooa.parsing.SimplePrefixMappings
All Implemented Interfaces:
PrefixMappings

public class SimplePrefixMappings
extends Object
implements PrefixMappings


Constructor Summary
SimplePrefixMappings()
           
 
Method Summary
 void add(PrefixMappings otherMappings)
           
 String[] getPrefixes()
           
 String getPrefixFor(URI uri)
           
 QTag getQName(ArooaElement element)
           
 URI getUriFor(String prefix)
           
 void put(String prefix, URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePrefixMappings

public SimplePrefixMappings()
Method Detail

add

public void add(PrefixMappings otherMappings)
         throws DuplicateMappingsException
Specified by:
add in interface PrefixMappings
Throws:
DuplicateMappingsException

put

public void put(String prefix,
                URI uri)
         throws DuplicateMappingsException
Specified by:
put in interface PrefixMappings
Throws:
DuplicateMappingsException

getPrefixFor

public String getPrefixFor(URI uri)
Specified by:
getPrefixFor in interface PrefixMappings

getUriFor

public URI getUriFor(String prefix)
Specified by:
getUriFor in interface PrefixMappings

getPrefixes

public String[] getPrefixes()
Specified by:
getPrefixes in interface PrefixMappings

getQName

public QTag getQName(ArooaElement element)
Specified by:
getQName in interface PrefixMappings