Search in sources :

Example 1 with PersistenceKitId

use of org.whole.lang.artifacts.model.PersistenceKitId in project whole by wholeplatform.

the class ArtifactsUtils method getPersistenceKitId.

public static String getPersistenceKitId(IEntity artifact) {
    IEntity metaData = artifact.wGet(metadata);
    if (!EntityUtils.isNotResolver(metaData))
        return null;
    PersistenceKitId persistenceKitId = ((Metadata) metaData).getPersistenceKitId();
    return DataTypeUtils.getDataKind(persistenceKitId).isString() ? persistenceKitId.getValue() : null;
}
Also used : IEntity(org.whole.lang.model.IEntity) Metadata(org.whole.lang.artifacts.model.Metadata) PersistenceKitId(org.whole.lang.artifacts.model.PersistenceKitId)

Aggregations

Metadata (org.whole.lang.artifacts.model.Metadata)1 PersistenceKitId (org.whole.lang.artifacts.model.PersistenceKitId)1 IEntity (org.whole.lang.model.IEntity)1