public class SharedValueBase extends CustomBase
| 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 |
SharedValueBase(SharedNestingBase parent)
Constructor.
|
protected |
SharedValueBase(SharedNestingBase parent,
String name)
Constructor with name known.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
convertMemberNameCase(String name)
Convert case of member name derived from name used in code.
|
protected void |
fillType(IClass info,
Boolean req,
Integer style)
Complete customization information based on supplied type.
|
String |
getActualType()
Get 'actual-type' attribute value.
|
String |
getBaseName()
Get value name as used in code.
|
ClassCustom |
getClassCustom()
Convenience method to access the containing class customization element.
|
String |
getCreateType()
Get 'create-type' attribute value.
|
String |
getFactoryMethod()
Get 'factory' attribute value.
|
String |
getItemName()
Get item element name.
|
String |
getItemType()
Get item type.
|
String |
getStatedType()
Get stated type of value, as declared in code.
|
int |
getStyle()
Get style code to apply to value.
|
String |
getWorkingType()
Get working type of member.
|
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(String name)
Set value name as used in code.
|
protected void |
setElementForced()
Set element required.
|
protected void |
setItemName(String name)
Set item name.
|
protected void |
setItemType(String type)
Set item type.
|
protected void |
setStyle(Integer style)
Set style code to apply to value.
|
void |
setXmlName(String name)
Set XML element or attribute name from customization.
|
convertName, deriveItemName, deriveNamespace, getContainingObject, getGlobal, getParent, packageOfType, packageToNamespace, validateAttributespublic static final StringArray s_allowedAttributes
protected SharedValueBase(SharedNestingBase parent)
parent - protected SharedValueBase(SharedNestingBase parent, String name)
parent - name - public ClassCustom getClassCustom()
public String getBaseName()
protected void setBaseName(String name)
name - getBaseName()public String getStatedType()
public String getWorkingType()
public static String convertMemberNameCase(String name)
name - public int getStyle()
NestingBase.s_valueStyleEnum enumerationprotected void setStyle(Integer style)
style - public String getXmlName()
null if none)public void setXmlName(String name)
name - public String getActualType()
null if none)public String getCreateType()
null if none)public 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()
public boolean isCollection()
true if collection, false if notpublic String getItemType()
protected void setItemType(String type)
type - public String getItemName()
protected void setItemName(String name)
name - protected void fillType(IClass info, Boolean req, Integer style)
info - value type informationreq - required member flag (null if unspecified)style - representation style (null if unspecified)Copyright © 2005-2014 jibx.org. All Rights Reserved.