You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2007/02/23 13:24:14 UTC

DO NOT REPLY [Bug 41690] New: - Make CustomProperties.put(CustomProperty) public

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41690>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41690

           Summary: Make CustomProperties.put(CustomProperty) public
           Product: POI
           Version: 3.0-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: HPFS
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: thingeley@netspeed.com.au


CustomProperties supports various put methods - e.g. put(String name, Long value).  Each of these 
calls put(CustomProperty) which calculates a unique id for the property and adds it.

If you want to add a property of a custom type you can't build your own CustomProperty and call put
(CustomProperty) because it is private.

You can call put(name, CustomProperty) but this method doesn't allocate a unique ID.  This means you 
need to do your own id management to ensure you assign unique IDs to every property you add.

In my case I wanted to add a non unicode String property.  Unfortunately put(String name, String value) 
sete the type to unicode, so I had to abandon all the built in simple put() methods and build my own 
CustomProperty objects for all attributes so that I could guarantee the IDs for them were unique.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/