Java Doc for XMPSchemaAdapter.java in  » Graphic-Library » xmlgraphics-commons-1.2 » org » apache » xmlgraphics » xmp » 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 » Graphic Library » xmlgraphics commons 1.2 » org.apache.xmlgraphics.xmp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xmlgraphics.xmp.XMPSchemaAdapter

All known Subclasses:   org.apache.xmlgraphics.xmp.schemas.pdf.PDFAAdapter,  org.apache.xmlgraphics.xmp.schemas.XMPBasicAdapter,  org.apache.xmlgraphics.xmp.schemas.DublinCoreAdapter,  org.apache.xmlgraphics.xmp.schemas.pdf.AdobePDFAdapter,
XMPSchemaAdapter
public class XMPSchemaAdapter (Code)
Base class for schema-specific adapters that provide user-friendly access to XMP values.


Field Summary
protected  Metadatameta
    

Constructor Summary
public  XMPSchemaAdapter(Metadata meta, XMPSchema schema)
     Main constructor.

Method Summary
protected  voidaddDateToSeq(String propName, Date value)
     Adds a date value to an ordered array.
protected  voidaddStringToBag(String propName, String value)
     Adds a String value to an unordered array.
protected  voidaddStringToSeq(String propName, String value)
     Adds a String value to an ordered array.
public static  StringformatISO8601Date(Date dt)
     Formats a Date using ISO 8601 format in the default time zone.
protected  DategetDateValue(String propName)
     Returns a date value.
protected  StringgetLangAlt(String lang, String propName)
     Returns a language-dependent value.
protected  Object[]getObjectArray(String propName)
     Returns an object array representation of the property's values.
protected  QNamegetQName(String propName)
    
public  XMPSchemagetSchema()
    
protected  String[]getStringArray(String propName)
     Returns a String array representation of the property's values.
protected  StringgetValue(String propName)
     Returns a simple value.
public static  DateparseISO8601Date(String dt)
     Parses an ISO 8601 date and time value.
protected  voidremoveLangAlt(String lang, String propName)
     Removes a language-dependent value from an alternative array.
protected  voidsetDateValue(String propName, Date value)
     Set a date value.
protected  voidsetLangAlt(String propName, String lang, String value)
     Sets a language-dependent value.
protected  voidsetValue(String propName, String value)
     Sets a simple value.

Field Detail
meta
protected Metadata meta(Code)
the Metadata object this schema instance operates on




Constructor Detail
XMPSchemaAdapter
public XMPSchemaAdapter(Metadata meta, XMPSchema schema)(Code)
Main constructor.
Parameters:
  meta - the Metadata object to wrao
Parameters:
  schema - the XMP schema for which this adapter was written




Method Detail
addDateToSeq
protected void addDateToSeq(String propName, Date value)(Code)
Adds a date value to an ordered array.
Parameters:
  propName - the property name
Parameters:
  value - the date value



addStringToBag
protected void addStringToBag(String propName, String value)(Code)
Adds a String value to an unordered array.
Parameters:
  propName - the property name
Parameters:
  value - the String value



addStringToSeq
protected void addStringToSeq(String propName, String value)(Code)
Adds a String value to an ordered array.
Parameters:
  propName - the property name
Parameters:
  value - the String value



formatISO8601Date
public static String formatISO8601Date(Date dt)(Code)
Formats a Date using ISO 8601 format in the default time zone.
Parameters:
  dt - the date the formatted date



getDateValue
protected Date getDateValue(String propName)(Code)
Returns a date value.
Parameters:
  propName - the property name the date value or null if the value is not set



getLangAlt
protected String getLangAlt(String lang, String propName)(Code)
Returns a language-dependent value. If the value in the requested language is not available the value for the default language is returned.
Parameters:
  lang - the language ("x-default" for the default language)
Parameters:
  propName - the property name the requested value



getObjectArray
protected Object[] getObjectArray(String propName)(Code)
Returns an object array representation of the property's values.
Parameters:
  propName - the property name the object array or null if the property isn't set



getQName
protected QName getQName(String propName)(Code)
Returns the QName for a given property
Parameters:
  propName - the property name the resulting QName



getSchema
public XMPSchema getSchema()(Code)
the XMP schema associated with this adapter



getStringArray
protected String[] getStringArray(String propName)(Code)
Returns a String array representation of the property's values. Complex values to converted to Strings using the toString() method.
Parameters:
  propName - the property name the String array or null if the property isn't set



getValue
protected String getValue(String propName)(Code)
Returns a simple value.
Parameters:
  propName - the property name the requested value or null if it isn't set



parseISO8601Date
public static Date parseISO8601Date(String dt)(Code)
Parses an ISO 8601 date and time value.
Parameters:
  dt - the date and time value as an ISO 8601 string the parsed date/time



removeLangAlt
protected void removeLangAlt(String lang, String propName)(Code)
Removes a language-dependent value from an alternative array.
Parameters:
  lang - the language ("x-default" for the default language)
Parameters:
  propName - the property name



setDateValue
protected void setDateValue(String propName, Date value)(Code)
Set a date value.
Parameters:
  propName - the property name
Parameters:
  value - the date value



setLangAlt
protected void setLangAlt(String propName, String lang, String value)(Code)
Sets a language-dependent value.
Parameters:
  propName - the property name
Parameters:
  lang - the language ("x-default" or null for the default language)
Parameters:
  value - the value



setValue
protected void setValue(String propName, String value)(Code)
Sets a simple value.
Parameters:
  propName - the property name
Parameters:
  value - the value



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.