public abstract class SharedNestingBase extends CustomBase
| Modifier and Type | Field and Description |
|---|---|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
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 and Description |
|---|
SharedNestingBase(SharedNestingBase parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
convertName(String base)
Convert class or unprefixed field name to element or attribute name using current format.
|
String |
getFormatterClass()
Get JavaDoc formatter class name.
|
String |
getNamespace()
Get the namespace for schema definitions.
|
int |
getNamespaceStyle()
Get namespace derivation style.
|
int |
getNameStyle()
Get name style.
|
protected String |
getSpecifiedNamespace()
Get namespace specified on this element.
|
boolean |
isObjectRequired(String type)
Check if object value should be treated as required.
|
boolean |
isPrimitiveRequired(String type)
Check if primitive value should be treated as required.
|
boolean |
isUseJavaDocs()
Check if JavaDocs should be used for documentation.
|
protected void |
setNamespace(String ns)
Set the namespace to be used for schema definitions.
|
void |
setNamespaceStyle(Integer style)
Set namespace derivation style.
|
void |
setNameStyle(Integer style)
Set name style.
|
convertName, deriveItemName, deriveNamespace, getContainingObject, getGlobal, getParent, packageOfType, packageToNamespace, validateAttributespublic static final StringArray s_allowedAttributes
public SharedNestingBase(SharedNestingBase parent)
parent - public String getFormatterClass()
protected String getSpecifiedNamespace()
getNamespace() method should instead be used.null if none)public int getNamespaceStyle()
public void setNamespaceStyle(Integer style)
style - (null if none at this level)public int getNameStyle()
public void setNameStyle(Integer style)
style - (null if none at this level)public final String getNamespace()
setNamespace(String) method.protected void setNamespace(String ns)
ns - public boolean isPrimitiveRequired(String type)
true.type - primitive typetrue if required value, false if notpublic boolean isObjectRequired(String type)
false.type - object typetrue if required value, false if notpublic boolean isUseJavaDocs()
true.Copyright © 2005-2014 jibx.org. All Rights Reserved.