📄 associationend.java
字号:
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/**
* Title: XELOPES Data Mining Library
* Description: The XELOPES library is an open platform-independent and data-source-independent library for Embedded Data Mining.
* Copyright: Copyright (c) 2002 Prudential Systems Software GmbH
* Company: ZSoft (www.zsoft.ru), Prudsys (www.prudsys.com)
* @author Valentine Stepanenko (ValentineStepanenko@zsoft.ru)
* @version 1.0
*/
package com.prudsys.pdm.Cwm.Relationships;
import com.prudsys.pdm.Cwm.Core.*;
/**
* An association end is an endpoint of an association, which connects the
* association to a classifier. Each association end is part of one association.
* The association ends of each association are ordered.
*
*
*
* In the metamodel, an AssociationEnd is part of an Association and specifies the
* connection of an Association to some other Classifier. Because AssociationEnds
* are a kind of StructuralFeature, they are owned and ordered by Association
* instances via the ClassifierFeature association. The StructuralFeatureType
* association is used to identify the Classifier to which the AssociationEnd is
* attached. Each AssociationEnd has a name and defines a set of properties of the
* connection.
*
*
*
* The multiplicity property of an association end specifies how many instances of
* the classifier at a given end (the one bearing the multiplicity value) may be
* associated with a single instance of the classifier at the other end. The
* association end also states whether or not the connection may be traversed
* towards the instance playing that role in the connection (the isNavigable
* attribute), that is, if the instance is directly reachable via the association.
*/
public class AssociationEnd extends StructuralFeature implements org.omg.cwm.objectmodel.relationships.AssociationEnd
{
/**
* When placed on one end (the "target" end), specifies whether the class on the
* target end is an aggregation with respect to the class on the other end (the
* "source" end). Only one end of an association can be an aggregation.
*/
public AggregationKind aggregation;
/**
* When placed on a target end, specifies whether traversal from a source instance
* to its associated target instances is possible. A value of true means that the
* association can be navigated by the source class and the target rolename can be
* used in navigation expressions. Specification of navigability for each
* direction is defined independently.
*/
public com.prudsys.pdm.Cwm.Core.Boolean isNavigable;
public AssociationEnd()
{
}
public java.lang.String getAggregation() {
return aggregation.getString();
}
public void setAggregation(java.lang.String aggregation) {
AggregationKind ak = new AggregationKind();
ak.setString(aggregation);
this.aggregation = ak;
}
public java.lang.Boolean getIsNavigable() {
return isNavigable.getBoolean();
}
public void setIsNavigable(java.lang.Boolean isNavigable) {
com.prudsys.pdm.Cwm.Core.Boolean b = new com.prudsys.pdm.Cwm.Core.Boolean();
b.setBoolean(isNavigable);
this.isNavigable = b;
}
public boolean isNavigableValue() {
return isNavigable.isBooleanValue();
}
public void setIsNavigable(boolean value) {
this.setIsNavigable( new java.lang.Boolean(value) );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -