Package org.jibx.custom.classes
Class NestingBase
java.lang.Object
org.jibx.custom.classes.CustomBase
org.jibx.custom.classes.SharedNestingBase
org.jibx.custom.classes.NestingBase
- Direct Known Subclasses:
ClassCustom
,GlobalCustom
,PackageCustom
Base class for all standard binding customizations that can contain other customizations.
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Integer
static final int
static final Integer
static final int
private Boolean
private Boolean
private Boolean
private Boolean
private String[]
private String[]
private Integer
private Boolean
static final StringArray
Enumeration of allowed attribute namesstatic final EnumSet
Fields inherited from class org.jibx.custom.classes.CustomBase
CAMEL_CASE_NAMES, DERIVE_BY_PACKAGE, DERIVE_FIXED, DERIVE_NONE, DOTTED_NAMES, HYPHENATED_NAMES, REQUIRE_ALL, REQUIRE_NONE, REQUIRE_OBJECTS, REQUIRE_PRIMITIVES, s_namespaceStyleEnum, s_nameStyleEnum, s_requireEnum, UNDERSCORED_NAMES, UPPER_CAMEL_CASE_NAMES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get prefixes to be stripped from field names.String[]
Get suffixes to be stripped from field names.int
getValueStyle
(String type) Get value style code.private String
Value style get text method.boolean
Check force mapping flag.boolean
Check force structure names flag.boolean
Check abstract mapping flag.boolean
Check property access mode flag.boolean
Check wrap collections flag.void
setMapAbstract
(Boolean abs) Set abstract mapping flag.void
setValueStyle
(Integer style) Set value style.private void
setValueStyleText
(String text, IUnmarshallingContext ictx) Value style set text method.Methods inherited from class org.jibx.custom.classes.SharedNestingBase
convertName, getFormatterClass, getNamespace, getNamespaceStyle, getNameStyle, getSpecifiedNamespace, isObjectRequired, isPrimitiveRequired, isUseJavaDocs, setNamespace, setNamespaceStyle, setNameStyle
Methods inherited from class org.jibx.custom.classes.CustomBase
convertName, deriveItemName, deriveNamespace, getContainingObject, getGlobal, getParent, packageOfType, packageToNamespace, validateAttributes
-
Field Details
-
s_allowedAttributes
Enumeration of allowed attribute names -
ATTRIBUTE_VALUE_STYLE
public static final int ATTRIBUTE_VALUE_STYLE- See Also:
-
ELEMENT_VALUE_STYLE
public static final int ELEMENT_VALUE_STYLE- See Also:
-
ATTRIBUTE_STYLE_INTEGER
-
ELEMENT_STYLE_INTEGER
-
s_valueStyleEnum
-
m_valueStyle
-
m_propertyAccess
-
m_stripPrefixes
-
m_stripSuffixes
-
m_mapAbstract
-
m_wrapCollections
-
m_forceMapping
-
m_forceNames
-
-
Constructor Details
-
Method Details
-
isMapAbstract
public boolean isMapAbstract()Check abstract mapping flag. If not set at any nesting level, the default istrue
.- Returns:
- abstract mapping flag
-
setMapAbstract
Set abstract mapping flag.- Parameters:
abs
-
-
isForceMapping
public boolean isForceMapping()Check force mapping flag. If not set at any nesting level, the default isfalse
.- Returns:
- force mapping flag
-
isForceStructureNames
public boolean isForceStructureNames()Check force structure names flag. If not set at any nesting level, the default istrue
.- Returns:
- force names flag
-
isWrapCollections
public boolean isWrapCollections()Check wrap collections flag. If not set at any nesting level, the default isfalse
.- Returns:
- wrap collections flag
-
isPropertyAccess
public boolean isPropertyAccess()Check property access mode flag. If not set at any nesting level, the default isfalse
.- Returns:
true
if bean-style get/set methods to be used,false
if fields to be used directly
-
getStripPrefixes
Get prefixes to be stripped from field names.- Returns:
- strip prefixes (
null
if none)
-
getStripSuffixes
Get suffixes to be stripped from field names.- Returns:
- strip suffix (
null
if none)
-
getValueStyle
Get value style code.- Parameters:
type
- value type name- Returns:
- value from
s_valueStyleEnum
enumeration
-
setValueStyle
Set value style.- Parameters:
style
- (null
if none at this level)
-
setValueStyleText
Value style set text method. This is intended for use during unmarshalling. TODO: add validation- Parameters:
text
-ictx
-
-
getValueStyleText
Value style get text method. This is intended for use during marshalling.- Returns:
- text
-