⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nestedelement.java

📁 normkit is a set of tools supporting ontology learning. from xml,xsd to rdfs.
💻 JAVA
字号:
package it.itc.ectrl.normkit.cnorm.XSModel;

import oracle.xml.parser.schema.*;

import java.util.Set;
import java.util.HashSet;
import java.util.Iterator;

import it.itc.ectrl.normkit.cnorm.impl.C_NormalisationImpl;
import it.itc.ectrl.normkit.cnorm.heuristics.*;

import it.itc.ectrl.normkit.common.*;

/**
 * Class representing an XML Schema element declaration or reference nested within another component to the Normalisation process.
 * @author Oliver Fodor (fodor@itc.it)
 */
public class NestedElement extends XSDComponent {

    XSDElement m_elementDeclaration;
    XSDNode m_parentNode;
    int m_hashCode;

    /**
     * Creates an instance of this class and associates it with given C-Normalisation process, XML Schema infoset component (XDK) and its parent component.
     */
    public NestedElement(XSDElement elementDeclaration, C_NormalisationImpl c_norm, XSDNode parent) throws Exception {

        super (c_norm);

        m_elementDeclaration = elementDeclaration;
        m_parentNode = parent;
        m_hashCode = TransformationUtil.getHashCode(m_elementDeclaration);

        //initialize();
    }

    protected void initialize() throws Exception {   // this can be set up by reading some definition file

        ElementParent2PropertyDomain myHeuristic = new ElementParent2PropertyDomain(this, m_c_norm);
        associateNormalisationHeuristic((NormalisationHeuristic) myHeuristic);

    }

    public int getElementsHashCode() {

        return m_hashCode;

    }

    public int getParentsHashCode() {

        return TransformationUtil.getHashCode(m_parentNode);

    }

    public String getName() {

        return m_elementDeclaration.getName();

    }
}

⌨️ 快捷键说明

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