|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EdmDecorator
Application specific EDM customizations such as Documentation and Annotations.
Method Summary | |
---|---|
void |
decorateEntity(EdmEntitySet entitySet,
EdmItem item,
EdmItem originalQueryItem,
List<OProperty<?>> props,
boolean flatten,
Locale locale,
Map<String,String> options)
Modifies outgoing EDM items. |
List<EdmAnnotation<?>> |
getAnnotationsForEntityType(String namespace,
String typeName)
Gets custom annotations for a given EDM schema. |
List<EdmAnnotation<?>> |
getAnnotationsForProperty(String namespace,
String typeName,
String propName)
Gets custom annotations for a given EDM property. |
List<EdmAnnotation<?>> |
getAnnotationsForSchema(String namespace)
Gets custom annotations for a given EDM schema. |
Object |
getAnnotationValueOverride(EdmItem item,
NamespacedAnnotation<?> annot,
boolean flatten,
Locale locale,
Map<String,String> options)
Gets an annotation value that overrides the original annotation value. |
EdmDocumentation |
getDocumentationForEntityType(String namespace,
String typeName)
Gets custom documentation for a given EDM entity type. |
EdmDocumentation |
getDocumentationForProperty(String namespace,
String typeName,
String propName)
Gets custom documentation for a given EDM property. |
EdmDocumentation |
getDocumentationForSchema(String namespace)
Gets custom documentation for a given EDM schema. |
List<PrefixedNamespace> |
getNamespaces()
Gets custom prefixed namespaces for this EDM. |
Object |
resolvePropertyProperty(EdmProperty st,
PropertyPath path)
Resolves a custom property (i.e. |
Object |
resolveStructuralTypeProperty(EdmStructuralType structuralType,
PropertyPath path)
Resolves a custom property (i.e. |
Method Detail |
---|
void decorateEntity(EdmEntitySet entitySet, EdmItem item, EdmItem originalQueryItem, List<OProperty<?>> props, boolean flatten, Locale locale, Map<String,String> options)
List<EdmAnnotation<?>> getAnnotationsForEntityType(String namespace, String typeName)
List<EdmAnnotation<?>> getAnnotationsForProperty(String namespace, String typeName, String propName)
List<EdmAnnotation<?>> getAnnotationsForSchema(String namespace)
Object getAnnotationValueOverride(EdmItem item, NamespacedAnnotation<?> annot, boolean flatten, Locale locale, Map<String,String> options)
This is an experiment that allows one to localize queryable metadata. Say you have an annotation called LocalizedName on your item. When the metadata is queried, the caller can supply a custom locale parameter in options and this method can override the original LocalizedName with the one for the given locale.
item
- the annotated itemannot
- the annotationoptions
- from query
EdmDocumentation getDocumentationForEntityType(String namespace, String typeName)
EdmDocumentation getDocumentationForProperty(String namespace, String typeName, String propName)
EdmDocumentation getDocumentationForSchema(String namespace)
List<PrefixedNamespace> getNamespaces()
Object resolvePropertyProperty(EdmProperty st, PropertyPath path) throws IllegalArgumentException
st
- the typepath
- the path to the property
IllegalArgumentException
- if the property does not exist.Object resolveStructuralTypeProperty(EdmStructuralType structuralType, PropertyPath path) throws IllegalArgumentException
structuralType
- the typepath
- the path to the property
IllegalArgumentException
- if the property does not exist.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |