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] Commented: (ODATA-231) Define how to specify enumeration values in annotations


    [ http://tools.oasis-open.org/issues/browse/ODATA-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32337#action_32337 ] 

Ralf Handl commented on ODATA-231:
----------------------------------

Required a SimpleIdentifier for the expression value:

<Annotation Term="org.example.Color" EnumMember="Yellow" />

<Annotation Term="org.example.Color">
 <EnumMember>Yellow</EnumMember>
</Annotation>

An alternative would have been to allow (or even require) a Qualified name:

<Annotation Term="org.example.Color" EnumMember="org.example.ColorType.Yellow" />

<Annotation Term="org.example.Color">
 <EnumMember>org.example.ColorType.Yellow</EnumMember>
</Annotation>

But I assume that real cases are rare when the EnumType definition is known and the Term definition using that EnumType definition is not.

> Define how to specify enumeration values in annotations
> -------------------------------------------------------
>
>                 Key: ODATA-231
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-231
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData CSDL v1.0
>    Affects Versions: WD01
>         Environment: [Proposed]
>            Reporter: Michael Pizzo
>            Assignee: Ralf Handl
>             Fix For: WD01
>
>
> When we fleshed out semantics/syntax/etc. around Enumerations we neglected to define how to reference Enum values in Annotations.

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