Package org.jibx.binding.model
Class ObjectAttributes
- java.lang.Object
-
- org.jibx.binding.model.AttributeBase
-
- org.jibx.binding.model.ObjectAttributes
-
public class ObjectAttributes extends AttributeBase
Model component for object attribute group in binding definition.- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]FACTORY_HOOK_SIGNATURESprivate IClassm_createClassClass to use for new instance creation.private java.lang.Stringm_createTypeInstance type for creation (fully qualified, including package and class).private IClassItemm_factoryItemFactory method information.private java.lang.Stringm_factoryNameFactory method name (fully qualified, including package and class).private booleanm_isNillableNillable object flag.private IClassm_marshallerClassObject marshaller class.private java.lang.Stringm_marshallerNameObject marshaller class name.private IClassItemm_postSetItemPost-set method information.private java.lang.Stringm_postSetNamePost-set method name.private IClassItemm_preGetItemPre-get method information.private java.lang.Stringm_preGetNamePre-get method name.private IClassItemm_preSetItemPre-set method information.private java.lang.Stringm_preSetNamePre-set method name.private IClassm_unmarshallerClassObject unmarshaller class.private java.lang.Stringm_unmarshallerNameObject unmarshaller class name.private static java.lang.String[]MARSHAL_HOOK_SIGNATURESprivate static java.lang.StringMARSHALLER_INTERFACEprivate static java.lang.StringMARSHALLER_INTERFACETYPEstatic StringArrays_allowedAttributesEnumeration of allowed attribute namesprivate static java.lang.String[]UNMARSHAL_HOOK_SIGNATURESprivate static java.lang.StringUNMARSHALLER_INTERFACEprivate static java.lang.StringUNMARSHALLER_INTERFACETYPE
-
Constructor Summary
Constructors Constructor Description ObjectAttributes()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IClassgetCreateClass()Get new instance creation class information.java.lang.StringgetCreateType()Get type to be used for creating new instance.IClassItemgetFactory()Get factory method information.java.lang.StringgetFactoryName()Get factory method name.IClassgetMarshaller()Get marshaller class information.java.lang.StringgetMarshallerName()Get marshaller class name.IClassItemgetPostset()Get post-set method information.java.lang.StringgetPostsetName()Get post-set method name.IClassItemgetPreget()Get pre-get method information.java.lang.StringgetPregetName()Get pre-get method name.IClassItemgetPreset()Get pre-set method information.java.lang.StringgetPresetName()Get pre-set method name.IClassgetUnmarshaller()Get unmarshaller class information.java.lang.StringgetUnmarshallerName()Get unmarshaller class name.booleanisNillable()Check if nillable object.voidprevalidate(ValidationContext vctx)Prevalidate attribute information.voidsetCreateType(java.lang.String name)Set new instance type class name.voidsetFactoryName(java.lang.String name)Set factory method name.voidsetMarshallerName(java.lang.String name)Set marshaller class name.voidsetNillable(boolean nillable)Set nillable flag.voidsetPostsetName(java.lang.String name)Set post-set method name.voidsetPregetName(java.lang.String name)Set pre-get method name.voidsetPresetName(java.lang.String name)Set pre-set method name.voidsetUnmarshallerName(java.lang.String name)Set unmarshaller class name.-
Methods inherited from class org.jibx.binding.model.AttributeBase
validate
-
-
-
-
Field Detail
-
s_allowedAttributes
public static final StringArray s_allowedAttributes
Enumeration of allowed attribute names
-
MARSHAL_HOOK_SIGNATURES
private static final java.lang.String[] MARSHAL_HOOK_SIGNATURES
-
FACTORY_HOOK_SIGNATURES
private static final java.lang.String[] FACTORY_HOOK_SIGNATURES
-
UNMARSHAL_HOOK_SIGNATURES
private static final java.lang.String[] UNMARSHAL_HOOK_SIGNATURES
-
UNMARSHALLER_INTERFACE
private static final java.lang.String UNMARSHALLER_INTERFACE
- See Also:
- Constant Field Values
-
MARSHALLER_INTERFACE
private static final java.lang.String MARSHALLER_INTERFACE
- See Also:
- Constant Field Values
-
UNMARSHALLER_INTERFACETYPE
private static final java.lang.String UNMARSHALLER_INTERFACETYPE
- See Also:
- Constant Field Values
-
MARSHALLER_INTERFACETYPE
private static final java.lang.String MARSHALLER_INTERFACETYPE
- See Also:
- Constant Field Values
-
m_factoryName
private java.lang.String m_factoryName
Factory method name (fully qualified, including package and class).
-
m_preSetName
private java.lang.String m_preSetName
Pre-set method name.
-
m_postSetName
private java.lang.String m_postSetName
Post-set method name.
-
m_preGetName
private java.lang.String m_preGetName
Pre-get method name.
-
m_marshallerName
private java.lang.String m_marshallerName
Object marshaller class name.
-
m_unmarshallerName
private java.lang.String m_unmarshallerName
Object unmarshaller class name.
-
m_isNillable
private boolean m_isNillable
Nillable object flag.
-
m_createType
private java.lang.String m_createType
Instance type for creation (fully qualified, including package and class).
-
m_factoryItem
private IClassItem m_factoryItem
Factory method information.
-
m_preSetItem
private IClassItem m_preSetItem
Pre-set method information.
-
m_postSetItem
private IClassItem m_postSetItem
Post-set method information.
-
m_preGetItem
private IClassItem m_preGetItem
Pre-get method information.
-
m_marshallerClass
private IClass m_marshallerClass
Object marshaller class.
-
m_unmarshallerClass
private IClass m_unmarshallerClass
Object unmarshaller class.
-
m_createClass
private IClass m_createClass
Class to use for new instance creation.
-
-
Method Detail
-
getFactoryName
public java.lang.String getFactoryName()
Get factory method name.- Returns:
- fully-qualified factory class and method name (or
nullif none)
-
getFactory
public IClassItem getFactory()
Get factory method information. This method is only usable after a call toprevalidate(ValidationContext).- Returns:
- factory method information (or
nullif none)
-
setFactoryName
public void setFactoryName(java.lang.String name)
Set factory method name.- Parameters:
name- fully qualified class and method name for object factory
-
getPresetName
public java.lang.String getPresetName()
Get pre-set method name.- Returns:
- pre-set method name (or
nullif none)
-
getPreset
public IClassItem 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
public void setPresetName(java.lang.String name)
Set pre-set method name.- Parameters:
name- member method name to be called before unmarshalling
-
getPostsetName
public java.lang.String getPostsetName()
Get post-set method name.- Returns:
- post-set method name (or
nullif none)
-
getPostset
public IClassItem 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
public void setPostsetName(java.lang.String name)
Set post-set method name.- Parameters:
name- member method name to be called after unmarshalling
-
getPregetName
public java.lang.String getPregetName()
Get pre-get method name.- Returns:
- pre-get method name (or
nullif none)
-
getPreget
public IClassItem 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
public void setPregetName(java.lang.String name)
Set pre-get method name.- Parameters:
name- member method name to be called before marshalling
-
getMarshallerName
public java.lang.String getMarshallerName()
Get marshaller class name.- Returns:
- marshaller class name (or
nullif none)
-
getMarshaller
public IClass getMarshaller()
Get marshaller class information. This method is only usable after a call toprevalidate(ValidationContext).- Returns:
- class information for marshaller (or
nullif none)
-
setMarshallerName
public void setMarshallerName(java.lang.String name)
Set marshaller class name.- Parameters:
name- class name to be used for marshalling
-
getUnmarshallerName
public java.lang.String getUnmarshallerName()
Get unmarshaller class name.- Returns:
- unmarshaller class name (or
nullif none)
-
getUnmarshaller
public IClass getUnmarshaller()
Get unmarshaller class information. This method is only usable after a call toprevalidate(ValidationContext).- Returns:
- class information for unmarshaller (or
nullif none)
-
setUnmarshallerName
public void setUnmarshallerName(java.lang.String name)
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
public java.lang.String getCreateType()
Get type to be used for creating new instance.- Returns:
- class name for type to be created (or
nullif none)
-
getCreateClass
public IClass 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
public void setCreateType(java.lang.String name)
Set new instance type class name.- Parameters:
name- class name to be used for creating new instance
-
prevalidate
public void prevalidate(ValidationContext vctx)
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
-
-