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 StringgetIdentifier()Returns the identifier that is mapped.ReferenceTypegetTarget()Returns the mapped target.StringgetWarning()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:IJavaReferenceMappingReturns the mapped target.- Specified by:
getTargetin interfaceIJavaReferenceMapping<ReferenceType>- Returns:
- the target.
-
getIdentifier
public String getIdentifier()
Description copied from interface:IJavaReferenceMappingReturns the identifier that is mapped.- Specified by:
getIdentifierin interfaceIJavaReferenceMapping<ReferenceType>- Returns:
- the identifier.
-
getWarning
public String getWarning()
Description copied from interface:IJavaReferenceMappingA 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:
getWarningin interfaceIJavaReferenceMapping<ReferenceType>- Returns:
- the warning.
-
-