public abstract class AbstractIdResolver extends Object implements IdResolver.IdResolverExtension
Modifier and Type | Class and Description |
---|---|
static class |
AbstractIdResolver.Id2InstanceVisitor |
IdResolver.IdResolverExtension
Constructor and Description |
---|
AbstractIdResolver(CompleteEnvironment environment) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInheritance, getType
public AbstractIdResolver(CompleteEnvironment environment)
public void addRoot(EObject eObject)
addRoot
in interface IdResolver
public Package basicGetPackage(PackageId packageId)
basicGetPackage
in interface IdResolver.IdResolverExtension
public Object boxedValueOf(Object unboxedValue)
boxedValueOf
in interface IdResolver
public Object boxedValueOf(Object unboxedValue, EClassifier eClassifier)
boxedValueOf
in interface IdResolver
public Object boxedValueOf(Object unboxedValue, ETypedElement eFeature, TypeId typeId)
boxedValueOf
in interface IdResolver
public Object boxedValueOfEnumerator(Enumerator unboxedValue)
public BagValue createBagOfAll(CollectionTypeId typeId, Iterable<? extends Object> unboxedValues)
createBagOfAll
in interface IdResolver
public BagValue createBagOfEach(CollectionTypeId typeId, Object... unboxedValues)
createBagOfEach
in interface IdResolver
public CollectionValue createCollectionOfAll(boolean isOrdered, boolean isUnique, TypeId elementTypeId, Iterable<? extends Object> unboxedValues)
createCollectionOfAll
in interface IdResolver
isOrdered
- the required collection orderingisUnique
- the required collection uniquenessunboxedValues
- the required collection contentspublic CollectionValue createCollectionOfAll(CollectionTypeId collectedId, Iterable<?> unboxedValues)
createCollectionOfAll
in interface IdResolver
public Object createInstance(TypeId typeId, String stringValue)
createInstance
in interface IdResolver
public MapValue createMapOfAll(TypeId keyTypeId, TypeId valueTypeId, Map<Object,Object> unboxedValues)
createMapOfAll
in interface IdResolver
public OrderedSetValue createOrderedSetOfAll(CollectionTypeId typeId, Iterable<? extends Object> unboxedValues)
createOrderedSetOfAll
in interface IdResolver
public OrderedSetValue createOrderedSetOfEach(CollectionTypeId typeId, Object... unboxedValues)
createOrderedSetOfEach
in interface IdResolver
public SequenceValue createSequenceOfAll(CollectionTypeId typeId, Iterable<? extends Object> unboxedValues)
createSequenceOfAll
in interface IdResolver
public SequenceValue createSequenceOfEach(CollectionTypeId typeId, Object... unboxedValues)
createSequenceOfEach
in interface IdResolver
public SetValue createSetOfAll(CollectionTypeId typeId, Iterable<? extends Object> unboxedValues)
createSetOfAll
in interface IdResolver
public SetValue createSetOfEach(CollectionTypeId typeId, Object... unboxedValues)
createSetOfEach
in interface IdResolver
public void dispose()
dispose
in interface IdResolver
public Object ecoreValueOf(Class<?> instanceClass, Object value)
IdResolver
A numeric value is adjusted to the precision indicated by instanceClass.
An enumeration literal is converted to an Enumerator.
Collections are converted to EcoreEList.UnmodifiableEList
ecoreValueOf
in interface IdResolver
public <T> <any> ecoreValueOfAll(Class<T> instanceClass, Iterable<? extends Object> values)
ecoreValueOfAll
in interface IdResolver.IdResolverExtension
@Deprecated public <any> ecoreValuesOfAll(Class<?> instanceClass, Iterable<Object> values)
ecoreValuesOfAll
in interface IdResolver
@Deprecated public <any> ecoreValuesOfEach(Class<?> instanceClass, Object... values)
ecoreValuesOfEach
in interface IdResolver
public Class getClass(TypeId typeId, Object context)
getClass
in interface IdResolver
public Class getCollectionType(CollectionTypeId typeId)
getCollectionType
in interface IdResolver
public Class getCollectionType(CollectionTypeId typeId, boolean isNullFree, IntegerValue lower, UnlimitedNaturalValue upper)
public Class getDynamicTypeOf(Object value)
IdResolver
getDynamicTypeOf
in interface IdResolver
public Type getDynamicTypeOf(Object... values)
getDynamicTypeOf
in interface IdResolver
public Type getDynamicTypeOf(Iterable<?> values)
getDynamicTypeOf
in interface IdResolver
public CompleteEnvironment getEnvironment()
getEnvironment
in interface IdResolver
public Class getJavaType(Class<?> javaClass)
getJavaType
in interface IdResolver
public Class getMapType(MapTypeId typeId)
getMapType
in interface IdResolver
public Iterable<Class> getModelClassesOf(Object value)
getModelClassesOf
in interface IdResolver.IdResolverExtension
public Operation getOperation(OperationId operationId)
getOperation
in interface IdResolver
public Package getPackage(PackageId packageId)
getPackage
in interface IdResolver
public Property getProperty(PropertyId propertyId)
getProperty
in interface IdResolver
public StandardLibrary getStandardLibrary()
getStandardLibrary
in interface IdResolver
public Class getStaticTypeOf(Object value)
getStaticTypeOf
in interface IdResolver
public Class getStaticTypeOf(Object value, Object... values)
getStaticTypeOf
in interface IdResolver
public Class getStaticTypeOf(Object value, Iterable<?> values)
getStaticTypeOf
in interface IdResolver
public TypedElement getTuplePart(String name, TypeId typeId)
getTuplePart
in interface IdResolver
public TypedElement getTuplePart(String name, Type type)
public abstract TupleType getTupleType(TupleTypeId typeId)
getTupleType
in interface IdResolver
public Type getType(TypeId typeId, Object context)
getType
in interface IdResolver
public boolean isOrdered(Object aCollection)
public boolean isUnique(Object aCollection)
public boolean oclEquals(Object thisObject, Object thatObject)
oclEquals
in interface IdResolver
public int oclHashCode(Object anObject)
oclHashCode
in interface IdResolver.IdResolverExtension
public Object unboxedValueOf(Object boxedValue)
unboxedValueOf
in interface IdResolver
public Enumerator unboxedValueOf(EnumerationLiteralId enumerationLiteralId)
unboxedValueOf
in interface IdResolver
public <any> unboxedValuesOfAll(Collection<? extends Object> boxedValues)
unboxedValuesOfAll
in interface IdResolver
public <any> unboxedValuesOfEach(Object... boxedValues)
unboxedValuesOfEach
in interface IdResolver
public Type visitClassId(ClassId id)
visitClassId
in interface IdVisitor<Element>
public Type visitCollectedId(CollectionTypeId id)
public Type visitCollectionTypeId(CollectionTypeId id)
visitCollectionTypeId
in interface IdVisitor<Element>
public Type visitDataTypeId(DataTypeId id)
visitDataTypeId
in interface IdVisitor<Element>
public Enumeration visitEnumerationId(EnumerationId id)
visitEnumerationId
in interface IdVisitor<Element>
public EnumerationLiteral visitEnumerationLiteralId(EnumerationLiteralId id)
visitEnumerationLiteralId
in interface IdVisitor<Element>
public Type visitInvalidId(OclInvalidTypeId id)
visitInvalidId
in interface IdVisitor<Element>
public Type visitLambdaTypeId(LambdaTypeId id)
visitLambdaTypeId
in interface IdVisitor<Element>
public Type visitMapTypeId(MapTypeId id)
visitMapTypeId
in interface IdVisitor<Element>
public Package visitNestedPackageId(NestedPackageId packageId)
visitNestedPackageId
in interface IdVisitor<Element>
public Package visitNsURIPackageId(NsURIPackageId id)
visitNsURIPackageId
in interface IdVisitor<Element>
public Type visitNullId(OclVoidTypeId id)
visitNullId
in interface IdVisitor<Element>
public Operation visitOperationId(OperationId id)
visitOperationId
in interface IdVisitor<Element>
public Type visitPrimitiveTypeId(PrimitiveTypeId id)
visitPrimitiveTypeId
in interface IdVisitor<Element>
public Property visitPropertyId(PropertyId id)
visitPropertyId
in interface IdVisitor<Element>
public Package visitRootPackageId(RootPackageId id)
visitRootPackageId
in interface IdVisitor<Element>
public Element visitTemplateBinding(TemplateBinding id)
visitTemplateBinding
in interface IdVisitor<Element>
public Element visitTemplateParameterId(TemplateParameterId id)
visitTemplateParameterId
in interface IdVisitor<Element>
public Type visitTemplateableTypeId(TemplateableTypeId id)
visitTemplateableTypeId
in interface IdVisitor<Element>
public TypedElement visitTuplePartId(TuplePartId id)
visitTuplePartId
in interface IdVisitor<Element>
public Type visitTupleTypeId(TupleTypeId id)
visitTupleTypeId
in interface IdVisitor<Element>
public Type visitUnspecifiedId(UnspecifiedId id)
visitUnspecifiedId
in interface IdVisitor<Element>
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.