Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.lyo.oslc4j.core.model
Interface IOslcCustomNamespaceProvider

    public interface IOslcCustomNamespaceProvider

This interface provides a way to add custom prefixes at runtime. As it is used inside the `OslcSchema` annotation, every time that this annotation is read during the response writing it is also checked for a class definition in the `OslcSchema.customNamespaceProvider()` field and if there is a concrete implementation of this interface, a new instance of this implementation will be created and the `getCustomNamespacePrefixes()` invoked. All values obtained will be added to the namespace prefix list, thereafter used in the response writing. Note that if the `getCustomNamespacePrefixes()` map, hereafter called customMap, contains keys that are equal to the ones defined in `OslcSchema.value()`, the customMap's key=value will take precedence over the others.

Author:
  Daniel Figueiredo Caetano
See Also:
  `OslcSchema`

Method Summary
`Map<String,String>` | `getCustomNamespacePrefixes()` Gets a map where the key = prefix and value = namespace.

Method Detail

### getCustomNamespacePrefixes

    Map<String,String> getCustomNamespacePrefixes()

  Gets a map where the key = prefix and value = namespace.

  Returns:
    null if there are no custom prefixes to add.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All Rights Reserved.