public class CollectionMapping extends Mapping<CollectionMapping> implements Serializable
Mapping
for the members of a collection.Constructor and Description |
---|
CollectionMapping() |
CollectionMapping(CollectionMapping mapping) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
CollectionMapping |
clearMappings()
Clears the current set of collection mappings.
|
CollectionMapping |
copy() |
boolean |
equals(Object o) |
List<Mapping<?>> |
getMappings()
The list of
Mapping to apply to each collection member. |
String |
getPath()
The name of the collection property to map.
|
int |
hashCode() |
CollectionMapping |
mapCollection(String path,
List<Mapping<?>> mappings)
Sets the collection property and the set of mappings for the collection.
|
CollectionMapping |
mapCollection(String path,
Mapping<?>... mappings)
Sets the collection property and the set of mappings for the collection.
|
CollectionMapping |
mapping(Mapping<?>... mappings)
Adds to the set of mappings to transform the collection.
|
CollectionMapping |
mappings(List<Mapping<?>> mappings)
Adds to the set of mappings to transform the collection.
|
CollectionMapping |
path(String path)
Sets the collection property to be mapped.
|
public CollectionMapping()
public CollectionMapping(CollectionMapping mapping)
public CollectionMapping copy()
copy
in interface Copyable<CollectionMapping>
public CollectionMapping path(String path)
path
- the collection propertypublic CollectionMapping mappings(List<Mapping<?>> mappings)
mappings
- the collection mappingspublic CollectionMapping mapping(Mapping<?>... mappings)
mappings
- the collection mappingspublic CollectionMapping clearMappings()
public CollectionMapping mapCollection(String path, List<Mapping<?>> mappings)
path
- the pathmappings
- the set of mappingspublic CollectionMapping mapCollection(String path, Mapping<?>... mappings)
path
- the pathmappings
- the set of mappingspublic String getPath()
public List<Mapping<?>> getMappings()
Mapping
to apply to each collection member.public boolean equals(Object o)
equals
in class Mapping<CollectionMapping>
protected boolean canEqual(Object other)
canEqual
in class Mapping<CollectionMapping>
public int hashCode()
hashCode
in class Mapping<CollectionMapping>
Copyright © 2021. All rights reserved.