Schnittstelle SerializedFormWriter
- Alle bekannten Implementierungsklassen:
SerializedFormWriterImpl
public interface SerializedFormWriter
The interface for writing serialized form output.
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypSchnittstelleBeschreibungstatic interface
A writer for the serialized form for a given field.static interface
Write the serialized form for a given field. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Add the footer.void
addPackageSerialized
(Content serializedSummaries, Content packageSerialized) Add the serialized package to the serialized summaries.void
addSerializedContent
(Content source) Add the serialized content to the body content.void
addSerialUIDInfo
(String header, String serialUID, Content target) Adds the serial UID info.Gibt the serialized class header zurück.getClassHeader
(TypeElement typeElement) Gibt the heading for the serializable class zurück.Gibt the serialized class header zurück.Get the header.Gets the member.getPackageHeader
(PackageElement packageElement) Gibt a header for the given package zurück.Get the package serialized form header.getSerialFieldWriter
(TypeElement typeElement) Return an instance of a SerialFieldWriter for a class.Get the serialized form summaries header.getSerialMethodWriter
(TypeElement typeElement) Return an instance of a SerialMethodWriter for a class.Gibt the serial UID info header zurück.void
printDocument
(Content source) Print the serialized form document.
-
Methodendetails
-
getHeader
Get the header.- Parameter:
header
- the header to write.- Gibt zurück:
- the header content
-
getSerializedSummariesHeader
Get the serialized form summaries header.- Gibt zurück:
- the serialized form summary header
-
getPackageSerializedHeader
Get the package serialized form header.- Gibt zurück:
- the package serialized form header
-
addPackageSerialized
Add the serialized package to the serialized summaries.- Parameter:
serializedSummaries
- the serialized content to which the package serialized content will be addedpackageSerialized
- the serialized content per package that needs to be added
-
getPackageHeader
Gibt a header for the given package zurück.- Parameter:
packageElement
- the package element to write- Gibt zurück:
- a header for the given package
-
getClassSerializedHeader
Gibt the serialized class header zurück.- Gibt zurück:
- the serialized class header
-
getClassHeader
Gibt the heading for the serializable class zurück.- Parameter:
typeElement
- the class being processed- Gibt zurück:
- the heading for the serializable class
-
getSerialUIDInfoHeader
Gibt the serial UID info header zurück.- Gibt zurück:
- the serial UID info header
-
addSerialUIDInfo
Adds the serial UID info.- Parameter:
header
- the header that will show up before the UID.serialUID
- the serial UID to print.target
- the serial UID to which the content will be added.
-
getClassContentHeader
Gibt the serialized class header zurück.- Gibt zurück:
- the serialized class header
-
getSerialFieldWriter
Return an instance of a SerialFieldWriter for a class.- Parameter:
typeElement
- the class- Gibt zurück:
- an instance of a SerialFieldWriter.
-
getSerialMethodWriter
Return an instance of a SerialMethodWriter for a class.- Parameter:
typeElement
- the class- Gibt zurück:
- an instance of a SerialMethodWriter.
-
addSerializedContent
Add the serialized content to the body content.- Parameter:
source
- content for serialized data
-
printDocument
Print the serialized form document.- Parameter:
source
- the content that will be printed- Löst aus:
DocFileIOException
- if there is a problem while writing the document
-
getMember
Gets the member.- Parameter:
content
- the content used to generate the complete member- Gibt zurück:
- the member
-