Package org.jibx.binding.def
Class BindingBuilder.ContainerBase
java.lang.Object
org.jibx.binding.def.BindingBuilder.ContainerBase
- Direct Known Subclasses:
BindingDefinition
,NestedBase
- Enclosing class:
BindingBuilder
Base class for containers. This just handles unmarshalling and checking
the values of attributes used by all containers. The container class
should set the appropriate default values for all these attributes in its
constructor, using
-1
(for int
values) and
null
(for String
values) if the default is to
simply use setting inherited from a containing component. The binding
definition root object must always define actual values as the defaults,
since otherwise the code will fall off the end of the chain of ancestors.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Access level for default mappings.protected int
Auto-link style for default mappings.protected IContainer
Containing binding component.protected int
Style used for generating element or attribute names.protected String
Prefix text to be stripped from names.protected String
Suffix text to be stripped from names.protected int
Default style for value expression. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
Unmarshal common container attributes.
-
Field Details
-
m_container
Containing binding component. -
m_styleDefault
protected int m_styleDefaultDefault style for value expression. -
m_autoLink
protected int m_autoLinkAuto-link style for default mappings. -
m_accessLevel
protected int m_accessLevelAccess level for default mappings. -
m_stripPrefix
Prefix text to be stripped from names. -
m_stripSuffix
Suffix text to be stripped from names. -
m_nameStyle
protected int m_nameStyleStyle used for generating element or attribute names.
-
-
Constructor Details
-
ContainerBase
Constructor.- Parameters:
parent
- containing binding definition context
-
-
Method Details
-
unmarshal
Unmarshal common container attributes.- Parameters:
ctx
- unmarshalling context information- Throws:
JiBXException
- if error in unmarshalling
-
getStyleDefault
public int getStyleDefault()
-