summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codegenerators/javacodeaccessormethod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/codegenerators/javacodeaccessormethod.cpp')
-rw-r--r--umbrello/umbrello/codegenerators/javacodeaccessormethod.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/umbrello/umbrello/codegenerators/javacodeaccessormethod.cpp b/umbrello/umbrello/codegenerators/javacodeaccessormethod.cpp
index 524e6a48..6c883952 100644
--- a/umbrello/umbrello/codegenerators/javacodeaccessormethod.cpp
+++ b/umbrello/umbrello/codegenerators/javacodeaccessormethod.cpp
@@ -52,7 +52,7 @@ JavaCodeAccessorMethod::~JavaCodeAccessorMethod ( ) { }
// Other methods
//
-void JavaCodeAccessorMethod::setAttributesOnNode ( QDomDocument & doc, QDomElement & blockElement)
+void JavaCodeAccessorMethod::setAttributesOnNode ( TQDomDocument & doc, TQDomElement & blockElement)
{
// set super-class attributes
@@ -61,7 +61,7 @@ void JavaCodeAccessorMethod::setAttributesOnNode ( QDomDocument & doc, QDomEleme
// set local attributes now
}
-void JavaCodeAccessorMethod::setAttributesFromNode( QDomElement & root)
+void JavaCodeAccessorMethod::setAttributesFromNode( TQDomElement & root)
{
// set attributes from superclass method the XMI
@@ -76,18 +76,18 @@ void JavaCodeAccessorMethod::updateContent( )
CodeClassField * parentField = getParentClassField();
JavaCodeClassField * javafield = dynamic_cast<JavaCodeClassField*>(parentField);
- QString fieldName = javafield->getFieldName();
+ TQString fieldName = javafield->getFieldName();
- QString text = "";
+ TQString text = "";
switch(getType()) {
case CodeAccessorMethod::ADD:
{
int maxOccurs = javafield->maximumListOccurances();
- QString fieldType = javafield->getTypeName();
- QString indent = getIndentation();
- QString endLine = UMLApp::app()->getCommonPolicy()->getNewLineEndingChars();
+ TQString fieldType = javafield->getTypeName();
+ TQString indent = getIndentation();
+ TQString endLine = UMLApp::app()->getCommonPolicy()->getNewLineEndingChars();
if(maxOccurs > 0)
- text += "if ("+fieldName+".size() < "+ QString::number(maxOccurs)+") {"+endLine+indent;
+ text += "if ("+fieldName+".size() < "+ TQString::number(maxOccurs)+") {"+endLine+indent;
text += fieldName+".add(value);";
if(maxOccurs > 0)
{
@@ -105,12 +105,12 @@ void JavaCodeAccessorMethod::updateContent( )
case CodeAccessorMethod::REMOVE:
{
int minOccurs = javafield->minimumListOccurances();
- QString fieldType = javafield->getTypeName();
- QString endLine = UMLApp::app()->getCommonPolicy()->getNewLineEndingChars();
- QString indent = getIndentation();
+ TQString fieldType = javafield->getTypeName();
+ TQString endLine = UMLApp::app()->getCommonPolicy()->getNewLineEndingChars();
+ TQString indent = getIndentation();
if(minOccurs > 0)
- text += "if ("+fieldName+".size() >= "+ QString::number(minOccurs)+") {"+endLine+indent;
+ text += "if ("+fieldName+".size() >= "+ TQString::number(minOccurs)+") {"+endLine+indent;
text += fieldName+".remove(value);";
if(minOccurs > 0)
{
@@ -140,13 +140,13 @@ void JavaCodeAccessorMethod::updateMethodDeclaration()
// gather defs
CodeGenerationPolicy::ScopePolicy scopePolicy = commonpolicy->getAttributeAccessorScope();
- QString strVis = javadoc->scopeToJavaDecl(javafield->getVisibility());
- QString fieldName = javafield->getFieldName();
- QString fieldType = javafield->getTypeName();
- QString objectType = javafield->getListObjectType();
+ TQString strVis = javadoc->scopeToJavaDecl(javafield->getVisibility());
+ TQString fieldName = javafield->getFieldName();
+ TQString fieldType = javafield->getTypeName();
+ TQString objectType = javafield->getListObjectType();
if(objectType.isEmpty())
objectType = fieldName;
- QString endLine = UMLApp::app()->getCommonPolicy()->getNewLineEndingChars();
+ TQString endLine = UMLApp::app()->getCommonPolicy()->getNewLineEndingChars();
// set scope of this accessor appropriately..if its an attribute,
// we need to be more sophisticated
@@ -164,10 +164,10 @@ void JavaCodeAccessorMethod::updateMethodDeclaration()
}
// some variables we will need to populate
- QString headerText = "";
- QString methodReturnType = "";
- QString methodName = "";
- QString methodParams = "";
+ TQString headerText = "";
+ TQString methodReturnType = "";
+ TQString methodName = "";
+ TQString methodParams = "";
switch(getType()) {
case CodeAccessorMethod::ADD: