de.uni_paderborn.fujaba.basic
Class SourceCodeFactory

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.SourceCodeFactory
Direct Known Subclasses:
JavaFactory

public abstract class SourceCodeFactory
extends java.lang.Object

An abstract factory class for source code. If you want to add an specific factory for example Java source code, derive this class and fill the abstract method with life. The indentString contains the string which has to be inserted for every line and indent indicates how many times.

Version:
$Revision: 1.104 $
Author:
$Author: schneider $

Field Summary
static int ADD_AFTER_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int ADD_BEFORE_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int ADD_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int ENTRIES_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_AT_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_FIRST_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_FROM_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_KEY_FOR_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_KEY_FROM_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_LAST_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_NEXT_INDEX_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_NEXT_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_PREVIOUS_INDEX_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_PREVIOUS_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int GET_VALUE_FROM_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int HAS_ENTRY_IN_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int HAS_IN_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int HAS_KEY_IN_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int HAS_VALUE_IN_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int INDEX_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int IS_AFTER_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int IS_BEFORE_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int IS_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int ITERATOR_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int KEY_CHANGED_IN_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int KEYS_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int LAST_INDEX_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int REMOVE_ALL_FROM_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int REMOVE_ENTRY_FROM_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int REMOVE_KEY_FROM_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int REMOVE_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int REMOVE_VALUE_FROM_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int REMOVE_YOU_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int SET_IN_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int SET_METHOD
          No comment provided by developer, please add a comment to improve documentation.
static int SIZE_OF_METHOD
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
SourceCodeFactory()
           
 
Method Summary
abstract  java.lang.String assocCommentary(java.lang.String fClassName, java.lang.String fRoleName, java.lang.String fCard, java.lang.String assocName, java.lang.String constraint, java.lang.String sClassName, java.lang.String sRoleName, java.lang.String sCard, java.lang.String fQualifierName, java.lang.String sQualifierName, boolean fIsRef, boolean sIsRef, boolean fIsAggr, boolean sIsAggr)
          No comment provided by developer, please add a comment to improve documentation.
 void decIndent()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String getAccessMethodName(java.lang.String name, int type)
          Get the accessMethodName attribute of the SourceCodeFactory object
 java.lang.String getAssocAccessMethodLine(int type, java.lang.String name, int upperBound, boolean selfQualified)
          Get the assocAccessMethodLine attribute of the SourceCodeFactory object
abstract  java.lang.String getAssocAccessMethodLine(int type, java.lang.String name, int upperBound, boolean qualifier, boolean selfQualified)
          Get the assocAccessMethodLine attribute of the SourceCodeFactory object
 java.lang.String getFullAccessMethodName(java.lang.String name, java.lang.String fieldTypeName, int type)
          Get the fullAccessMethodName attribute of the SourceCodeFactory object
 java.lang.String getIndentString()
          Get the indentString attribute of the SourceCodeFactory object
 void incIndent()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.StringBuffer itChar(int n, char c)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.StringBuffer newLine()
          No comment provided by developer, please add a comment to improve documentation.
abstract  java.lang.String removeYouBody(java.lang.String roleName, java.lang.String type, boolean toOne, boolean isQualified, boolean isPartnerQualified, boolean isUsingAttr, boolean aggregation)
          No comment provided by developer, please add a comment to improve documentation.
 void setIndentString(java.lang.String newStrg)
          Sets the indentString attribute of the SourceCodeFactory object
static java.lang.StringBuffer upFirstChar(java.lang.String strg)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD_METHOD

public static final int ADD_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

REMOVE_METHOD

public static final int REMOVE_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_METHOD

public static final int GET_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

IS_METHOD

public static final int IS_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

SET_METHOD

public static final int SET_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

HAS_IN_METHOD

public static final int HAS_IN_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

ITERATOR_OF_METHOD

public static final int ITERATOR_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_FROM_METHOD

public static final int GET_FROM_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

REMOVE_YOU_METHOD

public static final int REMOVE_YOU_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

SIZE_OF_METHOD

public static final int SIZE_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

REMOVE_ALL_FROM_METHOD

public static final int REMOVE_ALL_FROM_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_VALUE_FROM_METHOD

public static final int GET_VALUE_FROM_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_KEY_FROM_METHOD

public static final int GET_KEY_FROM_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

HAS_VALUE_IN_METHOD

public static final int HAS_VALUE_IN_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

HAS_KEY_IN_METHOD

public static final int HAS_KEY_IN_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

HAS_ENTRY_IN_METHOD

public static final int HAS_ENTRY_IN_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

KEYS_OF_METHOD

public static final int KEYS_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

REMOVE_KEY_FROM_METHOD

public static final int REMOVE_KEY_FROM_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

REMOVE_VALUE_FROM_METHOD

public static final int REMOVE_VALUE_FROM_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

REMOVE_ENTRY_FROM_METHOD

public static final int REMOVE_ENTRY_FROM_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

ENTRIES_OF_METHOD

public static final int ENTRIES_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_AT_METHOD

public static final int GET_AT_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

INDEX_OF_METHOD

