public class GlobalCustom extends NestingBase
| Modifier and Type | Class and Description |
|---|---|
static class |
GlobalCustom.Mapper
Unmarshaller implementation for class.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
BOTH_BINDING |
static String |
ELEMENT_NAME
Element name in XML customization file.
|
static int |
IN_BINDING |
static int |
OUT_BINDING |
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
ATTRIBUTE_STYLE_INTEGER, ATTRIBUTE_VALUE_STYLE, ELEMENT_STYLE_INTEGER, ELEMENT_VALUE_STYLE, s_valueStyleEnumCAMEL_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 |
|---|
GlobalCustom()
Constructor.
|
GlobalCustom(IClassLocator loc)
Constructor with class locator supplied.
|
| Modifier and Type | Method and Description |
|---|---|
ClassCustom |
addClassCustomization(String type)
Get initialized class customization information, creating it if it doesn't already exist.
|
void |
addExtensionChild(Object child)
Add a child extension element.
|
void |
fillClasses()
Fills in class information based on inspection of the actual class data.
|
ClassCustom |
getClassCustomization(String type)
Get class customization information.
|
IClass |
getClassInfo(String type)
Get class information.
|
protected IClassLocator |
getClassLocator()
Get class locator.
|
List |
getExtensionChildren()
Get the extension elements used in this customization.
|
GlobalCustom |
getGlobal()
Get global customizations root.
|
PackageCustom |
getPackage(String name)
Get package customizations.
|
ArrayList |
getUnmarshalledClasses()
Get list of unmarshalled classes.
|
void |
initClasses()
Initialize the global default namespace, along with special classes with built-in defaults.
|
protected void |
internalAddExtensionChild(Object child)
Internal method used during unmarshalling to add a child extension element.
|
boolean |
isAddConstructors()
Get 'add-constructors' setting.
|
boolean |
isClassUsed(String type)
Check if a class is included in the customization information.
|
boolean |
isForceClasses()
Get 'force-classes' setting.
|
boolean |
isInput()
Check for an input binding.
|
boolean |
isKnownMapping(String type)
Check if type represents a known mapping.
|
boolean |
isOutput()
Check for an output binding.
|
boolean |
isTrackSource()
Get 'track-source' attribute value.
|
void |
setAddConstructors(boolean add)
Set 'add-constructors' value.
|
void |
setForceClasses(boolean force)
Set 'force-classes' value.
|
void |
setInput(boolean input)
Set input binding flag.
|
void |
setOutput(boolean output)
Set output binding falg.
|
void |
setTrackSource(boolean track)
Set 'track-source' value.
|
getStripPrefixes, getStripSuffixes, getValueStyle, isForceMapping, isForceStructureNames, isMapAbstract, isPropertyAccess, isWrapCollections, setMapAbstract, setValueStyleconvertName, getFormatterClass, getNamespace, getNamespaceStyle, getNameStyle, getSpecifiedNamespace, isObjectRequired, isPrimitiveRequired, isUseJavaDocs, setNamespace, setNamespaceStyle, setNameStyleconvertName, deriveItemName, deriveNamespace, getContainingObject, getParent, packageOfType, packageToNamespace, validateAttributespublic static final StringArray s_allowedAttributes
public static final String ELEMENT_NAME
public static final int IN_BINDING
public static final int OUT_BINDING
public static final int BOTH_BINDING
public GlobalCustom(IClassLocator loc)
loc - public GlobalCustom()
public GlobalCustom getGlobal()
getGlobal in class CustomBasepublic ArrayList getUnmarshalledClasses()
public boolean isAddConstructors()
public void setAddConstructors(boolean add)
add - 'add-constructors' valuepublic boolean isForceClasses()
public void setForceClasses(boolean force)
force - 'force-classes' valuepublic boolean isTrackSource()
public void setTrackSource(boolean track)
track - 'track-source' valuepublic boolean isInput()
public void setInput(boolean input)
input - public boolean isOutput()
public void setOutput(boolean output)
output - protected IClassLocator getClassLocator()
public IClass getClassInfo(String type)
type - fully-qualified class namenull if unable to loadpublic List getExtensionChildren()
protected void internalAddExtensionChild(Object child)
child - public void addExtensionChild(Object child)
IApply.apply(IClassLocator) method, if present.child - public boolean isClassUsed(String type)
type - fully qualified class nametrue if class includes, false if notpublic ClassCustom getClassCustomization(String type)
type - fully qualified class namenull if not defined)public ClassCustom addClassCustomization(String type)
type - fully qualified class namepublic boolean isKnownMapping(String type)
type - fully qualified class namepublic void initClasses()
public void fillClasses()
public PackageCustom getPackage(String name)
name - Copyright © 2005-2014 jibx.org. All Rights Reserved.