public class ValueCustom extends SharedValueBase
| Type | Property and Description |
|---|---|
boolean |
is
Check if member represents a property.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
m_fieldName
'field' attribute value (
null if none). |
private java.lang.String |
m_getName
'get-method' attribute value (
null if none). |
private boolean |
m_private
Private property flag.
|
private java.lang.String |
m_propertyName
'property-name' attribute value (
null if none). |
private java.lang.String |
m_setName
'set-method' attribute value (
null if none). |
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,
java.lang.String name)
Constructor with name known.
|
| Modifier and Type | Method and Description |
|---|---|
private static ValueCustom |
factory(IUnmarshallingContext ictx)
Factory method for creating instances during unmarshalling.
|
(package private) void |
fillDetails(IClass info,
java.lang.Boolean req,
java.lang.Integer style)
Complete customization information based on whatever field or access method information has been set.
|
(package private) void |
fillDetails(IClassItem field,
IClassItem gmeth,
IClassItem smeth,
IClassLocator icl,
java.lang.Boolean req,
java.lang.Integer style)
Complete customization information based on either field or access method information.
|
java.lang.String |
getFieldName()
Get 'field' attribute value.
|
java.lang.String |
getGetName()
Get 'get-method' attribute name.
|
java.lang.String |
getPropertyName()
Get 'property-name' attribute value.
|
java.lang.String |
getSetName()
Get 'set-method' attribute name.
|
boolean |
isPrivate()
Check if a private member.
|
boolean |
isProperty()
Check if member represents a property.
|
static java.lang.String |
memberNameFromField(java.lang.String name,
java.lang.String[] prefs,
java.lang.String[] suffs)
Get the member name for a field from the field name.
|
static java.lang.String |
memberNameFromGetMethod(java.lang.String name)
Get the member name for a property from the read method name.
|
static java.lang.String |
memberNameFromSetMethod(java.lang.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.
|
private void |
setAttribute(java.lang.String text,
IUnmarshallingContext ictx)
Set attribute name method.
|
private void |
setElement(java.lang.String text,
IUnmarshallingContext ictx)
Set element name method.
|
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
private boolean m_private
private java.lang.String m_fieldName
null if none).private java.lang.String m_getName
null if none).private java.lang.String m_setName
null if none).private java.lang.String m_propertyName
null if none).protected ValueCustom(SharedNestingBase parent)
parent - protected ValueCustom(SharedNestingBase parent, java.lang.String name)
parent - name - public static java.lang.String memberNameFromGetMethod(java.lang.String name)
name - SharedValueBase.convertMemberNameCase(String),
memberNameFromSetMethod(String),
memberNameFromField(String, String[], String[])public static java.lang.String memberNameFromSetMethod(java.lang.String name)
name - SharedValueBase.convertMemberNameCase(String),
memberNameFromGetMethod(String),
memberNameFromField(String, String[], String[])public static java.lang.String memberNameFromField(java.lang.String name,
java.lang.String[] prefs,
java.lang.String[] suffs)
name - prefs - field prefixes to be strippedsuffs - field suffixes to be strippedSharedValueBase.convertMemberNameCase(String),
memberNameFromGetMethod(String),
memberNameFromSetMethod(String)private void setElement(java.lang.String text,
IUnmarshallingContext ictx)
null value. TODO: add validationtext - (null if attribute not present)ictx - private void setAttribute(java.lang.String text,
IUnmarshallingContext ictx)
null value. TODO: add validationtext - (null if attribute not present)ictx - public boolean isProperty()
truepublic boolean isPrivate()
true if private, false if notpublic java.lang.String getFieldName()
null if none)public java.lang.String getGetName()
null if none)public java.lang.String getSetName()
null if none)public java.lang.String getPropertyName()
null if none)protected void preSet(IUnmarshallingContext uctx)
uctx - unmarshalling contextprotected void postSet()
throws JiBXException
JiBXExceptionvoid fillDetails(IClassItem field, IClassItem gmeth, IClassItem smeth, IClassLocator icl, java.lang.Boolean req, java.lang.Integer style)
field - (null if none)gmeth - read access method (null if none)smeth - write access method (null if none)icl - class locatorreq - required member flag (null if unknown)style - representation style (null if unspecified)void fillDetails(IClass info, java.lang.Boolean req, java.lang.Integer style)
info - containing class informationreq - required member flag (null if unknown)style - representation style (null if unspecified)private static ValueCustom factory(IUnmarshallingContext ictx)
ictx -