org.schmant.support.xml
Interface XmlCatalog<T extends XmlCatalog<T>>

All Known Implementing Classes:
XmlCatalogResolver

public interface XmlCatalog<T extends XmlCatalog<T>>

This interface defines an XML entity catalog. The catalog contains mappings between system ID:s, public ID:s and URI:s and objects that can be interpreted by InterpretAsReadableFileStrategy.

Since:
0.5
Author:
Karl Gustafsson
Task_package:
org.schmant.task.base

Method Summary
 T addPublicId(String pid, Object o)
          Add one entity with the supplied public ID to the catalog.
 T addPublicIds(Map<String,?> m)
          Add a map with public ID:s and their corresponding entities.
 T addSystemId(String sid, Object o)
          Add one entity with the supplied system ID to the catalog.
 T addSystemIds(Map<String,?> m)
          Add a map with system ID:s and their corresponding entities.
 T addUri(String uri, Object o)
          Add one entity with the supplied URI to the catalog.
 T addUris(Map<String,?> m)
          Add a map with URI:s and their corresponding entities.
 

Method Detail

addSystemId

T addSystemId(String sid,
              Object o)
Add one entity with the supplied system ID to the catalog.

Parameters:
sid - The system ID.
o - An entity that can be interpreted by InterpretAsReadableFileStrategy.
Returns:
this.

addSystemIds

T addSystemIds(Map<String,?> m)
Add a map with system ID:s and their corresponding entities.

Parameters:
m - A mapping between system ID:s and entities.
Returns:
this

addPublicId

T addPublicId(String pid,
              Object o)
Add one entity with the supplied public ID to the catalog.

Parameters:
pid - The public ID.
o - An entity that can be interpreted by InterpretAsReadableFileStrategy.
Returns:
this.

addPublicIds

T addPublicIds(Map<String,?> m)
Add a map with public ID:s and their corresponding entities.

Parameters:
m - A mapping between public ID:s and entities.
Returns:
this

addUri

T addUri(String uri,
         Object o)
Add one entity with the supplied URI to the catalog.

Parameters:
uri - The URI.
o - An entity that can be interpreted by InterpretAsReadableFileStrategy.
Returns:
this.

addUris

T addUris(Map<String,?> m)
Add a map with URI:s and their corresponding entities.

Parameters:
m - A mapping between URI:s and entities.
Returns:
this