com.sap.cloud.sdk.service.csn2jpa.cds.model.CdsElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of csn-reader Show documentation
Show all versions of csn-reader Show documentation
API for reading CDS models in CSN format
/*******************************************************************************
* * © 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