element2property.java

来自「normkit is a set of tools supporting ont」· Java 代码 · 共 38 行

JAVA
38
字号
package it.itc.ectrl.normkit.cnorm.heuristics;

import oracle.xml.parser.schema.*;


import it.itc.ectrl.normkit.cnorm.XSModel.ElementDeclaration;
import it.itc.ectrl.normkit.cnorm.impl.C_NormalisationImpl;

/**
 * Governs creation of a RDFS property out of Element Declaration XML Schema component.
 * @author Oliver Fodor (fodor@itc.it)
 */
public class Element2Property extends NormalisationHeuristic {

    ElementDeclaration m_elementDeclaration;

    public Element2Property(ElementDeclaration elementDeclaration, C_NormalisationImpl c_norm) {

        super( c_norm );
        m_elementDeclaration = elementDeclaration;
    }

    public void run() throws Exception {

        runPropertyExtraction();

    }


    private void runPropertyExtraction() throws Exception {

        String newPropertyLabel = m_elementDeclaration.getName();

        m_c_norm.addPropertyToTargetModel(m_elementDeclaration.getHashCode(), newPropertyLabel);

    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?