Package org.jibx.binding.model
Class ObjectAttributes
java.lang.Object
org.jibx.binding.model.AttributeBase
org.jibx.binding.model.ObjectAttributes
Model component for object attribute group in binding definition.
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]
private IClass
Class to use for new instance creation.private String
Instance type for creation (fully qualified, including package and class).private IClassItem
Factory method information.private String
Factory method name (fully qualified, including package and class).private boolean
Nillable object flag.private IClass
Object marshaller class.private String
Object marshaller class name.private IClassItem
Post-set method information.private String
Post-set method name.private IClassItem
Pre-get method information.private String
Pre-get method name.private IClassItem
Pre-set method information.private String
Pre-set method name.private IClass
Object unmarshaller class.private String
Object unmarshaller class name.private static final String[]
private static final String
private static final String
static final StringArray
Enumeration of allowed attribute namesprivate static final String[]
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet new instance creation class information.Get type to be used for creating new instance.Get factory method information.Get factory method name.Get marshaller class information.Get marshaller class name.Get post-set method information.Get post-set method name.Get pre-get method information.Get pre-get method name.Get pre-set method information.Get pre-set method name.Get unmarshaller class information.Get unmarshaller class name.boolean
Check if nillable object.void
prevalidate
(ValidationContext vctx) Prevalidate attribute information.void
setCreateType
(String name) Set new instance type class name.void
setFactoryName
(String name) Set factory method name.void
setMarshallerName
(String name) Set marshaller class name.void
setNillable
(boolean nillable) Set nillable flag.void
setPostsetName
(String name) Set post-set method name.void
setPregetName
(String name) Set pre-get method name.void
setPresetName
(String name) Set pre-set method name.void
setUnmarshallerName
(String name) Set unmarshaller class name.Methods inherited from class org.jibx.binding.model.AttributeBase
validate
-
Field Details
-
s_allowedAttributes
Enumeration of allowed attribute names -
MARSHAL_HOOK_SIGNATURES
-
FACTORY_HOOK_SIGNATURES
-
UNMARSHAL_HOOK_SIGNATURES
-
UNMARSHALLER_INTERFACE
- See Also:
-
MARSHALLER_INTERFACE
- See Also:
-
UNMARSHALLER_INTERFACETYPE
- See Also:
-
MARSHALLER_INTERFACETYPE
- See Also:
-
m_factoryName
Factory method name (fully qualified, including package and class). -
m_preSetName
Pre-set method name. -
m_postSetName
Post-set method name. -
m_preGetName
Pre-get method name. -
m_marshallerName
Object marshaller class name. -
m_unmarshallerName
Object unmarshaller class name. -
m_isNillable
private boolean m_isNillableNillable object flag. -
m_createType
Instance type for creation (fully qualified, including package and class). -
m_factoryItem
Factory method information. -
m_preSetItem
Pre-set method information. -
m_postSetItem
Post-set method information. -
m_preGetItem
Pre-get method information. -
m_marshallerClass
Object marshaller class. -
m_unmarshallerClass
Object unmarshaller class. -
m_createClass
Class to use for new instance creation.
-
-
Constructor Details
-
ObjectAttributes
public ObjectAttributes()Constructor.
-
-
Method Details
-
getFactoryName
Get factory method name.- Returns:
- fully-qualified factory class and method name (or
null
if none)
-
getFactory
Get factory method information. This method is only usable after a call toprevalidate(ValidationContext)
.- Returns:
- factory method information (or
null
if none)
-
setFactoryName
Set factory method name.- Parameters:
name
- fully qualified class and method name for object factory
-
getPresetName
Get pre-set method name.- Returns:
- pre-set method name (or
null
if none)
-
getPreset
Get pre-set method information. This method is only usable after a call toprevalidate(ValidationContext)
.- Returns:
- pre-set method information (or
null
if none)
-
setPresetName
Set pre-set method name.- Parameters:
name
- member method name to be called before unmarshalling
-
getPostsetName
Get post-set method name.- Returns:
- post-set method name (or
null
if none)
-
getPostset
Get post-set method information. This method is only usable after a call toprevalidate(ValidationContext)
.- Returns:
- post-set method information (or
null
if none)
-
setPostsetName
Set post-set method name.- Parameters:
name
- member method name to be called after unmarshalling
-
getPregetName
Get pre-get method name.- Returns:
- pre-get method name (or
null
if none)
-
getPreget
Get pre-get method information. This method is only usable after a call toprevalidate(ValidationContext)
.- Returns:
- pre-get method information (or
null
if none)
-
setPregetName
Set pre-get method name.- Parameters:
name
- member method name to be called before marshalling
-
getMarshallerName
Get marshaller class name.- Returns:
- marshaller class name (or
null
if none)
-
getMarshaller
Get marshaller class information. This method is only usable after a call toprevalidate(ValidationContext)
.- Returns:
- class information for marshaller (or
null
if none)
-
setMarshallerName
Set marshaller class name.- Parameters:
name
- class name to be used for marshalling
-
getUnmarshallerName
Get unmarshaller class name.- Returns:
- unmarshaller class name (or
null
if none)
-
getUnmarshaller
Get unmarshaller class information. This method is only usable after a call toprevalidate(ValidationContext)
.- Returns:
- class information for unmarshaller (or
null
if none)
-
setUnmarshallerName
Set unmarshaller class name.- Parameters:
name
- class name to be used for unmarshalling
-
isNillable
public boolean isNillable()Check if nillable object.- Returns:
- nillable flag
-
setNillable
public void setNillable(boolean nillable) Set nillable flag.- Parameters:
nillable
- flag
-
getCreateType
Get type to be used for creating new instance.- Returns:
- class name for type to be created (or
null
if none)
-
getCreateClass
Get new instance creation class information. This method is only usable after a call toprevalidate(ValidationContext)
.- Returns:
- class information for type to be created (or
null
if none)
-
setCreateType
Set new instance type class name.- Parameters:
name
- class name to be used for creating new instance
-
prevalidate
Description copied from class:AttributeBase
Prevalidate attribute information. The prevalidation step is used to check attribute values in isolation, such as the settings for enumerated values and class file information. This empty base class implementation should be overridden by each subclass that requires prevalidation handling.- Overrides:
prevalidate
in classAttributeBase
- Parameters:
vctx
- validation context
-