Package org.jfree.xml.generator.model
Class ManualMappingInfo
- java.lang.Object
-
- org.jfree.xml.generator.model.ManualMappingInfo
-
public class ManualMappingInfo extends Object
The manual mapping describes, how a certain class is handled in the parser. This defines the read and write handler implementations to be used to handle the instantiation or serialisation of the described type.Manual mappings will not be created by the generator, they have to be defined manually. The parser will print warnings, if the definitions are invalid.
Manual mappings will always override automatic mappings.
-
-
Constructor Summary
Constructors Constructor Description ManualMappingInfo(Class baseClass, Class readHandler, Class writeHandler)
Creates a new manual mapping instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getBaseClass()
Returns the base class.Comments
getComments()
Returns the comments.Class
getReadHandler()
Returns the read handler class.String
getSource()
Returns the source.Class
getWriteHandler()
Returns the write handler class.void
setComments(Comments comments)
Sets the comments.void
setSource(String source)
Sets the source.
-
-
-
Method Detail
-
getBaseClass
public Class getBaseClass()
Returns the base class.- Returns:
- The base class.
-
getReadHandler
public Class getReadHandler()
Returns the read handler class.- Returns:
- The read handler class.
-
getWriteHandler
public Class getWriteHandler()
Returns the write handler class.- Returns:
- The write handler class.
-
getComments
public Comments getComments()
Returns the comments.- Returns:
- The comments.
-
setComments
public void setComments(Comments comments)
Sets the comments.- Parameters:
comments
- the comments.
-
getSource
public String getSource()
Returns the source.- Returns:
- The source.
-
setSource
public void setSource(String source)
Sets the source.- Parameters:
source
- the source.
-
-