public class MFixedUnionDescription extends MBaseClassDescription
Used by element factories to create a union description that can not be changed
dataType, m_xsiTypeName, m_xsiTypeRelPath
Constructor and Description |
---|
MFixedUnionDescription(MClassRegistry clsReg,
java.lang.String unionName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addMangledNameToMap(java.lang.String memberName,
java.lang.String mangledMemberName)
Add to the manglednames map
Key - mangled name
Value - original name
|
MUnionMemberDescription |
addMember(java.lang.String memberName,
com.tibco.infra.base.GlobalName memberClassName,
java.lang.String defaultValStr)
Create a union member as specified and attach it to this union
|
MUnionMemberDescription |
addMember(java.lang.String memberName,
MClassDescription memberClass,
java.lang.Object defaultVal)
Create a union member as specified and attach it to this union
|
MUnionMemberDescription |
addMember(java.lang.String memberName,
java.lang.String memberClassName,
java.lang.String defaultValStr)
Create a union member as specified and attach it to this union
|
java.lang.Object |
construct()
Construct an MUnion object, and initialize the specified attribute
|
MUnionMemberDescription |
getMember(java.lang.String name)
Return the named union member
|
java.util.Enumeration |
getMembers()
Enumerate over the list of union members.
|
java.lang.String |
getOriginalMemberName(java.lang.String mangledMemberName)
Get original name from map, given the mangled name
|
boolean |
isOK() |
boolean |
isOK(java.lang.StringBuffer errorReason) |
void |
lock()
Signal no longer allow modification to class composition
|
java.lang.String |
mangleMemberName(java.lang.String memberName)
Mangle member name
Logic - filter xml illegal characters, if filtered name clashes with existing
member, append count ( starting at 0) at the end.
|
java.lang.String |
toString()
Return the string representation of this object
|
addDefaultValue, addToClassRegistry, getClassDescriptionGlobalName, getClassDescriptionName, getClassDescriptionShortName, getClassRegistry, getDataType, getDefaultList, getDefaultValue, getFullName, getIdAsString, getPathName, getShortName, getXsiTypeName, getXsiTypeRelPath, isAssignable, isSubclass, isSuperclass, removeFromClassRegistry, setXsiTypeName, setXsiTypeRelPath
addProperty, getProperties, getProperty, getPropertyCount, getPropertyNames, getRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDefaultValue, getClassDescriptionGlobalName, getClassDescriptionName, getClassDescriptionShortName, getClassRegistry, getDataType, getDefaultList, getDefaultValue, getFullName, getPathName, getShortName, getXsiTypeName, getXsiTypeRelPath, isAssignable, isSubclass, isSuperclass, setXsiTypeName, setXsiTypeRelPath
getProperties, getProperty, getPropertyCount, getPropertyNames
public MFixedUnionDescription(MClassRegistry clsReg, java.lang.String unionName)
public void lock()
public MUnionMemberDescription addMember(java.lang.String memberName, java.lang.String memberClassName, java.lang.String defaultValStr) throws MException
addMember
in interface MUnionDescription
MException
- On duplicated member ( detected by name comparison )public MUnionMemberDescription addMember(java.lang.String memberName, com.tibco.infra.base.GlobalName memberClassName, java.lang.String defaultValStr) throws MException
addMember
in interface MUnionDescription
MException
- On duplicated member ( detected by name comparison )MUnionDescription.addMember(String, String, String)
public MUnionMemberDescription addMember(java.lang.String memberName, MClassDescription memberClass, java.lang.Object defaultVal) throws MException
addMember
in interface MUnionDescription
memberName
- Name of the member to be added to this union description.memberClass
- Class (or global name of
class) of the member to be added to this union description.defaultVal
- Default value.MException
- On duplicated member ( detected by name comparison )public java.lang.Object construct() throws MConstructionException
construct
in interface MClassDescription
construct
in class MBaseClassDescription
MConstructionException
- On any failure to create an instance of this classpublic java.lang.String mangleMemberName(java.lang.String memberName)
public void addMangledNameToMap(java.lang.String memberName, java.lang.String mangledMemberName)
addMangledNameToMap
in interface MUnionDescription
public java.lang.String getOriginalMemberName(java.lang.String mangledMemberName)
getOriginalMemberName
in interface MUnionDescription
public MUnionMemberDescription getMember(java.lang.String name)
getMember
in interface MUnionDescription
public java.util.Enumeration getMembers()
getMembers
in interface MUnionDescription
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isOK()
isOK
in interface MMetaDescription
isOK
in class MRegistryObjectWithProperties
public boolean isOK(java.lang.StringBuffer errorReason)
isOK
in interface MMetaDescription
isOK
in class MRegistryObjectWithProperties