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 MetaDataSerializerInterface for meta data serializers.- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidserialize(int flags)Serialize the current set of objects to the files from which they were parsed.voidserialize(java.io.File file, int flags)Serialize the current set of objects to the given file.voidserialize(java.io.Writer out, int flags)Serialize the current set of objects to the given stream.voidserialize(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.IOExceptionSerialize 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.IOExceptionSerialize the current set of objects to the files from which they were parsed. The objects must implement theSourceTrackerinterface.- Parameters:
output- if null, then serialize directly to the file system; otherwise, populate the specifiedMapwith keys that are theFileinstances, and values that are theStringcontents 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.IOExceptionSerialize the current set of objects to the given file.
-
serialize
void serialize(java.io.Writer out, int flags) throws java.io.IOExceptionSerialize the current set of objects to the given stream.- Parameters:
flags- bit flags specifying the output flags; e.g.PRETTY- Throws:
java.io.IOException
-
-