public class SharedValueBase extends CustomBase
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
m_actualType
'actual-type' attribute value (
null if none). |
private java.lang.String |
m_baseName
Value name as used in code.
|
private boolean |
m_collection
Repeated value flag.
|
private java.lang.String |
m_createType
'create-type' attribute value (
null if none). |
private boolean |
m_elementForced
Element representation forced flag.
|
private java.lang.String |
m_factoryMethod
'factory' attribute value (
null if none). |
private java.lang.String |
m_itemName
'item-name' attribute value (
null if none). |
private java.lang.String |
m_itemType
'item-type' attribute value (
null if none). |
private java.lang.String |
m_itemWorkingName
Name for item elements in collection.
|
private java.lang.String |
m_itemWorkingType
Type of item values in collection.
|
private boolean |
m_primitive
Primitive value flag.
|
private java.lang.Boolean |
m_required
'required' attribute value (
null if none). |
private java.lang.String |
m_statedType
Stated type, as used in code.
|
private java.lang.Integer |
m_style
Style used for representation (
null if unspecified and derived from type). |
private java.lang.String |
m_workingType
Type used when working with the value (actual type from customization, if supplied, or stated type).
|
private java.lang.String |
m_xmlName
Element or attribute name from customization (
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 |
SharedValueBase(SharedNestingBase parent)
Constructor.
|
protected |
SharedValueBase(SharedNestingBase parent,
java.lang.String name)
Constructor with name known.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertMemberNameCase(java.lang.String name)
Convert case of member name derived from name used in code.
|
protected void |
fillType(IClass info,
java.lang.Boolean req,
java.lang.Integer style)
Complete customization information based on supplied type.
|
java.lang.String |
getActualType()
Get 'actual-type' attribute value.
|
java.lang.String |
getBaseName()
Get value name as used in code.
|
ClassCustom |
getClassCustom()
Convenience method to access the containing class customization element.
|
java.lang.String |
getCreateType()
Get 'create-type' attribute value.
|
java.lang.String |
getFactoryMethod()
Get 'factory' attribute value.
|
java.lang.String |
getItemName()
Get item element name.
|
java.lang.String |
getItemType()
Get item type.
|
java.lang.String |
getStatedType()
Get stated type of value, as declared in code.
|
int |
getStyle()
Get style code to apply to value.
|
private java.lang.String |
getStyleText()
Style get text method.
|
java.lang.String |
getWorkingType()
Get working type of member.
|
java.lang.String |
getXmlName()
Get XML element or attribute name from customization.
|
boolean |
isCollection()
Check if collection member.
|
boolean |
isElementForced()
Check if element required.
|
boolean |
isRequired()
Check if value is required.
|
protected void |
setBaseName(java.lang.String name)
Set value name as used in code.
|
protected void |
setElementForced()
Set element required.
|
protected void |
setItemName(java.lang.String name)
Set item name.
|
protected void |
setItemType(java.lang.String type)
Set item type.
|
protected void |
setStyle(java.lang.Integer style)
Set style code to apply to value.
|
void |
setXmlName(java.lang.String name)
Set XML element or attribute name from customization.
|
convertName, deriveItemName, deriveNamespace, getContainingObject, getGlobal, getParent, packageOfType, packageToNamespace, validateAttributes
public static final StringArray s_allowedAttributes
private java.lang.String m_baseName
private boolean m_elementForced
private java.lang.String m_statedType
private java.lang.String m_workingType
private java.lang.String m_itemWorkingType
private java.lang.String m_itemWorkingName
private boolean m_primitive
private boolean m_collection
private java.lang.Integer m_style
null
if unspecified and derived from type).private java.lang.String m_xmlName
null
if none).private java.lang.String m_actualType
null
if none).private java.lang.String m_createType
null
if none).private java.lang.String m_factoryMethod
null
if none).private java.lang.Boolean m_required
null
if none).private java.lang.String m_itemType
null
if none).private java.lang.String m_itemName
null
if none).protected SharedValueBase(SharedNestingBase parent)
parent
- protected SharedValueBase(SharedNestingBase parent, java.lang.String name)
parent
- name
- public ClassCustom getClassCustom()
public java.lang.String getBaseName()
protected void setBaseName(java.lang.String name)
name
- getBaseName()
public java.lang.String getStatedType()
public java.lang.String getWorkingType()
public static java.lang.String convertMemberNameCase(java.lang.String name)
name
- public int getStyle()
NestingBase.s_valueStyleEnum
enumerationprotected void setStyle(java.lang.Integer style)
style
- public java.lang.String getXmlName()
null
if none)public void setXmlName(java.lang.String name)
name
- public java.lang.String getActualType()
null
if none)public java.lang.String getCreateType()
null
if none)public java.lang.String getFactoryMethod()
null
if none)public boolean isRequired()
true
if required, false
if notpublic boolean isElementForced()
true
if element required, false
if notprotected void setElementForced()
private java.lang.String getStyleText()
public boolean isCollection()
true
if collection, false
if notpublic java.lang.String getItemType()
protected void setItemType(java.lang.String type)
type
- public java.lang.String getItemName()
protected void setItemName(java.lang.String name)
name
- protected void fillType(IClass info, java.lang.Boolean req, java.lang.Integer style)
info
- value type informationreq
- required member flag (null
if unspecified)style
- representation style (null
if unspecified)