org.andromda.cartridges.java.metafacades
Class JavaClassLogicImpl

java.lang.Object
  extended by org.andromda.core.metafacade.MetafacadeBase
      extended by org.andromda.cartridges.java.metafacades.JavaClassLogic
          extended by org.andromda.cartridges.java.metafacades.JavaClassLogicImpl
All Implemented Interfaces:
Serializable, Comparable, JavaClass, ClassifierFacade, GeneralizableElementFacade, ModelElementFacade

public class JavaClassLogicImpl
extends JavaClassLogic

MetafacadeLogic implementation for org.andromda.cartridges.java.metafacades.JavaClass.

See Also:
JavaClass, Serialized Form

Field Summary
 
Fields inherited from class org.andromda.cartridges.java.metafacades.JavaClassLogic
metaObject
 
Fields inherited from class org.andromda.core.metafacade.MetafacadeBase
contextRoot, logger
 
Constructor Summary
JavaClassLogicImpl(Object metaObject, String context)
           
 
Method Summary
 String getName(boolean fault)
          If WebFault stereotype, change name from XXException to XXFault.
 Object getType()
          UML22 implementation for TemplateParameter logic
protected  String handleGetFullyQualifiedInterfaceImplementationName()
           
protected  String handleGetInterfaceImplementationName()
           
protected  String handleGetTemplateParams()
           
protected  boolean handleIsAbstractInterfaceImplementation()
           
 
Methods inherited from class org.andromda.cartridges.java.metafacades.JavaClassLogic
copyTaggedValues, findAttribute, findTaggedValue, findTaggedValue, findTaggedValues, getAbstractions, getAllAssociatedClasses, getAllGeneralizations, getAllProperties, getAllRequiredConstructorParameters, getAllSpecializations, getArray, getArrayName, getAssociatedClasses, getAssociationEnds, getAttributes, getAttributes, getBindedFullyQualifiedName, getConstraints, getConstraints, getDocumentation, getDocumentation, getDocumentation, getFullyQualifiedArrayName, getFullyQualifiedInterfaceImplementationName, getFullyQualifiedName, getFullyQualifiedName, getFullyQualifiedNamePath, getGeneralization, getGeneralizationLinks, getGeneralizationList, getGeneralizationRoot, getGeneralizations, getId, getImplementationOperations, getImplementedInterfaceList, getInstanceAttributes, getInstanceOperations, getInterfaceAbstractions, getInterfaceImplementationName, getJavaNewString, getJavaNullString, getKeywords, getLabel, getLanguageMappings, getModel, getName, getNavigableConnectingEnds, getNavigableConnectingEnds, getNonArray, getOperationCallFromAttributes, getOperations, getPackage, getPackageName, getPackageName, getPackagePath, getProperties, getProperties, getQualifiedName, getRequiredConstructorParameters, getRootPackage, getSerialVersionUID, getSourceDependencies, getSpecializations, getStateMachineContext, getStaticAttributes, getStaticOperations, getStereotypeNames, getStereotypes, getSuperClass, getTaggedValues, getTargetDependencies, getTemplateParameter, getTemplateParameters, getValidationName, getValidationOwner, getVisibility, getWrapperName, hasExactStereotype, hasKeyword, hasStereotype, initialize, isAbstract, isAbstractInterfaceImplementation, isArrayType, isAssociationClass, isBindingDependenciesPresent, isBlobType, isBooleanType, isCharacterType, isClassifierFacadeMetaType, isClobType, isCollectionType, isConstraintsPresent, isDataType, isDateType, isDocumentationPresent, isDoubleType, isEmbeddedValue, isEnumeration, isFileType, isFloatType, isGeneralizableElementFacadeMetaType, isIntegerType, isInterface, isJavaClassMetaType, isLeaf, isListType, isLongType, isMapType, isModelElementFacadeMetaType, isPrimitive, isReservedWord, isSetType, isStringType, isTemplateParametersPresent, isTimeType, isWrappedPrimitive, resetMetafacadeContext, toString, translateConstraint, translateConstraints, translateConstraints, validateInvariants
 
Methods inherited from class org.andromda.core.metafacade.MetafacadeBase
compareTo, equals, getConfiguredProperty, getMetafacadeContext, getMetaObject, hashCode, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaClassLogicImpl

public JavaClassLogicImpl(Object metaObject,
                          String context)
Parameters:
metaObject -
context -
Method Detail

getName

public String getName(boolean fault)
If WebFault stereotype, change name from XXException to XXFault. Class should also have XXException stereotype so that the corresponding Exception referencing the fault is also created.

Parameters:
fault - true if name is to be converted to Fault version, for VO Template only
Returns:
the class name.

getType

public Object getType()
UML22 implementation for TemplateParameter logic

Returns:
the class name.

handleGetInterfaceImplementationName

protected String handleGetInterfaceImplementationName()
Specified by:
handleGetInterfaceImplementationName in class JavaClassLogic
Returns:
InterfaceImplementionName
See Also:
JavaClass.getInterfaceImplementationName()

handleGetFullyQualifiedInterfaceImplementationName

protected String handleGetFullyQualifiedInterfaceImplementationName()
Specified by:
handleGetFullyQualifiedInterfaceImplementationName in class JavaClassLogic
Returns:
InterfaceImplementationName
See Also:
JavaClass.getFullyQualifiedInterfaceImplementationName()

handleIsAbstractInterfaceImplementation

protected boolean handleIsAbstractInterfaceImplementation()
Specified by:
handleIsAbstractInterfaceImplementation in class JavaClassLogic
Returns:
abstractImplementation
See Also:
JavaClass.isAbstractInterfaceImplementation()

handleGetTemplateParams

protected String handleGetTemplateParams()
Returns:
templateParams
See Also:
JavaClassLogic.getTemplateParameters()


Copyright © 2003-2012 AndroMDA.org. All Rights Reserved.