org.andromda.metafacades.uml14.ManageableEntityAttributeLogic Maven / Gradle / Ivy
// license-header java merge-point
//
// Attention: generated code (by MetafacadeLogic.vsl) - do not modify!
//
package org.andromda.metafacades.uml14;
import java.util.Collection;
import org.andromda.core.metafacade.ModelValidationMessage;
import org.andromda.metafacades.uml.ManageableEntityAttribute;
/**
*
* MetafacadeLogic for ManageableEntityAttribute
*
* @see ManageableEntityAttribute
*/
public abstract class ManageableEntityAttributeLogic
extends EntityAttributeLogicImpl
implements ManageableEntityAttribute
{
/**
* The underlying UML object
* @see Object
*/
protected Object metaObject;
/** Create Metafacade implementation instance using the MetafacadeFactory from the context
* @param metaObjectIn
* @param context
*/
protected ManageableEntityAttributeLogic(Object metaObjectIn, String context)
{
super(metaObjectIn, getContext(context));
this.metaObject = metaObjectIn;
}
/**
* Gets the context for this metafacade logic instance.
* @param context String. Set to ManageableEntityAttribute if null
* @return context String
*/
private static String getContext(String context)
{
if (context == null)
{
context = "org.andromda.metafacades.uml.ManageableEntityAttribute";
}
return context;
}
/** Reset context only for non-root metafacades
* @param context
*/
@Override
public void resetMetafacadeContext(String context)
{
if (!this.contextRoot) // reset context only for non-root metafacades
{
context = getContext(context); // to have same value as in original constructor call
setMetafacadeContext (context);
}
}
/**
* @return boolean true always
* @see ManageableEntityAttribute
*/
public boolean isManageableEntityAttributeMetaType()
{
return true;
}
// --------------- attributes ---------------------
/**
* @see ManageableEntityAttribute#isDisplay()
* @return boolean
*/
protected abstract boolean handleIsDisplay();
private boolean __display1a;
private boolean __display1aSet = false;
/**
*
* Whether or not this attribute should be displayed.
*
* @return (boolean)handleIsDisplay()
*/
public final boolean isDisplay()
{
boolean display1a = this.__display1a;
if (!this.__display1aSet)
{
// display has no pre constraints
display1a = handleIsDisplay();
// display has no post constraints
this.__display1a = display1a;
if (isMetafacadePropertyCachingEnabled())
{
this.__display1aSet = true;
}
}
return display1a;
}
/**
* @see ManageableEntityAttribute#isManageableGetterAvailable()
* @return boolean
*/
protected abstract boolean handleIsManageableGetterAvailable();
private boolean __manageableGetterAvailable2a;
private boolean __manageableGetterAvailable2aSet = false;
/**
*
* Whether or not this attribute can be read in a call isolated
* from the rest (for example when downloading binary fields).
*
* @return (boolean)handleIsManageableGetterAvailable()
*/
public final boolean isManageableGetterAvailable()
{
boolean manageableGetterAvailable2a = this.__manageableGetterAvailable2a;
if (!this.__manageableGetterAvailable2aSet)
{
// manageableGetterAvailable has no pre constraints
manageableGetterAvailable2a = handleIsManageableGetterAvailable();
// manageableGetterAvailable has no post constraints
this.__manageableGetterAvailable2a = manageableGetterAvailable2a;
if (isMetafacadePropertyCachingEnabled())
{
this.__manageableGetterAvailable2aSet = true;
}
}
return manageableGetterAvailable2a;
}
// ------------- associations ------------------
/**
* @param validationMessages Collection
* @see EntityAttributeLogicImpl#validateInvariants(Collection validationMessages)
*/
@Override
public void validateInvariants(Collection validationMessages)
{
super.validateInvariants(validationMessages);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy