Class AbstractReference
- java.lang.Object
-
- org.mapstruct.ap.internal.model.beanmapping.AbstractReference
-
- Direct Known Subclasses:
SourceReference
public abstract class AbstractReference extends Object
Class acts as a common base class forTargetReference
andSourceReference
.- Author:
- sjaak
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractReference(Parameter sourceParameter, List<PropertyEntry> sourcePropertyEntries, boolean isValid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyEntry
getDeepestProperty()
String
getDeepestPropertyName()
List<String>
getElementNames()
Parameter
getParameter()
List<PropertyEntry>
getPropertyEntries()
PropertyEntry
getShallowestProperty()
String
getShallowestPropertyName()
boolean
isNested()
boolean
isValid()
String
toString()
-
-
-
Constructor Detail
-
AbstractReference
protected AbstractReference(Parameter sourceParameter, List<PropertyEntry> sourcePropertyEntries, boolean isValid)
-
-
Method Detail
-
getParameter
public Parameter getParameter()
-
getPropertyEntries
public List<PropertyEntry> getPropertyEntries()
-
isValid
public boolean isValid()
-
getShallowestProperty
public PropertyEntry getShallowestProperty()
- Returns:
- the property name on the shallowest nesting level
-
getShallowestPropertyName
public 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 String getDeepestPropertyName()
- Returns:
- the property name on the deepest nesting level
-
isNested
public boolean isNested()
-
-