blob: 9a6b1b608e3b5bf1e9920afc022f0ec599e1949f [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 an e-mail address according to its location or usage
* as described in the AAS Digital Nameplate template
* @author haque
*
*/
public enum MailType implements StandardizedLiteralEnum {
// Enum values
/**
* (office, 0173-1#07-AAS754#001)
*/
OFFICE("1"),
/**
* (secretary, 0173-1#07-AAS756#001)
*/
SECRETARY("3"),
/**
* (substitute, 0173-1#07-AAS757#001)
*/
SUBSTITUTE("4"),
/**
* (home, 0173-1#07-AAS758#001)
*/
HOME("5");
private String standardizedLiteral;
private MailType(String standardizedLiteral) {
this.standardizedLiteral = standardizedLiteral;
}
@Override
public String getStandardizedLiteral() {
return standardizedLiteral;
}
@Override
public String toString() {
return standardizedLiteral;
}
public static MailType fromString(String str) {
return StandardizedLiteralEnumHelper.fromLiteral(MailType.class, str);
}
}