All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.geojsf.model.pojo.util.symbol.DefaultGeoJsfGraphic Maven / Gradle / Ivy

The newest version!
package org.geojsf.model.pojo.util.symbol;

import java.io.Serializable;

import javax.persistence.ManyToOne;

import org.geojsf.model.pojo.util.DefaultGeoJsfDescription;
import org.geojsf.model.pojo.util.DefaultGeoJsfLang;

import net.sf.ahtutils.interfaces.model.crud.EjbPersistable;
import net.sf.ahtutils.interfaces.model.crud.EjbRemoveable;
import net.sf.ahtutils.interfaces.model.graphic.UtilsGraphic;
import net.sf.ahtutils.model.qualifier.EjbErNode;

@EjbErNode(name="Graphic",category="symbol",subset="sld")
public class DefaultGeoJsfGraphic implements EjbRemoveable,Serializable,EjbPersistable,
								UtilsGraphic
{
	public static final long serialVersionUID=1;

	
	public static String[] defaultLangs = {"fr","en","de"};
	
	private long id;
	@Override public long getId() {return id;}
	@Override  public void setId(long id) {this.id = id;}
	
	@Override public Long getVersionLock() {return new Long(0);}
	
	@ManyToOne
	private DefaultGeoJsfGraphicType type;
	public DefaultGeoJsfGraphicType getType() {return type;}
	public void setType(DefaultGeoJsfGraphicType type) {this.type = type;}

	@ManyToOne
	private DefaultGeoJsfGraphicStyle style;
	public DefaultGeoJsfGraphicStyle getStyle() {return style;}
	public void setStyle(DefaultGeoJsfGraphicStyle style) {this.style = style;}
	
	private byte[] data;
    @Override public byte[] getData() {return data;}
    @Override public void setData(byte[] data) {this.data = data;}
    
    private Integer size;
	public Integer getSize() {return size;}
	public void setSize(Integer size) {this.size = size;}
	
    private Integer sizeBorder;
	public Integer getSizeBorder() {return sizeBorder;}
	public void setSizeBorder(Integer sizeBorder) {this.sizeBorder = sizeBorder;}
	
	private String color;
	public String getColor() {return color;}
	public void setColor(String color) {this.color = color;}
	
	private String colorBorder;
	public String getColorBorder() {return colorBorder;}
	public void setColorBorder(String colorBorder) {this.colorBorder = colorBorder;}
	
	public String toString()
	{
		StringBuffer sb = new StringBuffer();
			sb.append(id);
		return sb.toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy