[ 
https://issues.apache.org/jira/browse/UIMA-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779865#comment-13779865
 ] 

Peter Klügl commented on UIMA-3303:
-----------------------------------

Another scenario, especially if many types need to be imported, could be:

{noformat}
IMPORT com.example.TypeSystem AS prefix;
{noformat}

... where the prefix is maybe something like an alias or shortcut for the 
namespace. Then, the types of TypeSystem could be used with the short name and 
prefix:

{noformat}
prefix.Type{-> Stuff};
{noformat}

                
> Add a way to alias types in RUTA (e.g. "IMPORT type AS alias")
> --------------------------------------------------------------
>
>                 Key: UIMA-3303
>                 URL: https://issues.apache.org/jira/browse/UIMA-3303
>             Project: UIMA
>          Issue Type: Bug
>          Components: ruta
>            Reporter: Alexandre Patry
>
> It would be convenient to define type aliases in RUTA script.
> One scenario where it would help is when many types have the same short name:
> {{
> IMPORT com.example.a.T AS TA}
> IMPORT com.example.b.T AS TB}
> }}
> For a discussion about it, see UIMA-3292.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to