OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[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:
-----------------------------

       Proposal: 
The value of the Path attribute of an Annotation or PropertyValue element MAY use terms as path segments if and only if the model element addressed with the preceding path part is annotated with this term.

Examples:

Type containing the following annotation is also annotated with the structured term CreativeWorks.Movie which has a Title property:

<Annotation Term="Display.Caption" Path="CreativeWorks.Movie/Title"/>
<Annotation Term="Display.Caption" Path="vCard.Contact/Fullname" />

Type containing the following annotation has a complex property or navigation property WorkAddress whose type is annotated with vCard.Address using the qualifier Billing: 

<Annotation Term="Display.Caption" Path="WorkAddress/vCard.Address/Region#Billing" /> 

Refer to an annotation on the same property (assume path starts at enclosing entity type)

<EntityType Name="SomeType">
  <Property Name="Something" Type="String">
    <Annotation Term="Display.Hidden" Path="Something/Core.ReadOnly" /> 
  </Property>
  <Property Name="SomethingElse" Type="String">
    <Annotation Term="Display.Hidden" Path="Something/Core.ReadOnly" />
  </Property>
</EntityType>




  was:
The value of the Path attribute of an Annotation or PropertyValue element MAY use terms as path segments if and only if the model element addressed with the preceding path part is annotated with this term.

Examples:

Type containing the following annotation is also annotated with the structured term CreativeWorks.Movie which has a Title property:

<Annotation Term="Display.Caption" Path="CreativeWorks.Movie/Title"/>
<Annotation Term="Display.Caption" Path="vCard.Contact/Fullname" />

Type containing the following annotation has a complex property or navigation property WorkAddress whose type is annotated with vCard.Address using the qualifier Billing: 

<Annotation Term="Display.Caption" Path="WorkAddress/vCard.Address/Region#Billing" /> 

Refer to an annotation on the same property (assume path starts at enclosing entity type)

<EntityType Name="SomeType">
  <Property Name="Something" Type="String">
    <Annotation Term="Display.Hidden" Path="Something/Core.ReadOnly" /> 
  </Property>
  <Property Name="SomethingElse" Type="String"/>
</EntityType>


<Property Name="Something" Type="String">
  <Annotation Term="Display.Hidden" Path="SomethingElseCore.ReadOnly" />
</Property>

Path="BillAddress/martin.vCard.Fullname#Billing" /> (annotation on property)



<Annotation Term="Display.ImageUrl" Path="odata.mediaReadLink" />

    Environment: [Proposed]

> 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
>         Environment: [Proposed]
>            Reporter: Michael Pizzo
>            Priority: Minor
>
> An Annotation should be able to use a previously defined Annotation when specifying a value.  For example, the value of the "Caption" Annotation may be the "Title" property of the "Movie" type, which has been applied to a type in my model through a Annotation. This requires casting to the type specified in the annotation.

-- 
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]