org.jibx.binding.def
Class BindingBuilder.ContainerBase

java.lang.Object
  extended byorg.jibx.binding.def.BindingBuilder.ContainerBase
Direct Known Subclasses:
BindingDefinition, NestedBase
Enclosing class:
BindingBuilder

static class BindingBuilder.ContainerBase
extends java.lang.Object

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
protected  int m_accessLevel
          Access level for default mappings.
protected  int m_autoLink
          Auto-link style for default mappings.
protected  IContainer m_container
          Containing binding component.
protected  int m_nameStyle
          Style used for generating element or attribute names.
protected  java.lang.String m_stripPrefix
          Prefix text to be stripped from names.
protected  java.lang.String m_stripSuffix
          Suffix text to be stripped from names.
protected  int m_styleDefault
          Default style for value expression.
 
Constructor Summary
BindingBuilder.ContainerBase(IContainer parent)
          Constructor.
 
Method Summary
 int getStyleDefault()
           
 void unmarshal(UnmarshallingContext ctx)
          Unmarshal common container attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_container

protected IContainer m_container
Containing binding component.


m_styleDefault

protected int m_styleDefault
Default style for value expression.


m_autoLink

protected int m_autoLink
Auto-link style for default mappings.


m_accessLevel

protected int m_accessLevel
Access level for default mappings.


m_stripPrefix

protected java.lang.String m_stripPrefix
Prefix text to be stripped from names.


m_stripSuffix

protected java.lang.String m_stripSuffix
Suffix text to be stripped from names.


m_nameStyle

protected int m_nameStyle
Style used for generating element or attribute names.

Constructor Detail

BindingBuilder.ContainerBase

public BindingBuilder.ContainerBase(IContainer parent)
Constructor.

Parameters:
parent - containing binding definition context
Method Detail

unmarshal

public void unmarshal(UnmarshallingContext ctx)
               throws JiBXException
Unmarshal common container attributes.

Parameters:
ctx - unmarshalling context information
Throws:
JiBXException - if error in unmarshalling

getStyleDefault

public int getStyleDefault()


Project Web Site