public class ValueCustom extends SharedValueBase
| Type | Property and Description |
|---|---|
boolean |
is
Check if member represents a property.
|
| 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| Modifier | Constructor and Description |
|---|---|
protected |
ValueCustom(SharedNestingBase parent)
Constructor.
|
protected |
ValueCustom(SharedNestingBase parent,
String name)
Constructor with name known.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFieldName()
Get 'field' attribute value.
|
String |
getGetName()
Get 'get-method' attribute name.
|
String |
getPropertyName()
Get 'property-name' attribute value.
|
String |
getSetName()
Get 'set-method' attribute name.
|
boolean |
isPrivate()
Check if a private member.
|
boolean |
isProperty()
Check if member represents a property.
|
static String |
memberNameFromField(String name,
String[] prefs,
String[] suffs)
Get the member name for a field from the field name.
|
static String |
memberNameFromGetMethod(String name)
Get the member name for a property from the read method name.
|
static String |
memberNameFromSetMethod(String name)
Get the member name for a property from the write method name.
|
protected void |
postSet()
Post-set method that handles checking attribute combinations and sets the actual member name.
|
protected void |
preSet(IUnmarshallingContext uctx)
Make sure all attributes are defined.
|
convertMemberNameCase, fillType, getActualType, getBaseName, getClassCustom, getCreateType, getFactoryMethod, getItemName, getItemType, getStatedType, getStyle, getWorkingType, getXmlName, isCollection, isElementForced, isRequired, setBaseName, setElementForced, setItemName, setItemType, setStyle, setXmlNameconvertName, deriveItemName, deriveNamespace, getContainingObject, getGlobal, getParent, packageOfType, packageToNamespace, validateAttributespublic static final StringArray s_allowedAttributes
protected ValueCustom(SharedNestingBase parent)
parent - protected ValueCustom(SharedNestingBase parent, String name)
parent - name - public static String memberNameFromGetMethod(String name)
name - SharedValueBase.convertMemberNameCase(String),
memberNameFromSetMethod(String),
memberNameFromField(String, String[], String[])public static String memberNameFromSetMethod(String name)
name - SharedValueBase.convertMemberNameCase(String),
memberNameFromGetMethod(String),
memberNameFromField(String, String[], String[])public static String memberNameFromField(String name, String[] prefs, String[] suffs)
name - prefs - field prefixes to be strippedsuffs - field suffixes to be strippedSharedValueBase.convertMemberNameCase(String),
memberNameFromGetMethod(String),
memberNameFromSetMethod(String)public boolean isProperty()
truepublic boolean isPrivate()
true if private, false if notpublic String getFieldName()
null if none)public String getGetName()
null if none)public String getSetName()
null if none)public String getPropertyName()
null if none)protected void preSet(IUnmarshallingContext uctx)
uctx - unmarshalling contextprotected void postSet()
throws JiBXException
JiBXExceptionCopyright © 2005-2014 jibx.org. All Rights Reserved.