blob: 5028960b4b397a2b575cace9505dc7dc1f9e274e [file] [log] [blame]
package org.eclipse.basyx.aas.metamodel.api.parts.asset;
import org.eclipse.basyx.submodel.metamodel.enumhelper.StandardizedLiteralEnum;
import org.eclipse.basyx.submodel.metamodel.enumhelper.StandardizedLiteralEnumHelper;
/**
* AssetKind enum as defined by DAAS document<br />
* Enumeration for denoting whether an element is a type or an instance.
*
* @author schnicke
*
*/
public enum AssetKind implements StandardizedLiteralEnum {
/**
* Hardware or software element which specifies the common attributes shared by
* all instances of the type
*/
TYPE("Type"),
/**
* Concrete, clearly identifiable component of a certain type
*/
INSTANCE("Instance");
private String standardizedLiteral;
private AssetKind(String name) {
this.standardizedLiteral = name;
}
@Override
public String getStandardizedLiteral() {
return standardizedLiteral;
}
@Override
public String toString() {
return standardizedLiteral;
}
public static AssetKind fromString(String str) {
return StandardizedLiteralEnumHelper.fromLiteral(AssetKind.class, str);
}
}