|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.custom.classes.CustomBase
org.jibx.custom.classes.SharedNestingBase
org.jibx.custom.classes.NestingBase
public abstract class NestingBase
Base class for all standard binding customizations that can contain other customizations.
Field Summary | |
---|---|
static java.lang.Integer |
ATTRIBUTE_STYLE_INTEGER
|
static int |
ATTRIBUTE_VALUE_STYLE
|
static java.lang.Integer |
ELEMENT_STYLE_INTEGER
|
static int |
ELEMENT_VALUE_STYLE
|
private static java.lang.String[] |
EMPTY_STRING_ARRAY
|
private java.lang.Boolean |
m_forceMapping
|
private java.lang.Boolean |
m_forceNames
|
private java.lang.Boolean |
m_mapAbstract
|
private java.lang.Boolean |
m_propertyAccess
|
private java.lang.String[] |
m_stripPrefixes
|
private java.lang.String[] |
m_stripSuffixes
|
private java.lang.Integer |
m_valueStyle
|
private java.lang.Boolean |
m_wrapCollections
|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names |
static EnumSet |
s_valueStyleEnum
|
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 | |
---|---|
NestingBase(SharedNestingBase parent)
Constructor. |
Method Summary | |
---|---|
java.lang.String[] |
getStripPrefixes()
Get prefixes to be stripped from field names. |
java.lang.String[] |
getStripSuffixes()
Get suffixes to be stripped from field names. |
int |
getValueStyle(java.lang.String type)
Get value style code. |
private java.lang.String |
getValueStyleText()
Value style get text method. |
boolean |
isForceMapping()
Check force mapping flag. |
boolean |
isForceStructureNames()
Check force structure names flag. |
boolean |
isMapAbstract()
Check abstract mapping flag. |
boolean |
isPropertyAccess()
Check property access mode flag. |
boolean |
isWrapCollections()
Check wrap collections flag. |
void |
setMapAbstract(java.lang.Boolean abs)
Set abstract mapping flag. |
void |
setValueStyle(java.lang.Integer style)
Set value style. |
private void |
setValueStyleText(java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StringArray s_allowedAttributes
private static final java.lang.String[] EMPTY_STRING_ARRAY
public static final int ATTRIBUTE_VALUE_STYLE
public static final int ELEMENT_VALUE_STYLE
public static final java.lang.Integer ATTRIBUTE_STYLE_INTEGER
public static final java.lang.Integer ELEMENT_STYLE_INTEGER
public static final EnumSet s_valueStyleEnum
private java.lang.Integer m_valueStyle
private java.lang.Boolean m_propertyAccess
private java.lang.String[] m_stripPrefixes
private java.lang.String[] m_stripSuffixes
private java.lang.Boolean m_mapAbstract
private java.lang.Boolean m_wrapCollections
private java.lang.Boolean m_forceMapping
private java.lang.Boolean m_forceNames
Constructor Detail |
---|
public NestingBase(SharedNestingBase parent)
parent
- Method Detail |
---|
public boolean isMapAbstract()
true
.
public void setMapAbstract(java.lang.Boolean abs)
abs
- public boolean isForceMapping()
false
.
public boolean isForceStructureNames()
true
.
public boolean isWrapCollections()
false
.
public boolean isPropertyAccess()
false
.
true
if bean-style get/set methods to be used, false
if fields to be used
directlypublic java.lang.String[] getStripPrefixes()
null
if none)public java.lang.String[] getStripSuffixes()
null
if none)public int getValueStyle(java.lang.String type)
type
- value type name
s_valueStyleEnum
enumerationpublic void setValueStyle(java.lang.Integer style)
style
- (null
if none at this level)private void setValueStyleText(java.lang.String text, IUnmarshallingContext ictx)
text
- ictx
- private java.lang.String getValueStyleText()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |