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 void
addChild(DocPropertyMapping docMapping)
Add a child property.void
apply(io.ebean.annotation.DocMapping docMapping)
Apply mapping options to this property.List<DocPropertyMapping>
getChildren()
Return the child nested properties.String
getName()
Return the property name.DocPropertyOptions
getOptions()
Return the property options.DocPropertyType
getType()
Return the type of the property.void
setType(DocPropertyType type)
Set the type of the property.String
toString()
void
visit(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.
-
-