Class DocPropertyMapping
- java.lang.Object
-
- io.ebeanservice.docstore.api.mapping.DocPropertyMapping
-
public class DocPropertyMapping extends Object
Property mapping in a doc store document structure.
-
-
Constructor Summary
Constructors Constructor Description DocPropertyMapping()Construct ROOT.DocPropertyMapping(String name, DocPropertyType type)Construct property mapping.DocPropertyMapping(String name, DocPropertyType type, DocPropertyOptions options)Construct property mapping with options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(DocPropertyMapping docMapping)Add a child property.voidapply(io.ebean.annotation.DocMapping docMapping)Apply mapping options to this property.List<DocPropertyMapping>getChildren()Return the child nested properties.StringgetName()Return the property name.DocPropertyOptionsgetOptions()Return the property options.DocPropertyTypegetType()Return the type of the property.voidsetType(DocPropertyType type)Set the type of the property.StringtoString()voidvisit(DocPropertyVisitor visitor)Visit this property and any nested children.
-
-
-
Constructor Detail
-
DocPropertyMapping
public DocPropertyMapping()
Construct ROOT.
-
DocPropertyMapping
public DocPropertyMapping(String name, DocPropertyType type)
Construct property mapping.
-
DocPropertyMapping
public DocPropertyMapping(String name, DocPropertyType type, DocPropertyOptions options)
Construct property mapping with options.
-
-
Method Detail
-
visit
public void visit(DocPropertyVisitor visitor)
Visit this property and any nested children.
-
getType
public DocPropertyType getType()
Return the type of the property.
-
setType
public void setType(DocPropertyType type)
Set the type of the property.
-
getOptions
public DocPropertyOptions getOptions()
Return the property options.
-
getChildren
public List<DocPropertyMapping> getChildren()
Return the child nested properties.
-
addChild
public void addChild(DocPropertyMapping docMapping)
Add a child property.
-
apply
public void apply(io.ebean.annotation.DocMapping docMapping)
Apply mapping options to this property.
-
-