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 IClassClass to use for new instance creation.private StringInstance type for creation (fully qualified, including package and class).private IClassItemFactory method information.private StringFactory method name (fully qualified, including package and class).private booleanNillable object flag.private IClassObject marshaller class.private StringObject marshaller class name.private IClassItemPost-set method information.private StringPost-set method name.private IClassItemPre-get method information.private StringPre-get method name.private IClassItemPre-set method information.private StringPre-set method name.private IClassObject unmarshaller class.private StringObject unmarshaller class name.private static final String[]private static final Stringprivate static final Stringstatic final StringArrayEnumeration of allowed attribute namesprivate static final String[]private static final Stringprivate 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.booleanCheck if nillable object.voidprevalidate(ValidationContext vctx) Prevalidate attribute information.voidsetCreateType(String name) Set new instance type class name.voidsetFactoryName(String name) Set factory method name.voidsetMarshallerName(String name) Set marshaller class name.voidsetNillable(boolean nillable) Set nillable flag.voidsetPostsetName(String name) Set post-set method name.voidsetPregetName(String name) Set pre-get method name.voidsetPresetName(String name) Set pre-set method name.voidsetUnmarshallerName(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
nullif none)
-
getFactory
Get factory method information. This method is only usable after a call toprevalidate(ValidationContext).- Returns:
- factory method information (or
nullif 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
nullif none)
-
getPreset
Get pre-set method information. This method is only usable after a call toprevalidate(ValidationContext).- Returns:
- pre-set method information (or
nullif 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
nullif none)
-
getPostset
Get post-set method information. This method is only usable after a call toprevalidate(ValidationContext).- Returns:
- post-set method information (or
nullif 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
nullif none)
-
getPreget
Get pre-get method information. This method is only usable after a call toprevalidate(ValidationContext).- Returns:
- pre-get method information (or
nullif 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
nullif none)
-
getMarshaller
Get marshaller class information. This method is only usable after a call toprevalidate(ValidationContext).- Returns:
- class information for marshaller (or
nullif 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
nullif none)
-
getUnmarshaller
Get unmarshaller class information. This method is only usable after a call toprevalidate(ValidationContext).- Returns:
- class information for unmarshaller (or
nullif 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
nullif 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
nullif none)
-
setCreateType
Set new instance type class name.- Parameters:
name- class name to be used for creating new instance
-
prevalidate
Description copied from class:AttributeBasePrevalidate 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:
prevalidatein classAttributeBase- Parameters:
vctx- validation context
-