[ 
https://issues.apache.org/jira/browse/XERCESJ-906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Glavassevich resolved XERCESJ-906.
------------------------------------------

    Resolution: Won't Fix

We didn't include NMTOKENS because it doesn't need its own constant. You can 
determine that it's this type, one derived from it or one equivalent to it by 
calling getVariety().  If it returns XSSimpleTypeDefinition.VARIETY_LIST call 
getItemType() to retrieve the item type and check if its built-in kind is 
XSConstants.NMTOKEN_DT.

> missing XSConstants.NMTOKENS_DT
> -------------------------------
>
>                 Key: XERCESJ-906
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-906
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: XML Schema API
>    Affects Versions: 2.6.2
>         Environment: Operating System: All
> Platform: All
>            Reporter: Olaf Braatz
>            Priority: Minor
>
> Java mapping for the built-in simple XML data types [JAX-RPC 1.1 chapter 4] 
> as 
> well as derived Java mapping for the remaining built-in simple XML data types 
> [JAX-RPC 1.1 chapter 4] describe that NMTOKENS is a valid and supported type. 
> But in XSConstants exists no entry for NMTOKENS_DT. For type decision using 
> XSSimpleTypeDefinition.getBuiltInKind() it would be convenient if 
> XSConstants.NMTOKENS_DT exists to avoid a slow string compare.
> My current workarround to this fact is in:
> switch(myXSSimpleTypeDefinition.getBuiltInKind())
> is in making in default case a string compare:
> if ("NMTOKENS".equals(myXSSimpleTypeDefinition.getName())) {
>   ...
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to