public interface IOslcCustomNamespaceProvider
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.OslcSchema
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getCustomNamespacePrefixes()
Gets a map where the key = prefix and value = namespace.
|
Copyright © 2017. All rights reserved.