public class CustomBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CAMEL_CASE_NAMES |
static int |
DERIVE_BY_PACKAGE |
static int |
DERIVE_FIXED |
static int |
DERIVE_NONE |
static int |
DOTTED_NAMES |
static int |
HYPHENATED_NAMES |
private SharedNestingBase |
m_parent |
static int |
REQUIRE_ALL |
static int |
REQUIRE_NONE |
static int |
REQUIRE_OBJECTS |
static int |
REQUIRE_PRIMITIVES |
static EnumSet |
s_namespaceStyleEnum |
static EnumSet |
s_nameStyleEnum |
static EnumSet |
s_requireEnum |
static int |
UNDERSCORED_NAMES |
static int |
UPPER_CAMEL_CASE_NAMES |
| Constructor and Description |
|---|
CustomBase(SharedNestingBase parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
convertName(java.lang.String base,
int code)
Convert class, method, or parameter name to XML name.
|
static java.lang.String |
deriveItemName(java.lang.String cname,
java.lang.String type,
int code)
Derive name for item in a collection.
|
static java.lang.String |
deriveNamespace(java.lang.String uri,
java.lang.String pkgpth,
int style)
Derive namespace using specified technique.
|
protected static java.lang.Object |
getContainingObject(IUnmarshallingContext ictx)
Gets the parent element link from the unmarshalling stack.
|
GlobalCustom |
getGlobal()
Get global customizations root.
|
SharedNestingBase |
getParent()
Get container.
|
static java.lang.String |
packageOfType(java.lang.String type)
Get the package from a fully-qualified type name.
|
static java.lang.String |
packageToNamespace(java.lang.String pkgpth)
Create a namespace URL from a package path.
|
protected void |
validateAttributes(IUnmarshallingContext ictx,
StringArray attrs)
Validate attributes of element.
|
public static final int CAMEL_CASE_NAMES
public static final int UPPER_CAMEL_CASE_NAMES
public static final int HYPHENATED_NAMES
public static final int DOTTED_NAMES
public static final int UNDERSCORED_NAMES
public static final EnumSet s_nameStyleEnum
public static final int REQUIRE_NONE
public static final int REQUIRE_PRIMITIVES
public static final int REQUIRE_OBJECTS
public static final int REQUIRE_ALL
public static final EnumSet s_requireEnum
public static final int DERIVE_NONE
public static final int DERIVE_BY_PACKAGE
public static final int DERIVE_FIXED
public static final EnumSet s_namespaceStyleEnum
private SharedNestingBase m_parent
public CustomBase(SharedNestingBase parent)
parent - public SharedNestingBase getParent()
public GlobalCustom getGlobal()
public static java.lang.String convertName(java.lang.String base,
int code)
base - class or simple field name to be convertedcode - conversion format style codepublic static java.lang.String deriveItemName(java.lang.String cname,
java.lang.String type,
int code)
cname - collection name (null if none)type - item type (null if unknown)code - conversion format style codepublic static java.lang.String packageOfType(java.lang.String type)
type - fully-qualified type namepublic static java.lang.String packageToNamespace(java.lang.String pkgpth)
pkgpth - fully-qualified package namenull if none)public static java.lang.String deriveNamespace(java.lang.String uri,
java.lang.String pkgpth,
int style)
uri - base namespace URI (null if none)pkgpth - fully qualified package namestyle - namespace style codeprotected void validateAttributes(IUnmarshallingContext ictx, StringArray attrs)
ictx - unmarshalling contextattrs - attributes arrayprotected static java.lang.Object getContainingObject(IUnmarshallingContext ictx)
ictx - unmarshalling context