blob: 74e8074e2970cbd517b381e66301d91313328999 [file] [log] [blame]
/*******************************************************************************
* Copyright (C) 2021 the Eclipse BaSyx Authors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
******************************************************************************/
package org.eclipse.basyx.submodel.types.digitalnameplate.enums;
import org.eclipse.basyx.submodel.metamodel.enumhelper.StandardizedLiteralEnum;
import org.eclipse.basyx.submodel.metamodel.enumhelper.StandardizedLiteralEnumHelper;
/**
* characterization of the fax according its location or usage
* as described in the AAS Digital Nameplate template
* @author haque
*
*/
public enum FaxType implements StandardizedLiteralEnum {
/**
* (office, 0173-1#07-AAS754#001)
*/
OFFICE("1"),
/**
* (secretary, 0173-1#07-AAS756#001)
*/
SECRETARY("3"),
/**
* (home, 0173-1#07-AAS758#001)
*/
HOME("5");
private String standardizedLiteral;
private FaxType(String standardizedLiteral) {
this.standardizedLiteral = standardizedLiteral;
}
@Override
public String getStandardizedLiteral() {
return standardizedLiteral;
}
@Override
public String toString() {
return standardizedLiteral;
}
public static FaxType fromString(String str) {
return StandardizedLiteralEnumHelper.fromLiteral(FaxType.class, str);
}
}