public interface CollectionLiteralExp<C> extends LiteralExp<C>
The following features are supported:
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkBagKind(DiagnosticChain diagnostics,
Map<Object,Object> context)
kind = CollectionKind::Bag implies type.oclIsKindOf(BagType)
|
boolean |
checkElementType(DiagnosticChain diagnostics,
Map<Object,Object> context)
type.oclAsType(CollectionType).elementType = part->iterate(p; c : Classifier = OclVoid | c.commonSuperType(p.type))
|
boolean |
checkNoCollectionInstances(DiagnosticChain diagnostics,
Map<Object,Object> context)
kind <> CollectionKind::Collection
|
boolean |
checkSequenceKind(DiagnosticChain diagnostics,
Map<Object,Object> context)
kind = CollectionKind::Sequence implies type.oclIsKindOf(SequenceType)
|
boolean |
checkSetKind(DiagnosticChain diagnostics,
Map<Object,Object> context)
kind = CollectionKind::Set implies type.oclIsKindOf(SetType)
|
CollectionKind |
getKind()
Returns the value of the 'Kind' attribute.
|
<any> |
getPart()
Returns the value of the 'Part' containment reference list.
|
boolean |
isSimpleRange()
Returns the value of the 'Simple Range' attribute.
|
void |
setKind(CollectionKind value)
Sets the value of the '
Kind' attribute. |
getName, getType, setName, setTypegetEndPosition, getStartPosition, setEndPosition, setStartPositionCollectionKind getKind()
CollectionKind.
If the meaning of the 'Collection Kind' attribute isn't clear, there really should be more of a description here...
CollectionKind,
setKind(CollectionKind),
ExpressionsPackage.getCollectionLiteralExp_Kind()void setKind(CollectionKind value)
Kind' attribute.
value - the new value of the 'Kind' attribute.CollectionKind,
getKind()<any> getPart()
CollectionLiteralPart<C>.
If the meaning of the 'Part' containment reference list isn't clear, there really should be more of a description here...
ExpressionsPackage.getCollectionLiteralExp_Part()boolean isSimpleRange()
If the meaning of the 'Simple Range' attribute isn't clear, there really should be more of a description here...
ExpressionsPackage.getCollectionLiteralExp_SimpleRange()boolean checkNoCollectionInstances(DiagnosticChain diagnostics,
Map<Object,Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
boolean checkSetKind(DiagnosticChain diagnostics,
Map<Object,Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
boolean checkSequenceKind(DiagnosticChain diagnostics,
Map<Object,Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
boolean checkBagKind(DiagnosticChain diagnostics,
Map<Object,Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
boolean checkElementType(DiagnosticChain diagnostics,
Map<Object,Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
Copyright © 2015 Open eHealth Foundation. All rights reserved.