Package org.jibx.schema.codegen
Class TypeData
java.lang.Object
org.jibx.schema.codegen.TypeData
- Direct Known Subclasses:
ClassHolder
Information for a class matching a schema definition.
- Author:
- Dennis M. Sosnoski
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for new top-level class.Constructor from new top-level or inner class.Constructor with all values specified. -
Method Summary
Modifier and TypeMethodDescriptionGet fully-qualified name as used in binding.Get fully-qualified name.boolean
Check if pregenerated class.boolean
Check if class represents a simple value.
-
Field Details
-
m_fullName
Fully-qualified class name. -
m_bindingName
Class name as used for binding (with '$' marker for inner class). -
m_pregenerated
private final boolean m_pregeneratedPregenerated class flag. -
m_simple
private final boolean m_simpleClass represents simple value flag.
-
-
Constructor Details
-
TypeData
Constructor with all values specified.- Parameters:
fullname
- fully-qualified class name in standard form ('.' as inner class separator)bindname
- fully-qualified class name as used in binding (with '$' inner class separator)pregen
- pregenerated class flagsimple
- simple value flag
-
TypeData
Constructor for new top-level class.- Parameters:
fullname
- fully-qualified class namesimple
- simple value flag
-
TypeData
Constructor from new top-level or inner class.- Parameters:
fullname
- fully-qualified class name in standard form ('.' as inner class separator)bindname
- fully-qualified class name as used in binding (with '$' inner class separator)simple
- simple value flag
-
-
Method Details
-
getFullName
Get fully-qualified name.- Returns:
- name
-
getBindingName
Get fully-qualified name as used in binding. This differs from the standard fully-qualified name in that it uses '$' rather than '.' to delimit inner class names.- Returns:
- name
-
isPregenerated
public boolean isPregenerated()Check if pregenerated class.- Returns:
true
if pregenerated,false
if not
-
isSimpleValue
public boolean isSimpleValue()Check if class represents a simple value.- Returns:
true
if simple value,false
if not
-