org.jfree.xml.generator.model

Class MultiplexMappingInfo

public class MultiplexMappingInfo extends Object

Defines the multiplex entries for a certain base class. Multiplexers are used to select a specific handler if more than one class will match the property type.

Multiplexers override automatic mappings and can be redefined using manual mappings.

Constructor Summary
MultiplexMappingInfo(Class baseClass)
Creates a new instance for the specified class.
MultiplexMappingInfo(Class baseClass, String typeAttribute)
Creates a new instance for the specified class.
Method Summary
booleanequals(Object o)
Tests this object for equality with another object.
ClassgetBaseClass()
Returns the base class.
TypeInfo[]getChildClasses()
Returns the child classes.
CommentsgetComments()
Returns the comments.
StringgetSource()
Returns the source.
StringgetTypeAttribute()
Returns the type attribute.
inthashCode()
Returns a hash code for this object.
voidsetChildClasses(TypeInfo[] childClasses)
Sets the child classes.
voidsetComments(Comments comments)
Sets the comments.
voidsetSource(String source)
Sets the source.

Constructor Detail

MultiplexMappingInfo

public MultiplexMappingInfo(Class baseClass)
Creates a new instance for the specified class.

Parameters: baseClass the base class.

MultiplexMappingInfo

public MultiplexMappingInfo(Class baseClass, String typeAttribute)
Creates a new instance for the specified class.

Parameters: baseClass the base class (null not permitted). typeAttribute the type attribute (null not permitted).

Method Detail

equals

public boolean equals(Object o)
Tests this object for equality with another object.

Parameters: o the other object.

Returns: A boolean.

getBaseClass

public Class getBaseClass()
Returns the base class.

Returns: The base class.

getChildClasses

public TypeInfo[] getChildClasses()
Returns the child classes.

Returns: The child classes.

getComments

public Comments getComments()
Returns the comments.

Returns: The comments.

getSource

public String getSource()
Returns the source.

Returns: The source.

getTypeAttribute

public String getTypeAttribute()
Returns the type attribute.

Returns: The type attribute.

hashCode

public int hashCode()
Returns a hash code for this object.

Returns: A hash code.

setChildClasses

public void setChildClasses(TypeInfo[] childClasses)
Sets the child classes.

Parameters: childClasses the child classes.

setComments

public void setComments(Comments comments)
Sets the comments.

Parameters: comments the comments.

setSource

public void setSource(String source)
Sets the source.

Parameters: source the source.