Java Doc for XMLMetaDataSerializer.java in » Database-ORM » openjpa » org » apache » openjpa » lib » meta » 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
»
Database ORM
»
openjpa
»
org.apache.openjpa.lib.meta
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
org.apache.openjpa.lib.meta
.XMLMetaDataSerializer
All known Subclasses:
org.apache.openjpa.jdbc.schema
.XMLSchemaSerializer
,
org.apache.openjpa.lib.meta
.CFMetaDataSerializer
,
XMLMetaDataSerializer
abstract
public
class XMLMetaDataSerializer implements
MetaDataSerializer
(Code)
Abstract base type for serlializers that transfer groups of objects to XML. Includes a way of serializing objects back to the XML files they were parsed from. Serializers are not thread safe.
author:
Abe White
Method Summary
protected
void
addAttribute
(
String
name,
String
value)
Add an attribute to the current group.
protected
void
addComments
(
String
[] comments)
Add a comment to the stream.
protected
void
addComments
(
Object
obj)
Write the given entity's comments.
protected
void
addText
(
String
text)
Add text to the current element.
protected
File
currentBackupFile
()
The backup file made for the current file being parsed.
protected
void
endElement
(
String
name)
End the current element.
protected
Attributes
getAttributes
()
The current attributes.
protected
Map
getFileMap
()
Returns a
Map
with keys of the
File
to be written to, and values of a
Collection
of
SourceTracker
instances.
public
Log
getLog
()
The log to write to.
abstract
protected
Collection
getObjects
()
Return the current set of objects for serialization.
protected
File
getSourceFile
(
Object
obj)
Return the source file for the given instance.
protected
boolean
isVerbose
()
Whether this serialization is in verbose mode.
protected
File
prepareWrite
(
File
file)
Prepare to write to the given file.
protected
void
reset
()
Reset serialization state for the next document.
public
void
serialize
(int flags)
public
void
serialize
(
Map
output, int flags)
public
void
serialize
(
File
file, int flags)
public
void
serialize
(
Writer
out, int flags)
public
void
serialize
(
Result
result, int flags)
Serialize the current set of objects to the given result.
public
void
serialize
(
ContentHandler
handler, int flags)
Serilize the current set of objects to a series of SAX events on the given handler.
abstract
protected
void
serialize
(
Collection
objs)
Serialize the given set of objects.
public
void
setLog
(
Log
log)
The log to write to.
protected
void
startElement
(
String
name)
Start an element with the current attribute settings.
Method Detail
addAttribute
protected
void addAttribute(
String
name,
String
value)
(Code)
Add an attribute to the current group.
addComments
protected
void addComments(
String
[] comments) throws
SAXException
(Code)
Add a comment to the stream.
addComments
protected
void addComments(
Object
obj) throws
SAXException
(Code)
Write the given entity's comments. By default, tests if entity is
Commentable
.
addText
protected
void addText(
String
text) throws
SAXException
(Code)
Add text to the current element.
currentBackupFile
protected
File
currentBackupFile()
(Code)
The backup file made for the current file being parsed.
endElement
protected
void endElement(
String
name) throws
SAXException
(Code)
End the current element.
getAttributes
protected
Attributes
getAttributes()
(Code)
The current attributes.
getFileMap
protected
Map
getFileMap()
(Code)
Returns a
Map
with keys of the
File
to be written to, and values of a
Collection
of
SourceTracker
instances.
getLog
public
Log
getLog()
(Code)
The log to write to.
getObjects
abstract
protected
Collection
getObjects()
(Code)
Return the current set of objects for serialization.
getSourceFile
protected
File
getSourceFile(
Object
obj)
(Code)
Return the source file for the given instance. By default, checks to see if the instance implements
SourceTracker
.
isVerbose
protected
boolean isVerbose()
(Code)
Whether this serialization is in verbose mode.
prepareWrite
protected
File
prepareWrite(
File
file) throws
IOException
(Code)
Prepare to write to the given file. Back up the file and make sure the path to it is created.
reset
protected
void reset()
(Code)
Reset serialization state for the next document.
serialize
public
void serialize(int flags) throws
IOException
(Code)
serialize
public
void serialize(
Map
output, int flags) throws
IOException
(Code)
serialize
public
void serialize(
File
file, int flags) throws
IOException
(Code)
serialize
public
void serialize(
Writer
out, int flags) throws
IOException
(Code)
serialize
public
void serialize(
Result
result, int flags) throws
SAXException
(Code)
Serialize the current set of objects to the given result.
serialize
public
void serialize(
ContentHandler
handler, int flags) throws
SAXException
(Code)
Serilize the current set of objects to a series of SAX events on the given handler.
serialize
abstract
protected
void serialize(
Collection
objs) throws
SAXException
(Code)
Serialize the given set of objects.
setLog
public
void setLog(
Log
log)
(Code)
The log to write to.
startElement
protected
void startElement(
String
name) throws
SAXException
(Code)
Start an element with the current attribute settings. Clears the attributes as well.
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.