blob: 449045f1c2d7265034e13104c0d255f79cd94ab4 [file] [log] [blame]
package org.eclipse.basyx.submodel.metamodel.api.reference;
import org.eclipse.basyx.submodel.metamodel.api.reference.enums.KeyElements;
import org.eclipse.basyx.submodel.metamodel.api.reference.enums.KeyType;
/**
* A key is a reference to an element by its id.
*
* @author rajashek, schnicke
*
*/
public interface IKey {
/**
* Denotes which kind of entity is referenced.
*
* @return
*/
public KeyElements getType();
/**
* Gets if the key references a model element of the same AAS (=true) or not
* (=false). In case of local = false the key may reference a model element of
* another AAS or an entity outside any AAS that has a global unique id.
*
* @return
*/
public boolean isLocal();
/**
* Gets the key value, for example an IRDI if the idType=IRDI.
*
* @return
*/
public String getValue();
/**
* Gets the type of the key value. <br />
* In case of idType = idShort local shall be true. In case type=GlobalReference
* idType shall not be IdShort.
*
* @return
*/
public KeyType getIdType();
}