public static final int INDEX_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

LAST_INDEX_OF_METHOD

public static final int LAST_INDEX_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

IS_BEFORE_OF_METHOD

public static final int IS_BEFORE_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

IS_AFTER_OF_METHOD

public static final int IS_AFTER_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_FIRST_OF_METHOD

public static final int GET_FIRST_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_LAST_OF_METHOD

public static final int GET_LAST_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_NEXT_OF_METHOD

public static final int GET_NEXT_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_NEXT_INDEX_OF_METHOD

public static final int GET_NEXT_INDEX_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_PREVIOUS_OF_METHOD

public static final int GET_PREVIOUS_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_PREVIOUS_INDEX_OF_METHOD

public static final int GET_PREVIOUS_INDEX_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

ADD_BEFORE_OF_METHOD

public static final int ADD_BEFORE_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

ADD_AFTER_OF_METHOD

public static final int ADD_AFTER_OF_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

SET_IN_METHOD

public static final int SET_IN_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

GET_KEY_FOR_METHOD

public static final int GET_KEY_FOR_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

KEY_CHANGED_IN_METHOD

public static final int KEY_CHANGED_IN_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values
Constructor Detail

SourceCodeFactory

public SourceCodeFactory()
Method Detail

getIndentString

public java.lang.String getIndentString()
Get the indentString attribute of the SourceCodeFactory object

Returns:
The indentString value

setIndentString

public void setIndentString(java.lang.String newStrg)
Sets the indentString attribute of the SourceCodeFactory object

Parameters:
newStrg - The new indentString value

incIndent

public void incIndent()
No comment provided by developer, please add a comment to improve documentation.


decIndent

public void decIndent()
No comment provided by developer, please add a comment to improve documentation.


newLine

public java.lang.StringBuffer newLine()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

upFirstChar

public static java.lang.StringBuffer upFirstChar(java.lang.String strg)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
strg - No description provided
Returns:
No description provided

itChar

public java.lang.StringBuffer itChar(int n,
                                     char c)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
n - No description provided
c - No description provided
Returns:
No description provided

getAccessMethodName

public java.lang.String getAccessMethodName(java.lang.String name,
                                            int type)
Get the accessMethodName attribute of the SourceCodeFactory object

Parameters:
name - No description provided
type - No description provided
Returns:
The accessMethodName value

getFullAccessMethodName

public java.lang.String getFullAccessMethodName(java.lang.String name,
                                                java.lang.String fieldTypeName,
                                                int type)
Get the fullAccessMethodName attribute of the SourceCodeFactory object

Parameters:
name - No description provided
fieldTypeName - No description provided
type - No description provided
Returns:
The fullAccessMethodName value

assocCommentary

public abstract java.lang.String assocCommentary(java.lang.String fClassName,
                                                 java.lang.String fRoleName,
                                                 java.lang.String fCard,
                                                 java.lang.String assocName,
                                                 java.lang.String constraint,
                                                 java.lang.String sClassName,
                                                 java.lang.String sRoleName,
                                                 java.lang.String sCard,
                                                 java.lang.String fQualifierName,
                                                 java.lang.String sQualifierName,
                                                 boolean fIsRef,
                                                 boolean sIsRef,
                                                 boolean fIsAggr,
                                                 boolean sIsAggr)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
fClassName - No description provided
fRoleName - No description provided
fCard - No description provided
assocName - No description provided
constraint - No description provided
sClassName - No description provided
sRoleName - No description provided
sCard - No description provided
fQualifierName - No description provided
sQualifierName - No description provided
fIsRef - No description provided
sIsRef - No description provided
fIsAggr - No description provided
sIsAggr - No description provided
Returns:
No description provided

getAssocAccessMethodLine

public abstract java.lang.String getAssocAccessMethodLine(int type,
                                                          java.lang.String name,
                                                          int upperBound,
                                                          boolean qualifier,
                                                          boolean selfQualified)
Get the assocAccessMethodLine attribute of the SourceCodeFactory object

Parameters:
type - No description provided
name - No description provided
upperBound - No description provided
qualifier - No description provided
selfQualified - No description provided
Returns:
The assocAccessMethodLine value

getAssocAccessMethodLine

public java.lang.String getAssocAccessMethodLine(int type,
                                                 java.lang.String name,
                                                 int upperBound,
                                                 boolean selfQualified)
Get the assocAccessMethodLine attribute of the SourceCodeFactory object

Parameters:
type - No description provided
name - No description provided
upperBound - No description provided
selfQualified - No description provided
Returns:
The assocAccessMethodLine value

removeYouBody

public abstract java.lang.String removeYouBody(java.lang.String roleName,
                                               java.lang.String type,
                                               boolean toOne,
                                               boolean isQualified,
                                               boolean isPartnerQualified,
                                               boolean isUsingAttr,
                                               boolean aggregation)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
roleName - No description provided
type - No description provided
toOne - No description provided
isQualified - No description provided
isPartnerQualified - No description provided
isUsingAttr - No description provided
aggregation - No description provided
Returns:
No description provided