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
Constructors Constructor Description AbstractBaseJavaReferenceMapping(String identifier, ReferenceType target, String warning)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIdentifier()
Returns the identifier that is mapped.ReferenceType
getTarget()
Returns the mapped target.String
getWarning()
A mapping can have a warning attached that contains additional information (e.g., when the mapping might be wrong under specific conditions).
-
-
-
Constructor Detail
-
AbstractBaseJavaReferenceMapping
public AbstractBaseJavaReferenceMapping(String identifier, ReferenceType target, String warning)
-
-
Method Detail
-
getTarget
public ReferenceType getTarget()
Description copied from interface:IJavaReferenceMapping
Returns the mapped target.- Specified by:
getTarget
in interfaceIJavaReferenceMapping<ReferenceType>
- Returns:
- the target.
-
getIdentifier
public String getIdentifier()
Description copied from interface:IJavaReferenceMapping
Returns the identifier that is mapped.- Specified by:
getIdentifier
in interfaceIJavaReferenceMapping<ReferenceType>
- Returns:
- the identifier.
-
getWarning
public String 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.
-
-