public class ClassCustom extends NestingBase implements IApply
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT_NAME
Element name in XML customization file.
|
static int |
FORM_ABSTRACT_MAPPING |
static int |
FORM_CONCRETE_MAPPING |
static int |
FORM_DEFAULT |
static int |
FORM_STRING |
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
static EnumSet |
s_representationEnum |
ATTRIBUTE_STYLE_INTEGER, ATTRIBUTE_VALUE_STYLE, ELEMENT_STYLE_INTEGER, ELEMENT_VALUE_STYLE, s_valueStyleEnumCAMEL_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 and Type | Method and Description |
|---|---|
protected void |
addChild(CustomBase child)
Add child.
|
void |
apply(IClassLocator icl)
Apply customizations to class to fill out members.
|
List |
getChildren()
Get list of children.
|
IClass |
getClassInformation()
Get actual class information.
|
String |
getCreateType()
Get the type name to be used when creating an instance of this class.
|
String |
getDeserializer()
Get deserializer method.
|
String |
getElementName()
Get the element name to be used for this class in a concrete mapping.
|
QName |
getElementQName()
Get the qualified element name to be used for this class in a concrete mapping.
|
String |
getEnumValueMethod()
Get the method used to retrieve the text value for an enum class.
|
String[] |
getExcludes()
Get list of names to be excluded from class representation.
|
String |
getFactoryMethod()
Get the factory method to be used when creating an instance of this class.
|
int |
getForm()
Get the representation code.
|
String[] |
getIncludes()
Get list of names to be included in class representation.
|
ValueCustom |
getMember(String name)
Get customization information for a member by name.
|
Collection |
getMembers()
Get collection of members in class.
|
String |
getName()
Get fully-qualified class name.
|
String |
getSerializer()
Get serializer method.
|
String |
getSimpleName()
Get simple class name.
|
String |
getTypeName()
Get the type name to be used for this class in an abstract mapping.
|
QName |
getTypeQName()
Get the qualified type name to be used for this class in an abstract mapping.
|
boolean |
isAbstractMappingForced()
Check if abstract mapping required for class.
|
boolean |
isConcreteClass()
Check if this is a directly instantiable class (not an interface, and not abstract)
|
boolean |
isConcreteMappingForced()
Check if concrete mapping required for class.
|
boolean |
isSimpleValue()
Check if class represents a simple text value.
|
boolean |
isUseSuper()
Check for superclass to be included in binding.
|
void |
setCreateType(String type)
Set the type name to be used when creating an instance of this class.
|
getStripPrefixes, getStripSuffixes, getValueStyle, isForceMapping, isForceStructureNames, isMapAbstract, isPropertyAccess, isWrapCollections, setMapAbstract, setValueStyleconvertName, getFormatterClass, getNamespace, getNamespaceStyle, getNameStyle, getSpecifiedNamespace, isObjectRequired, isPrimitiveRequired, isUseJavaDocs, setNamespace, setNamespaceStyle, setNameStyleconvertName, deriveItemName, deriveNamespace, getContainingObject, getGlobal, getParent, packageOfType, packageToNamespace, validateAttributespublic static final StringArray s_allowedAttributes
public static final String ELEMENT_NAME
public static final int FORM_DEFAULT
public static final int FORM_CONCRETE_MAPPING
public static final int FORM_ABSTRACT_MAPPING
public static final int FORM_STRING
public static final EnumSet s_representationEnum
public String getName()
public String getSimpleName()
public String getElementName()
public QName getElementQName()
public String getTypeName()
public String getCreateType()
public void setCreateType(String type)
type - public String getSerializer()
public String getDeserializer()
public String getEnumValueMethod()
public String getFactoryMethod()
public QName getTypeQName()
public int getForm()
s_representationEnum enumerationpublic String[] getExcludes()
null if none)public String[] getIncludes()
null if none)public boolean isUseSuper()
true if superclass included, false if notpublic boolean isConcreteClass()
true if instantiable, false if notpublic boolean isSimpleValue()
public boolean isAbstractMappingForced()
public boolean isConcreteMappingForced()
public List getChildren()
protected void addChild(CustomBase child)
child - public void apply(IClassLocator icl)
public ValueCustom getMember(String name)
apply(IClassLocator).name - null if nonepublic IClass getClassInformation()
apply(IClassLocator).public Collection getMembers()
Copyright © 2005-2014 jibx.org. All Rights Reserved.