org.eclipse.ocl.examples.pivot.values
Interface Value
- All Known Subinterfaces:
- BagValue, BooleanValue, CollectionValue, CollectionValue.Accumulator, ElementValue<E>, IntegerValue, InvalidValue, MapValue, MapValue.Accumulator, NonOrderedCollectionValue, NonUniqueCollectionValue, NullValue, NumericValue, ObjectValue, OrderedCollectionValue, OrderedSetValue, RealValue, SequenceValue, SetValue, StringValue, TupleValue, TypeValue, UniqueCollectionValue, UnlimitedValue
- All Known Implementing Classes:
- AbstractCollectionValue, AbstractedCollectionValue, AbstractSequenceValue, AbstractUndefinedCollectionValue, AbstractUndefinedValue, AbstractValue, BagValueImpl, BagValueImpl.Accumulator, BooleanValueImpl, ElementValueImpl, IntegerRangeValueImpl, IntegerValueImpl, InvalidValueImpl, NullValueImpl, ObjectValueImpl, OCLConsolePage.ExceptionValue, OrderedSetValueImpl, OrderedSetValueImpl.Accumulator, RealValueImpl, SequenceValueImpl, SequenceValueImpl.Accumulator, SetValueImpl, SetValueImpl.Accumulator, SortedByIteration.SortingValue, StringValueImpl, TupleValueImpl, TypeValueImpl, UnlimitedValueImpl
public interface Value
asXXX returns an XXX if self is an XXX and not Null (and is not Invalid),
Null (and Invalid) throw an InvalidValueException.
isXXX returns an XXX-related value if self is an XXX and is not Null (and is not Invalid).
toXXX returns an XXX if self is or can be converted to an XXX; Invalid otherwise.
INVALID_NAME
static final java.lang.String INVALID_NAME
- See Also:
- Constant Field Values
asBagValue
BagValue asBagValue()
throws InvalidValueException
- Throws:
InvalidValueException
asBoolean
boolean asBoolean()
throws InvalidValueException
- Throws:
InvalidValueException
asBooleanValue
BooleanValue asBooleanValue()
throws InvalidValueException
- Throws:
InvalidValueException
asCollectionValue
CollectionValue asCollectionValue()
throws InvalidValueException
- Throws:
InvalidValueException
asDouble
java.lang.Double asDouble()
throws InvalidValueException
- Throws:
InvalidValueException
asElement
Element asElement()
asElementValue
ElementValue<?> asElementValue()
throws InvalidValueException
- Throws:
InvalidValueException
asInteger
java.lang.Integer asInteger()
throws InvalidValueException
- Throws:
InvalidValueException
asIntegerValue
IntegerValue asIntegerValue()
throws InvalidValueException
- Throws:
InvalidValueException
asObject
java.lang.Object asObject()
asObjectValue
ObjectValue asObjectValue()
throws InvalidValueException
- Throws:
InvalidValueException
asOrderedCollectionValue
OrderedCollectionValue asOrderedCollectionValue()
throws InvalidValueException
- Throws:
InvalidValueException
asOrderedSetValue
OrderedSetValue asOrderedSetValue()
throws InvalidValueException
- Throws:
InvalidValueException
asRealValue
RealValue asRealValue()
throws InvalidValueException
- Throws:
InvalidValueException
asSequenceValue
SequenceValue asSequenceValue()
throws InvalidValueException
- Throws:
InvalidValueException
asSetValue
SetValue asSetValue()
throws InvalidValueException
- Throws:
InvalidValueException
asString
java.lang.String asString()
throws InvalidValueException
- Throws:
InvalidValueException
asStringValue
StringValue asStringValue()
throws InvalidValueException
- Throws:
InvalidValueException
asTypeValue
TypeValue asTypeValue()
throws InvalidValueException
- Throws:
InvalidValueException
asUniqueCollectionValue
UniqueCollectionValue asUniqueCollectionValue()
throws InvalidValueException
- Throws:
InvalidValueException
asValidValue
Value asValidValue()
throws InvalidValueException
- Throws:
InvalidValueException
getType
Type getType(TypeManager typeManager,
Type staticType)
getValueFactory
ValueFactory getValueFactory()
isCollectionValue
CollectionValue isCollectionValue()
isFalse
boolean isFalse()
isIntegerValue
IntegerValue isIntegerValue()
isInvalid
boolean isInvalid()
isNull
boolean isNull()
isRealValue
RealValue isRealValue()
isTrue
boolean isTrue()
isUndefined
boolean isUndefined()
isUnlimited
boolean isUnlimited()
isUnlimitedNatural
boolean isUnlimitedNatural()
oclToString
java.lang.String oclToString()
toIntegerValue
IntegerValue toIntegerValue()
throws InvalidValueException
- Throws:
InvalidValueException
toRealValue
RealValue toRealValue()
throws InvalidValueException
- Throws:
InvalidValueException
toString
void toString(java.lang.StringBuffer s,
int sizeLimit)