org.umlg.java.metamodel.generated.OJStatementGEN Maven / Gradle / Ivy
/*
* File generated by Grasland Grammar Generator on Dec 23, 2006 7:26:03 PM
*/
package org.umlg.java.metamodel.generated;
import java.util.ArrayList;
import java.util.List;
import org.umlg.java.metamodel.OJElement;
import org.umlg.java.metamodel.OJStatement;
import org.umlg.java.metamodel.utilities.InvariantError;
/** Class ...
*/
abstract public class OJStatementGEN extends OJElement {
static protected boolean usesAllInstances = false;
static protected List allInstances = new ArrayList();
/** Default constructor for OJStatement
*/
protected OJStatementGEN() {
super();
if ( usesAllInstances ) {
allInstances.add(((OJStatement)this));
}
}
/** Constructor for OJStatementGEN
*
* @param name
* @param comment
*/
protected OJStatementGEN(String name, String comment) {
super();
super.setName(name);
super.setComment(comment);
if ( usesAllInstances ) {
allInstances.add(((OJStatement)this));
}
}
/** Checks all invariants of this object and returns a list of messages about broken invariants
*/
public List checkAllInvariants() {
List result = new ArrayList();
return result;
}
/** Implements a check on the multiplicities of all attributes and association ends
*/
public List checkMultiplicities() {
List result = new ArrayList();
return result;
}
/** Default toString implementation for OJStatement
*/
public String toString() {
String result = "";
result = super.toString();
return result;
}
/** Returns the default identifier for OJStatement
*/
public String getIdString() {
String result = "";
result = super.getIdString();
return result;
}
/** Implements the OCL allInstances operation
*/
static public List allInstances() {
if ( !usesAllInstances ) {
throw new RuntimeException("allInstances is not implemented for ((OJStatement)this) class. Set usesAllInstances to true, if you want allInstances() implemented.");
}
return allInstances;
}
/** Copies all attributes and associations of this instance into 'copy'.
True parts, i.e. associations marked 'aggregate' or 'composite', and attributes,
are copied as well. References to other objects, i.e. associations not marked
'aggregate' or 'composite', will not be copied. The 'copy' will refer
to the same objects as the original (this) instance.
*
* @param copy
*/
public void copyInfoInto(OJStatement copy) {
super.copyInfoInto(copy);
}
}