[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Updated: (ODATA-109) Define Rules for specifying annotations within annotations
[ http://tools.oasis-open.org/issues/browse/ODATA-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ralf Handl updated ODATA-109: ----------------------------- Description: An Annotation should be able to use a previously defined TypeAnnotation when specifying a value. For example, the value of the "Caption" ValueAnnotation may be the "Title" property of the "Movie" type, which has been applied to a type in my model through a TypeAnnotation. This requires casting to the type specified in the type annotation, for example: <ValueAnnotation Term="Display.Title" Path="CreativeWorks.Movie/Title"/> <ValueAnnotation Term="Display.Caption" Path="martin.vCard.Fullname" /> <ValueAnnotation Term="Display.Caption" Path="martin.vCard.Fullname#Billing" /> (annotation with qualifier) <ValueAnnotation Term="Display.Caption" Path="BillAddress/martin.vCard.Fullname#Billing" /> (annotation on property) <ValueAnnotation Term="Display.Caption" Path="martin.vCard.Address#Billing/Street" /> (structured annotation with qualifier) <ValueAnnotation Term="Display.ImageUrl" Path="odata.mediaReadLink" /> was: An Annotation should be able to use a previously defined TypeAnnotation when specifying a value. For example, the value of the "Caption" ValueAnnotation may be the "Title" property of the "Movie" type, which has been applied to a type in my model through a TypeAnnotation. This requires casting to the type specified in the type annotation, for example: <ValueAnnotation Term="Display.Title" Path="$it/CreativeWorks.Movie/Title"/> > Define Rules for specifying annotations within annotations > ---------------------------------------------------------- > > Key: ODATA-109 > URL: http://tools.oasis-open.org/issues/browse/ODATA-109 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Bug > Components: OData CSDL v1.0 > Reporter: Michael Pizzo > Priority: Minor > > An Annotation should be able to use a previously defined TypeAnnotation when specifying a value. For example, the value of the "Caption" ValueAnnotation may be the "Title" property of the "Movie" type, which has been applied to a type in my model through a TypeAnnotation. This requires casting to the type specified in the type annotation, for example: > <ValueAnnotation Term="Display.Title" Path="CreativeWorks.Movie/Title"/> > <ValueAnnotation Term="Display.Caption" Path="martin.vCard.Fullname" /> > <ValueAnnotation Term="Display.Caption" Path="martin.vCard.Fullname#Billing" /> (annotation with qualifier) > <ValueAnnotation Term="Display.Caption" Path="BillAddress/martin.vCard.Fullname#Billing" /> (annotation on property) > <ValueAnnotation Term="Display.Caption" Path="martin.vCard.Address#Billing/Street" /> (structured annotation with qualifier) > <ValueAnnotation Term="Display.ImageUrl" Path="odata.mediaReadLink" /> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]