org.andromda.metafacades.uml14.PseudostateFacadeLogicImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of andromda-metafacades-uml14 Show documentation
Show all versions of andromda-metafacades-uml14 Show documentation
The UML 1.4 metafacades. This is the set of UML 1.4 metafacades
implementations. These implement the common UML metafacades.
The newest version!
package org.andromda.metafacades.uml14;
import org.omg.uml.behavioralelements.statemachines.Pseudostate;
import org.omg.uml.foundation.datatypes.PseudostateKindEnum;
/**
* Metaclass facade implementation.
* @author Bob Fields
*/
public class PseudostateFacadeLogicImpl
extends PseudostateFacadeLogic
{
private static final long serialVersionUID = 34L;
/**
* @param metaObject
* @param context
*/
public PseudostateFacadeLogicImpl(
Pseudostate metaObject,
String context)
{
super(metaObject, context);
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isChoice()
*/
@Override
protected boolean handleIsChoice()
{
return PseudostateKindEnum.PK_CHOICE.equals(metaObject.getKind());
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isInitialState()
*/
@Override
protected boolean handleIsInitialState()
{
return PseudostateKindEnum.PK_INITIAL.equals(metaObject.getKind());
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isJoin()
*/
@Override
protected boolean handleIsJoin()
{
return PseudostateKindEnum.PK_JOIN.equals(metaObject.getKind());
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isFork()
*/
@Override
protected boolean handleIsFork()
{
return PseudostateKindEnum.PK_FORK.equals(metaObject.getKind());
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isJunction()
*/
@Override
protected boolean handleIsJunction()
{
return PseudostateKindEnum.PK_JUNCTION.equals(metaObject.getKind());
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isDecisionPoint()
*/
@Override
protected boolean handleIsDecisionPoint()
{
return (this.isChoice() || this.isJunction()) && metaObject.getOutgoing().size() > 1;
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isMergePoint()
*/
@Override
protected boolean handleIsMergePoint()
{
return (this.isChoice() || this.isJunction()) && metaObject.getIncoming().size() > 1;
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isDeepHistory()
*/
@Override
protected boolean handleIsDeepHistory()
{
return PseudostateKindEnum.PK_DEEP_HISTORY.equals(metaObject.getKind());
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isShallowHistory()
*/
@Override
protected boolean handleIsShallowHistory()
{
return PseudostateKindEnum.PK_SHALLOW_HISTORY.equals(metaObject.getKind());
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isSplit()
*/
@Override
protected boolean handleIsSplit()
{
return (this.isJoin() || this.isFork()) && metaObject.getOutgoing().size() > 1;
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#isCollect()
*/
@Override
protected boolean handleIsCollect()
{
return (this.isJoin() || this.isFork()) && metaObject.getIncoming().size() > 1;
}
/**
* @see org.andromda.metafacades.uml.PseudostateFacade#getValidationOwner()
*/
@Override
public Object handleGetValidationOwner()
{
return this.getStateMachine();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy