public class PackageCustom extends NestingBase implements IApply
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT_NAME
Element name in XML customization file.
|
private java.util.Map |
m_classMap |
private boolean |
m_fixedNamespace |
private java.lang.String |
m_fullName |
private java.lang.String |
m_simpleName |
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 |
|---|
PackageCustom(java.lang.String simple,
java.lang.String full,
NestingBase parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) ClassCustom |
addClassCustomization(java.lang.String name)
Add information for class in this package.
|
void |
apply(IClassLocator loc)
Apply customizations to default values.
|
void |
fixNamespace()
Fix the namespace for this package.
|
ClassCustom |
getClassCustomization(java.lang.String name)
Get existing information for class in this package.
|
java.lang.String |
getName()
Get fully-qualified package name.
|
private void |
preSet(IUnmarshallingContext uctx)
Make sure all attributes are defined.
|
getStripPrefixes, getStripSuffixes, getValueStyle, isForceMapping, isForceStructureNames, isMapAbstract, isPropertyAccess, isWrapCollections, setMapAbstract, setValueStyleconvertName, getFormatterClass, getNamespace, getNamespaceStyle, getNameStyle, getSpecifiedNamespace, isObjectRequired, isPrimitiveRequired, isUseJavaDocs, setNamespace, setNamespaceStyle, setNameStyleconvertName, deriveItemName, deriveNamespace, getContainingObject, getGlobal, getParent, packageOfType, packageToNamespace, validateAttributespublic static final StringArray s_allowedAttributes
public static final java.lang.String ELEMENT_NAME
private java.lang.String m_simpleName
private java.lang.String m_fullName
private boolean m_fixedNamespace
private java.util.Map m_classMap
PackageCustom(java.lang.String simple,
java.lang.String full,
NestingBase parent)
GlobalCustom class.simple - simple package namefull - fully-qualified package nameparent - private void preSet(IUnmarshallingContext uctx)
uctx - unmarshalling contextpublic java.lang.String getName()
public ClassCustom getClassCustomization(java.lang.String name)
name - simple class name (without package)null if no existing information)ClassCustom addClassCustomization(java.lang.String name)
name - simple class name (without package)null if no existing information)public void fixNamespace()
public void apply(IClassLocator loc)