Package org.apache.openjpa.lib.meta
Interface MetaDataSerializer
-
- All Known Subinterfaces:
AbstractCFMetaDataFactory.Serializer
,SchemaSerializer
- All Known Implementing Classes:
AnnotationPersistenceMappingSerializer
,AnnotationPersistenceMetaDataSerializer
,CFMetaDataSerializer
,XMLMetaDataSerializer
,XMLPersistenceMappingSerializer
,XMLPersistenceMetaDataSerializer
,XMLSchemaSerializer
public interface MetaDataSerializer
Interface for meta data serializers.- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
serialize(int flags)
Serialize the current set of objects to the files from which they were parsed.void
serialize(java.io.File file, int flags)
Serialize the current set of objects to the given file.void
serialize(java.io.Writer out, int flags)
Serialize the current set of objects to the given stream.void
serialize(java.util.Map output, int flags)
Serialize the current set of objects to the files from which they were parsed.
-
-
-
Field Detail
-
COMPACT
static final int COMPACT
- See Also:
- Constant Field Values
-
PRETTY
static final int PRETTY
- See Also:
- Constant Field Values
-
APPEND
static final int APPEND
- See Also:
- Constant Field Values
-
VERBOSE
static final int VERBOSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
serialize
void serialize(int flags) throws java.io.IOException
Serialize the current set of objects to the files from which they were parsed. Any objects for which a source file cannot be determined will not be included in the output.- Parameters:
flags
- bit flags specifying the output flags; e.g.PRETTY
- Throws:
java.io.IOException
-
serialize
void serialize(java.util.Map output, int flags) throws java.io.IOException
Serialize the current set of objects to the files from which they were parsed. The objects must implement theSourceTracker
interface.- Parameters:
output
- if null, then serialize directly to the file system; otherwise, populate the specifiedMap
with keys that are theFile
instances, and values that are theString
contents of the MetaDataflags
- bit flags specifying the output flags; e.g.PRETTY
- Throws:
java.io.IOException
-
serialize
void serialize(java.io.File file, int flags) throws java.io.IOException
Serialize the current set of objects to the given file.
-
serialize
void serialize(java.io.Writer out, int flags) throws java.io.IOException
Serialize the current set of objects to the given stream.- Parameters:
flags
- bit flags specifying the output flags; e.g.PRETTY
- Throws:
java.io.IOException
-
-