You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "julien nioche (JIRA)" <ui...@incubator.apache.org> on 2008/09/23 18:51:44 UTC
[jira] Created: (UIMA-1188) More constraints for primitive types
More constraints for primitive types
------------------------------------
Key: UIMA-1188
URL: https://issues.apache.org/jira/browse/UIMA-1188
Project: UIMA
Issue Type: New Feature
Components: Core Java Framework
Reporter: julien nioche
Priority: Minor
ConstraintFactory currently has the following methods:
createIntConstraint()
createFloatConstraint()
createStringConstraint()
but there is corresponding constraints for bytes, shorts, longs or booleans.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (UIMA-1188) More constraints for primitive types
Posted by "julien nioche (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641808#action_12641808 ]
julien nioche commented on UIMA-1188:
-------------------------------------
Indeed, I forgot to do "svn add" before generating the diff.
Maybe we could add the following method to FSBooleanConstraintImpl?
public String toString() {
// need to escape quotes and backslashes
StringBuffer buf = new StringBuffer();
buf.append("= \"");
buf.append(constraint);
buf.append("\"");
return buf.toString();
}
> More constraints for primitive types
> ------------------------------------
>
> Key: UIMA-1188
> URL: https://issues.apache.org/jira/browse/UIMA-1188
> Project: UIMA
> Issue Type: New Feature
> Components: Core Java Framework
> Reporter: julien nioche
> Assignee: Thilo Goetz
> Priority: Minor
> Fix For: 2.3
>
> Attachments: booleanConstraint.diff
>
>
> ConstraintFactory currently has the following methods:
> createIntConstraint()
> createFloatConstraint()
> createStringConstraint()
> but there is corresponding constraints for bytes, shorts, longs or booleans.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (UIMA-1188) More constraints for primitive types
Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641900#action_12641900 ]
Thilo Goetz commented on UIMA-1188:
-----------------------------------
Done, thanks.
And I still think turning on that wiki formatting was a mistake. C.f. the previous comment.
> More constraints for primitive types
> ------------------------------------
>
> Key: UIMA-1188
> URL: https://issues.apache.org/jira/browse/UIMA-1188
> Project: UIMA
> Issue Type: New Feature
> Components: Core Java Framework
> Reporter: julien nioche
> Assignee: Thilo Goetz
> Priority: Minor
> Fix For: 2.3
>
> Attachments: booleanConstraint.diff
>
>
> ConstraintFactory currently has the following methods:
> createIntConstraint()
> createFloatConstraint()
> createStringConstraint()
> but there is corresponding constraints for bytes, shorts, longs or booleans.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (UIMA-1188) More constraints for primitive types
Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thilo Goetz reassigned UIMA-1188:
---------------------------------
Assignee: Thilo Goetz
> More constraints for primitive types
> ------------------------------------
>
> Key: UIMA-1188
> URL: https://issues.apache.org/jira/browse/UIMA-1188
> Project: UIMA
> Issue Type: New Feature
> Components: Core Java Framework
> Reporter: julien nioche
> Assignee: Thilo Goetz
> Priority: Minor
> Attachments: booleanConstraint.diff
>
>
> ConstraintFactory currently has the following methods:
> createIntConstraint()
> createFloatConstraint()
> createStringConstraint()
> but there is corresponding constraints for bytes, shorts, longs or booleans.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (UIMA-1188) More constraints for primitive types
Posted by "julien nioche (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
julien nioche updated UIMA-1188:
--------------------------------
Attachment: booleanConstraint.diff
Patch which adds BooleanConstraint implementations
> More constraints for primitive types
> ------------------------------------
>
> Key: UIMA-1188
> URL: https://issues.apache.org/jira/browse/UIMA-1188
> Project: UIMA
> Issue Type: New Feature
> Components: Core Java Framework
> Reporter: julien nioche
> Priority: Minor
> Attachments: booleanConstraint.diff
>
>
> ConstraintFactory currently has the following methods:
> createIntConstraint()
> createFloatConstraint()
> createStringConstraint()
> but there is corresponding constraints for bytes, shorts, longs or booleans.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Commented: (UIMA-1188) More constraints for primitive
types
Posted by Thilo Goetz <tw...@gmx.de>.
Marshall Schor (JIRA) wrote:
> [ https://issues.apache.org/jira/browse/UIMA-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641919#action_12641919 ]
>
> Marshall Schor commented on UIMA-1188:
> --------------------------------------
>
> Re: wiki formatting, you can click on the little question mark to the right when writing and see how to format things. For instance, I sometimes do code snippets using:
>
> {noformat}
> {code:title=Bar.java|borderStyle=solid}
> public String toString() {
> // need to escape quotes and backslashes
> StringBuffer buf = new StringBuffer();
> buf.append("= \"");
> buf.append(constraint);
> buf.append("\"");
> return buf.toString();
> }
> {code}
> {noformat}
Or, before we had the wiki formatting, you didn't need any of
this and it just came out right. It's just a PITA.
>
> which looks like this (title and borderstyle are optional...). Note the syntax highlighting. It seems to pick up the "kind" following the code. code:xml works for xml, and code:java works too.
>
> {code:java|title=Bar.java|borderStyle=solid}
> public String toString() {
> // need to escape quotes and backslashes
> StringBuffer buf = new StringBuffer();
> buf.append("= \"");
> buf.append(constraint);
> buf.append("\"");
> return buf.toString();
> }
> {code}
>
>
>> More constraints for primitive types
>> ------------------------------------
>>
>> Key: UIMA-1188
>> URL: https://issues.apache.org/jira/browse/UIMA-1188
>> Project: UIMA
>> Issue Type: New Feature
>> Components: Core Java Framework
>> Reporter: julien nioche
>> Assignee: Thilo Goetz
>> Priority: Minor
>> Fix For: 2.3
>>
>> Attachments: booleanConstraint.diff
>>
>>
>> ConstraintFactory currently has the following methods:
>> createIntConstraint()
>> createFloatConstraint()
>> createStringConstraint()
>> but there is corresponding constraints for bytes, shorts, longs or booleans.
>
[jira] Commented: (UIMA-1188) More constraints for primitive types
Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641919#action_12641919 ]
Marshall Schor commented on UIMA-1188:
--------------------------------------
Re: wiki formatting, you can click on the little question mark to the right when writing and see how to format things. For instance, I sometimes do code snippets using:
{noformat}
{code:title=Bar.java|borderStyle=solid}
public String toString() {
// need to escape quotes and backslashes
StringBuffer buf = new StringBuffer();
buf.append("= \"");
buf.append(constraint);
buf.append("\"");
return buf.toString();
}
{code}
{noformat}
which looks like this (title and borderstyle are optional...). Note the syntax highlighting. It seems to pick up the "kind" following the code. code:xml works for xml, and code:java works too.
{code:java|title=Bar.java|borderStyle=solid}
public String toString() {
// need to escape quotes and backslashes
StringBuffer buf = new StringBuffer();
buf.append("= \"");
buf.append(constraint);
buf.append("\"");
return buf.toString();
}
{code}
> More constraints for primitive types
> ------------------------------------
>
> Key: UIMA-1188
> URL: https://issues.apache.org/jira/browse/UIMA-1188
> Project: UIMA
> Issue Type: New Feature
> Components: Core Java Framework
> Reporter: julien nioche
> Assignee: Thilo Goetz
> Priority: Minor
> Fix For: 2.3
>
> Attachments: booleanConstraint.diff
>
>
> ConstraintFactory currently has the following methods:
> createIntConstraint()
> createFloatConstraint()
> createStringConstraint()
> but there is corresponding constraints for bytes, shorts, longs or booleans.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (UIMA-1188) More constraints for primitive types
Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thilo Goetz resolved UIMA-1188.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.3
Patch applied. Julien, I think you forgot to include the new files that need to be created. I only noticed that when I had applied the patch, so I added them as it was pretty straightforward. Please check what I did, and if you have a way of testing this, please do.
> More constraints for primitive types
> ------------------------------------
>
> Key: UIMA-1188
> URL: https://issues.apache.org/jira/browse/UIMA-1188
> Project: UIMA
> Issue Type: New Feature
> Components: Core Java Framework
> Reporter: julien nioche
> Assignee: Thilo Goetz
> Priority: Minor
> Fix For: 2.3
>
> Attachments: booleanConstraint.diff
>
>
> ConstraintFactory currently has the following methods:
> createIntConstraint()
> createFloatConstraint()
> createStringConstraint()
> but there is corresponding constraints for bytes, shorts, longs or booleans.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.