public class MFixedClassDescription extends MBaseClassDescription
Used by element factories to create a class description that can not be changed
dataType, m_xsiTypeName, m_xsiTypeRelPath
Constructor and Description |
---|
MFixedClassDescription(MClassRegistry clsReg,
java.lang.String className,
java.lang.String superclassName)
Constructor - make lazy evaluation of classes possible
|
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(MAssociationDescription assoc)
Add this association to this class.
|
void |
addAttribute(MAttributeDescription att)
Add this attribute to this class.
|
MAttributeDescription |
addAttribute(java.lang.String attributeName,
com.tibco.infra.base.GlobalName attributeClassName,
java.lang.String defaultValStr,
boolean isKey,
boolean isReadOnly,
boolean isWriteOnly)
Create an attribute as specified and attach it to this class
|
MAttributeDescription |
addAttribute(java.lang.String attributeName,
MClassDescription attributeClass,
java.lang.Object defaultVal,
boolean isKey,
boolean isReadOnly,
boolean isWriteOnly)
Create an attribute as specified and attach it to this class
|
MAttributeDescription |
addAttribute(java.lang.String attributeName,
java.lang.String attributeClassName,
java.lang.String defaultValStr,
boolean isKey,
boolean isReadOnly,
boolean isWriteOnly)
Create an attribute as specified and attach it to this class
|
void |
addMangledNameToMap(java.lang.String attrName,
java.lang.String mangledAttrName)
Add to the manglednames map
Key - mangled name
Value - original name
|
void |
addOperation(MOperationDescription op)
Create an operation as specified and attach it to this class
|
MOperationDescription |
addOperation(java.lang.String operationName,
com.tibco.infra.base.GlobalName returnClassName,
boolean oneWay)
Create an operation as specified and attach it to this class
|
MOperationDescription |
addOperation(java.lang.String operationName,
MClassDescription returnClass,
boolean oneWay)
Create a operation as specified and attach it to this class
|
MOperationDescription |
addOperation(java.lang.String operationName,
java.lang.String returnClassName,
boolean oneWay)
Create an operation as specified and attach it to this class
|
java.lang.Object |
construct()
Construct an MInstance object, and initialize the attributes.
|
MAssociationDescription |
getAssociation(java.lang.String name)
Return the named association, looking in ancestor classes if necessary;
null if not found
|
java.util.Enumeration |
getAssociations()
Enumerate over the list of associations.
|
MAttributeDescription |
getAttribute(int pos)
get the attribute of a class description at the specified position.
|
MAttributeDescription |
getAttribute(java.lang.String name)
Return the named attribute, looking in ancestor classes if necessary;
null if not found
|
int |
getAttributeCount()
Return the attribute count of for this class
|
java.util.Enumeration |
getAttributes()
Enumerate over the list of attibutes.
|
java.util.Enumeration |
getLocalAssociations()
Enumerate over the list of associations.
|
java.util.Enumeration |
getLocalAttributes()
Enumerate over the list of attibutes.
|
java.util.Enumeration |
getLocalOperations()
Enumerate over the list of operations.
|
MOperationDescription |
getOperation(java.lang.String name)
Return the named operation, looking in ancestor classes if necessary;
null if not found
|
java.util.Enumeration |
getOperations()
Enumerate over the list of operations.
|
java.lang.String |
getOriginalAttributeName(java.lang.String mangledAttrName)
Get original name from map, given the mangled name
|
MClassDescription |
getParentClassDescription()
Return the parent class, or null if there's none
|
boolean |
isOK() |
boolean |
isOK(java.lang.StringBuffer errorReason) |
void |
lock()
Signal no longer allow modification to class composition
|
java.lang.String |
mangleAttributeName(java.lang.String attrName)
Mangle attribute name
Logic - filter xml illegal characters, if filtered name clashes with existing
attribute, 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
getIdAsString
public MFixedClassDescription(MClassRegistry clsReg, java.lang.String className, java.lang.String superclassName)
public void addAttribute(MAttributeDescription att) throws MException
MException
- On duplicated attribute ( detected by name comparison )MRestrictedMethodException
- On atempts to modify the attribute list
after it's been lockedpublic MAttributeDescription addAttribute(java.lang.String attributeName, java.lang.String attributeClassName, java.lang.String defaultValStr, boolean isKey, boolean isReadOnly, boolean isWriteOnly) throws MException
addAttribute
in interface MModeledClassDescription
attributeName
- Name of the attribute to add to the specified class.attributeClassName
- Name of the class of the attribute, for
example string or i4.defaultValStr
- Default value for this attribute, specified as an object.isKey
- If true
, this attribute is considered a key attribute.
If false
, it is not considered a key.isReadOnly
- If true
, this attribute is read only.isWriteOnly
- If true
, this attribute is write only.MException
- On duplicated attribute ( detected by name comparison )MRestrictedMethodException
- On atempts to modify the attribute list
after it's been lockedpublic MAttributeDescription addAttribute(java.lang.String attributeName, com.tibco.infra.base.GlobalName attributeClassName, java.lang.String defaultValStr, boolean isKey, boolean isReadOnly, boolean isWriteOnly) throws MException
addAttribute
in interface MModeledClassDescription
MException
- On duplicated attribute ( detected by name comparison )MRestrictedMethodException
- On atempts to modify the attribute list
after it's been lockedpublic MAttributeDescription addAttribute(java.lang.String attributeName, MClassDescription attributeClass, java.lang.Object defaultVal, boolean isKey, boolean isReadOnly, boolean isWriteOnly) throws MException
addAttribute
in interface MModeledClassDescription
MException
- On duplicated attribute ( detected by name comparison )MRestrictedMethodException
- On atempts to modify the attribute list
after it's been lockedpublic void addOperation(MOperationDescription op) throws MException
MException
- On duplicated operation ( detected by name comparison )public MOperationDescription addOperation(java.lang.String operationName, java.lang.String returnClassName, boolean oneWay) throws MException
addOperation
in interface MModeledClassDescription
operationName
- Name of the operation to add to the specified class.returnClassName
- Global name of the class whose name is returned by this operation.oneWay
- If true
, this is a oneway operation. If false
, it is not.MException
- On duplicated operation ( detected by name comparison )public MOperationDescription addOperation(java.lang.String operationName, com.tibco.infra.base.GlobalName returnClassName, boolean oneWay) throws MException
addOperation
in interface MModeledClassDescription
MException
- On duplicated operation ( detected by name comparison )MModeledClassDescription.addOperation(String, String, boolean)
public MOperationDescription addOperation(java.lang.String operationName, MClassDescription returnClass, boolean oneWay) throws MException
addOperation
in interface MModeledClassDescription
MException
- On duplicated operation ( detected by name comparison )public void lock()
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 MClassDescription getParentClassDescription()
getParentClassDescription
in interface MModeledClassDescription
public int getAttributeCount()
getAttributeCount
in interface MModeledClassDescription
public java.util.Enumeration getLocalAttributes()
getLocalAttributes
in interface MModeledClassDescription
public MAttributeDescription getAttribute(java.lang.String name)
getAttribute
in interface MModeledClassDescription
name
- Attribute to retrieve.public MAttributeDescription getAttribute(int pos)
getAttribute
in interface MModeledClassDescription
pos
- Position of attribute to retrieve.public java.util.Enumeration getAttributes()
getAttributes
in interface MModeledClassDescription
public java.lang.String mangleAttributeName(java.lang.String attrName)
public void addMangledNameToMap(java.lang.String attrName, java.lang.String mangledAttrName)
addMangledNameToMap
in interface MModeledClassDescription
public java.lang.String getOriginalAttributeName(java.lang.String mangledAttrName)
getOriginalAttributeName
in interface MModeledClassDescription
public java.util.Enumeration getLocalAssociations()
public MAssociationDescription getAssociation(java.lang.String name)
getAssociation
in interface MModeledClassDescription
public java.util.Enumeration getAssociations()
getAssociations
in interface MModeledClassDescription
public java.util.Enumeration getLocalOperations()
public MOperationDescription getOperation(java.lang.String name)
getOperation
in interface MModeledClassDescription
public java.util.Enumeration getOperations()
getOperations
in interface MModeledClassDescription
public void addAssociation(MAssociationDescription assoc) throws MException
MException
- On duplicated association ( detected by name comparison )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