← Prev in month ← Prev in thread
Next in thread → Next in month →

[OASIS Issue Tracker] Commented: (ODATA-231) Define how to specify enumeration values in annotations

From
OASIS Issues Tracker <>
Date
2013-02-05T16:30:04+00:00
ID
1052965218.8591360081794598.JavaMail.tomcat55@mw00
Thread
[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
← Prev in month ← Prev in thread
Next in thread → Next in month →