com.bld.commons.classes.model.ModelProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of class-generator Show documentation
Show all versions of class-generator Show documentation
Demo project for Spring Boot
The newest version!
/**
* @author Francesco Baldi
* @mail [email protected]
* @class bld.commons.classes.model.ModelProperty.java
*/
package com.bld.commons.classes.model;
import java.util.ArrayList;
import java.util.List;
import com.bld.commons.classes.attributes.MarkType;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The Class ModelProperty.
*/
public class ModelProperty implements ModelComponentClass{
/** The name. */
@JsonProperty("property")
private String name;
/** The mark. */
private MarkType mark;
/** The value. */
private Object value;
/** The annotations. */
private List annotations;
/**
* Instantiates a new model property.
*/
public ModelProperty() {
super();
this.setMark(MarkType.NONE);
this.name="value";
this.annotations=new ArrayList<>();
}
/**
* Gets the name.
*
* @return the name
*/
public String getName() {
return name;
}
/**
* Sets the name.
*
* @param name the new name
*/
public void setName(String name) {
this.name = name;
}
/**
* Gets the value.
*
* @return the value
*/
public Object getValue() {
return value;
}
/**
* Sets the value.
*
* @param value the new value
*/
public void setValue(Object value) {
this.value = value;
}
/**
* Gets the annotations.
*
* @return the annotations
*/
public List getAnnotations() {
return annotations;
}
/**
* Sets the annotations.
*
* @param annotations the new annotations
*/
public void setAnnotations(List annotations) {
this.annotations = annotations;
}
/**
* Gets the mark.
*
* @return the mark
*/
public MarkType getMark() {
return mark;
}
/**
* Sets the mark.
*
* @param mark the new mark
*/
public void setMark(MarkType mark) {
this.mark = mark;
}
/**
* To string.
*
* @return the string
*/
@SuppressWarnings("unchecked")
@Override
public String toString() {
String mark=this.mark.getMark();
String value="";
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy