/*
 * SDK Pullenti Lingvo, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software.
 * This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

package com.pullenti.ner.uri.internal;

public class MetaUri extends com.pullenti.ner.metadata.ReferentClass {

    public static void initialize() {
        globalMeta = new MetaUri();
        globalMeta.addFeature(com.pullenti.ner.uri.UriReferent.ATTR_VALUE, "Значение", 0, 1);
        globalMeta.addFeature(com.pullenti.ner.uri.UriReferent.ATTR_SCHEME, "Схема", 0, 1);
        globalMeta.addFeature(com.pullenti.ner.uri.UriReferent.ATTR_DETAIL, "Детализация", 0, 1);
    }

    @Override
    public String getName() {
        return com.pullenti.ner.uri.UriReferent.OBJ_TYPENAME;
    }


    @Override
    public String getCaption() {
        return "URI";
    }


    public static String MAILIMAGEID = "mail";

    public static String URIIMAGEID = "uri";

    @Override
    public String getImageId(com.pullenti.ner.Referent obj) {
        com.pullenti.ner.uri.UriReferent web = (com.pullenti.ner.uri.UriReferent)com.pullenti.unisharp.Utils.cast(obj, com.pullenti.ner.uri.UriReferent.class);
        if (web != null && com.pullenti.unisharp.Utils.stringsEq(web.getScheme(), "mailto")) 
            return MAILIMAGEID;
        else 
            return URIIMAGEID;
    }

    public static MetaUri globalMeta;
    public MetaUri() {
        super();
    }
}
