📄 enumerationliteral.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 (valentine.stepanenko@zsoft.ru)
* @version 1.0
*/
package com.prudsys.pdm.Cwm.DataTypes;
import com.prudsys.pdm.Cwm.Core.Expression;
import com.prudsys.pdm.Cwm.Core.ModelElement;
/**
* EnumerationLiteral instances describe the enumeration identifiers, and possibly
* the
*
* values, associated with an emerated data type. Enumeration identifiers are
* contained
*
* in the name attribute derived from the EnumerationLiteral instance?s
* ModelElement superclass.
*
*
*
* EnumerationLiteral instances may also be used to define expression-based values
* such as ranges. To do so, simply state the membership expression in the
* instance?s value. For example, a range literal can be created by setting the
* value attribute to "m..n", where m represents the lower bound of the range, and
* n, the upper bound. In this way, ranges and other more complicated expressions
* can be intermixed with simple
*
* enumeration literals. For example, an enumeration might contain the literals
* "1", "2", "4..7", and "> 10".
*
*
*
* Consequently, a simple range data type can be created with an Enumeration
* instance that owns a single EnumerationLiteral instance. For example, a data
* type for positive integers could be created as shown in the following instance
* diagram. A model attribute of this data type might then be declared as "posInt
* : PositiveInteger".
*/
public class EnumerationLiteral extends ModelElement implements org.omg.cwm.foundation.datatypes.EnumerationLiteral
{
/**
* The value associated with an enumeration identifier can be stored here. The
* attribute is optional because enumeration literals are not required to have a
* specific, displayable value. This is indicated by either an empty value
* attribute or a value attribute value whose expression body attribute is a
* zero-length string.
*/
public Expression value;
public Enumeration enumeration;
public EnumerationLiteral()
{
}
public org.omg.cwm.foundation.datatypes.Enumeration getEnumeration() {
return enumeration;
}
public void setEnumeration(org.omg.cwm.foundation.datatypes.Enumeration enumeration) {
this.enumeration = (Enumeration) enumeration;
}
public org.omg.cwm.objectmodel.core.Expression getValue() {
return value;
}
public void setValue(org.omg.cwm.objectmodel.core.Expression value) {
this.value = (Expression) value;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -