[ 
https://issues.apache.org/jira/browse/PIVOT-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876662#action_12876662
 ] 

Greg Brown commented on PIVOT-520:
----------------------------------

I don't agree that any relationship between "name" and WTKX ID should be 
implied or enforced (just as you cannot enforce a relationship between a Java 
variable name and the "name" property). That would require WTKXSerializer to 
know too much about the classes it serializes. 

Yes, this could be done via some sort of interface or annotation, but I think 
these two concepts should remain separate: WTKX ID = variable name, component 
"name" = property.


> add a name property to Component
> --------------------------------
>
>                 Key: PIVOT-520
>                 URL: https://issues.apache.org/jira/browse/PIVOT-520
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>    Affects Versions: 1.5
>            Reporter: Appddevvv
>            Priority: Minor
>
> Add a name property to Component
> a) A getter/setter
> b) A method to Container for Component getNamedComponent(String componentName)
> The name should default to an the wtkx:id if one is specified for that 
> component or if the name is not specified, null. If a name is specified and 
> no wtkx:id is specified , it should become the wtkx:id of that component. The 
> name must be a valid java identifier, otherwise an serialization exception 
> should be thrown. The name used in the component should be left and right 
> whitespace trimmed.

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

Reply via email to