attributeparent2propertydomain.java

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

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

import oracle.xml.parser.schema.*;

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

/**
 * Governs addition of a property domain to property extracted out of Attribute Declaration XML Schema component. The domain information is extracted from the parent of attribute declaration or reference in the XML Schema.
 * @author Oliver Fodor (fodor@itc.it)
 */
public class AttributeParent2PropertyDomain extends NormalisationHeuristic {

    NestedAttribute m_nestedAttribute;

    public AttributeParent2PropertyDomain(NestedAttribute attribute, C_NormalisationImpl c_norm) {

        super( c_norm );
        m_nestedAttribute = attribute;
    }

    public void run() throws Exception {

        runDomainInformationExtraction();

    }


    private void runDomainInformationExtraction() throws Exception {

        String normalizedEntityURI = m_c_norm.getNormalizedEntityFirstURI(m_nestedAttribute.getParentsHashCode());

        m_c_norm.addPropertyDomainToTargetModel(m_nestedAttribute.getAttributesHashCode(), normalizedEntityURI);

    }

}

⌨️ 快捷键说明

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