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

com.sap.cloud.sdk.service.csn2jpa.cds.model.CdsElement Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
/*******************************************************************************
 * * © 2018 SAP SE or an SAP affiliate company. All rights reserved. *
 ******************************************************************************/
package com.sap.cloud.sdk.service.csn2jpa.cds.model;

public class CdsElement extends CdsAnnotatable {

	protected String name;
	protected boolean key = false;
	protected boolean virtual = false;
	protected boolean notnull = false;
	protected Integer indexNo;
	protected CdsType type;

	public CdsElement() {

	}

	public CdsElement(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getIndexNo() {
		return indexNo;
	}

	public void setIndexNo(Integer indexNo) {
		this.indexNo = indexNo;
	}

	public CdsType getType() {
		return type;
	}

	public void setType(CdsType type) {
		this.type = type;
	}

	public boolean isKey() {
		return key;
	}

	public void setKey(boolean key) {
		this.key = key;
	}

	public boolean isVirtual() {
		return virtual;
	}

	public void setVirtual(boolean virtual) {
		this.virtual = virtual;
	}

	public boolean isNotnull() {
		return notnull;
	}

	public void setNotnull(boolean notnull) {
		this.notnull = notnull;
	}

	@Override
	public void accept(CdsVisitor visitor) {
		type.accept(visitor);

		visitor.visit(this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy