|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITranslationRepository
Interface for access to XSL translation repository.
Each translation consists of a pair of XSLT files. The translator does
the actual translation from the configuration definition to the actual
configuration file.
The restrictor generates restriction warnings from a configuration
definition, that is tells what will be lost when using the translator.
Even if the translator will be able to translate everything to the
configuration, the restrictor document has to be present. It may produce
an empty result in this case.
This interface allows to use any back end to store the XSL stylesheets we
need for generating the actual configuration for a specific system.
(XSL translators could be stored in File System, CVS, XML-Database etc.).
The repository is expected to cache the parsed XSL translators for
performance reasons.
The creation of repositories is not coverd by this interface. Use the
TranslationRepFactory to instantiate XSL repositories.
| Method Summary | |
|---|---|
XSLTransformer |
getRestrictor(String service,
String name)
Get a restriction analyzer. |
String[] |
getServiceNames()
Get the names of all defined services. |
XSLTransformer |
getTranslator(String service,
String name)
Get a translator. |
String[] |
getTranslatorNames(String service)
Get all available translators for this service |
| Method Detail |
|---|
String[] getServiceNames()
throws VerinecException
Note that the children of hardware (ethernet, wlan, serial) are treated as a service here.
VerinecException - if an error prevents the repository from retreiving the available services.
String[] getTranslatorNames(String service)
throws VerinecException
service - Name of the service to retreive translators for
VerinecException - if an error prevents the repository from retreiving the available translators.
XSLTransformer getTranslator(String service,
String name)
throws VerinecException
The translator transforms a abstract xml configuration into concrete configuration for a target system.
service - Name of the service the desired translator should be forname - Type of target system for the translation
VerinecException - If there is no translator
XSLTransformer getRestrictor(String service,
String name)
throws VerinecException
Restriction analyzers are XSLT documents. They produce warnings about what would get lost if a configuration is translated using their corresponding translator.
service - Name of the service this translator is forname - Name of translation restriction to retreive
VerinecException - If there is no translator
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||