Class AbstractBaseJavaReferenceMapping<ReferenceType>
java.lang.Object
org.emftext.language.java.resolver.result.AbstractBaseJavaReferenceMapping<ReferenceType>
- Type Parameters:
ReferenceType
- the type of the reference that can be mapped to.
- All Implemented Interfaces:
IJavaReferenceMapping<ReferenceType>
- Direct Known Subclasses:
JavaElementMapping
,JavaURIMapping
public abstract class AbstractBaseJavaReferenceMapping<ReferenceType>
extends Object
implements IJavaReferenceMapping<ReferenceType>
A basic implementation of the IJavaReferenceMapping interface.
-
Constructor Summary
ConstructorDescriptionAbstractBaseJavaReferenceMapping
(String identifier, ReferenceType target, String warning) -
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier that is mapped.Returns the mapped target.A mapping can have a warning attached that contains additional information (e.g., when the mapping might be wrong under specific conditions).
-
Constructor Details
-
AbstractBaseJavaReferenceMapping
-
-
Method Details
-
getTarget
Description copied from interface:IJavaReferenceMapping
Returns the mapped target.- Specified by:
getTarget
in interfaceIJavaReferenceMapping<ReferenceType>
- Returns:
- the target.
-
getIdentifier
Description copied from interface:IJavaReferenceMapping
Returns the identifier that is mapped.- Specified by:
getIdentifier
in interfaceIJavaReferenceMapping<ReferenceType>
- Returns:
- the identifier.
-
getWarning
Description copied from interface:IJavaReferenceMapping
A mapping can have a warning attached that contains additional information (e.g., when the mapping might be wrong under specific conditions). The warning is meant to be presented to the user together with the mapping result.- Specified by:
getWarning
in interfaceIJavaReferenceMapping<ReferenceType>
- Returns:
- the warning.
-