Class AbstractReference
- java.lang.Object
-
- org.mapstruct.ap.internal.model.beanmapping.AbstractReference
-
- Direct Known Subclasses:
SourceReference
public abstract class AbstractReference extends java.lang.ObjectClass acts as a common base class forTargetReferenceandSourceReference.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisValidprivate Parameterparameterprivate java.util.List<PropertyEntry>propertyEntries
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractReference(Parameter sourceParameter, java.util.List<PropertyEntry> sourcePropertyEntries, boolean isValid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyEntrygetDeepestProperty()java.lang.StringgetDeepestPropertyName()java.util.List<java.lang.String>getElementNames()ParametergetParameter()java.util.List<PropertyEntry>getPropertyEntries()PropertyEntrygetShallowestProperty()java.lang.StringgetShallowestPropertyName()booleanisNested()booleanisValid()java.lang.StringtoString()
-
-
-
Field Detail
-
parameter
private final Parameter parameter
-
propertyEntries
private final java.util.List<PropertyEntry> propertyEntries
-
isValid
private final boolean isValid
-
-
Constructor Detail
-
AbstractReference
protected AbstractReference(Parameter sourceParameter, java.util.List<PropertyEntry> sourcePropertyEntries, boolean isValid)
-
-
Method Detail
-
getParameter
public Parameter getParameter()
-
getPropertyEntries
public java.util.List<PropertyEntry> getPropertyEntries()
-
isValid
public boolean isValid()
-
getElementNames
public java.util.List<java.lang.String> getElementNames()
-
getShallowestProperty
public PropertyEntry getShallowestProperty()
- Returns:
- the property name on the shallowest nesting level
-
getShallowestPropertyName
public java.lang.String getShallowestPropertyName()
- Returns:
- the property name on the shallowest nesting level
-
getDeepestProperty
public PropertyEntry getDeepestProperty()
- Returns:
- the property name on the deepest nesting level
-
getDeepestPropertyName
public java.lang.String getDeepestPropertyName()
- Returns:
- the property name on the deepest nesting level
-
isNested
public boolean isNested()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-