org.eclipse.ocl.examples.pivot.values.impl
Class AbstractedCollectionValue

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractedCollectionValue
All Implemented Interfaces:
java.lang.Iterable<Value>, CollectionValue, Value
Direct Known Subclasses:
AbstractCollectionValue

public abstract class AbstractedCollectionValue
extends AbstractValue
implements CollectionValue


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.values.CollectionValue
CollectionValue.Accumulator
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.values.Value
Value.BinaryOperation
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
valueFactory
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.values.Value
INVALID_NAME
 
Constructor Summary
protected AbstractedCollectionValue(ValueFactory valueFactory)
           
 
Method Summary
 BagValue asBagValue()
           
 java.util.Collection<Value> asCollection()
           
 CollectionValue asCollectionValue()
           
 java.util.List<Value> asList()
           
 java.lang.Object asObject()
           
 OrderedSetValue asOrderedSetValue()
           
 SequenceValue asSequenceValue()
           
 SetValue asSetValue()
           
 Value asValidValue()
           
protected abstract  java.util.Collection<Value> getElements()
           
 CollectionValue isCollectionValue()
           
 BooleanValue isEmpty()
           
 BooleanValue notEmpty()
           
 IntegerValue size()
           
 java.lang.String toString()
           
 void toString(java.lang.StringBuffer s, int lengthLimit)
           
 
Methods inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
asBoolean, asBooleanValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asObjectValue, asOrderedCollectionValue, asRealValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getValueFactory, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toRealValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.CollectionValue
count, excludes, excludesAll, excluding, flatten, flatten, getKind, includes, includesAll, including, intersection, intSize, iterator, maxMin, product, sort, sum, toOrderedCollectionValue, union
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.Value
asBoolean, asBooleanValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asObjectValue, asOrderedCollectionValue, asRealValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getType, getValueFactory, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toRealValue
 

Constructor Detail

AbstractedCollectionValue

protected AbstractedCollectionValue(ValueFactory valueFactory)
Method Detail

asBagValue

public BagValue asBagValue()
Specified by:
asBagValue in interface Value
Overrides:
asBagValue in class AbstractValue

asCollection

public java.util.Collection<Value> asCollection()
Specified by:
asCollection in interface CollectionValue

asCollectionValue

public CollectionValue asCollectionValue()
Specified by:
asCollectionValue in interface Value
Overrides:
asCollectionValue in class AbstractValue

asList

public java.util.List<Value> asList()
Specified by:
asList in interface CollectionValue

asObject

public java.lang.Object asObject()
Specified by:
asObject in interface Value

asOrderedSetValue

public OrderedSetValue asOrderedSetValue()
Specified by:
asOrderedSetValue in interface Value
Overrides:
asOrderedSetValue in class AbstractValue

asSequenceValue

public SequenceValue asSequenceValue()
Specified by:
asSequenceValue in interface Value
Overrides:
asSequenceValue in class AbstractValue

asSetValue

public SetValue asSetValue()
Specified by:
asSetValue in interface Value
Overrides:
asSetValue in class AbstractValue

asValidValue

public Value asValidValue()
Specified by:
asValidValue in interface Value

getElements

protected abstract java.util.Collection<Value> getElements()

isCollectionValue

public CollectionValue isCollectionValue()
Specified by:
isCollectionValue in interface Value
Overrides:
isCollectionValue in class AbstractValue

isEmpty

public BooleanValue isEmpty()
Specified by:
isEmpty in interface CollectionValue

notEmpty

public BooleanValue notEmpty()
Specified by:
notEmpty in interface CollectionValue

size

public IntegerValue size()
Specified by:
size in interface CollectionValue

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public void toString(java.lang.StringBuffer s,
                     int lengthLimit)
Specified by:
toString in interface Value
Overrides:
toString in class AbstractValue