Java Doc for CustomProperties.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » hpsf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » poi 3.0.2 beta2 » org.apache.poi.hpsf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.HashMap
   org.apache.poi.hpsf.CustomProperties

CustomProperties
public class CustomProperties extends HashMap (Code)

Maintains the instances of CustomProperty that belong to a DocumentSummaryInformation . The class maintains the names of the custom properties in a dictionary. It implements the Map interface and by this provides a simplified view on custom properties: A property's name is the key that maps to a typed value. This implementation hides property IDs from the developer and regards the property names as keys to typed values.

While this class provides a simple API to custom properties, it ignores the fact that not names, but IDs are the real keys to properties. Under the hood this class maintains a 1:1 relationship between IDs and names. Therefore you should not use this class to process property sets with several IDs mapping to the same name or with properties without a name: the result will contain only a subset of the original properties. If you really need to deal such property sets, use HPSF's low-level access methods.

An application can call the CustomProperties.isPure method to check whether a property set parsed by CustomProperties is still pure (i.e. unmodified) or whether one or more properties have been dropped.

This class is not thread-safe; concurrent access to instances of this class must be syncronized.


author:
   Rainer Klute author:
   href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de>
since:
   2006-02-09
version:
   $Id$




Method Summary
public  Objectget(String name)
    
public  intgetCodepage()
    
 MapgetDictionary()
    

Gets the dictionary which contains IDs and names of the named custom properties.

public  booleanisPure()
    
public  Objectput(Object name, Object customProperty)
    

Puts a CustomProperty into this map.

public  Objectput(String name, String value)
    

Adds a named string property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value.
public  Objectput(String name, Long value)
    

Adds a named long property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value.
public  Objectput(String name, Double value)
    

Adds a named double property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value.
public  Objectput(String name, Integer value)
    

Adds a named integer property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value.
public  Objectput(String name, Boolean value)
    

Adds a named boolean property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value.
public  Objectput(String name, Date value)
    

Adds a named date property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value.
public  Objectremove(String name)
    
public  voidsetCodepage(int codepage)
    
public  voidsetPure(boolean isPure)
    



Method Detail
get
public Object get(String name)(Code)

Gets a named value from the custom properties.


Parameters:
  name - the name of the value to get the value or null if a value with the specifiedname is not found in the custom properties.



getCodepage
public int getCodepage()(Code)

Gets the codepage.

the codepage or -1 if the codepage is undefined.



getDictionary
Map getDictionary()(Code)

Gets the dictionary which contains IDs and names of the named custom properties. the dictionary.




isPure
public boolean isPure()(Code)

Tells whether this CustomProperties instance is pure or one or more properties of the underlying low-level property set has been dropped.

true if the CustomProperties is pure, elsefalse.



put
public Object put(Object name, Object customProperty) throws ClassCastException(Code)

Puts a CustomProperty into this map. It is assumed that the CustomProperty already has a valid ID. Otherwise use CustomProperties.put(CustomProperty) .




put
public Object put(String name, String value)(Code)

Adds a named string property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value. the property that was stored under the specified name before, ornull if there was no such property before.



put
public Object put(String name, Long value)(Code)

Adds a named long property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value. the property that was stored under the specified name before, ornull if there was no such property before.



put
public Object put(String name, Double value)(Code)

Adds a named double property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value. the property that was stored under the specified name before, ornull if there was no such property before.



put
public Object put(String name, Integer value)(Code)

Adds a named integer property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value. the property that was stored under the specified name before, ornull if there was no such property before.



put
public Object put(String name, Boolean value)(Code)

Adds a named boolean property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value. the property that was stored under the specified name before, ornull if there was no such property before.



put
public Object put(String name, Date value)(Code)

Adds a named date property.


Parameters:
  name - The property's name.
Parameters:
  value - The property's value. the property that was stored under the specified name before, ornull if there was no such property before.



remove
public Object remove(String name)(Code)

Removes a custom property.


Parameters:
  name - The name of the custom property to remove The removed property or null if the specified property was not found.
See Also:   java.util.HashSet.remove(java.lang.Object)



setCodepage
public void setCodepage(int codepage)(Code)

Sets the codepage.


Parameters:
  codepage - the codepage



setPure
public void setPure(boolean isPure)(Code)

Sets the purity of the custom property set.


Parameters:
  isPure - the purity



Methods inherited from java.util.HashMap
public void clear()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public boolean containsKey(Object key)(Code)(Java Doc)
public boolean containsValue(Object value)(Code)(Java Doc)
public Set<Map.Entry<K, V>> entrySet()(Code)(Java Doc)
public V get(Object key)(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public Set<K> keySet()(Code)(Java Doc)
public V put(K key, V value)(Code)(Java Doc)
public void putAll(Map<? extends K, ? extends V> m)(Code)(Java Doc)
public V remove(Object key)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public Collection<V> values()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.