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

📄 elementdeclaration.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 element declaration component within a XML Schema to the Normalisation process.
 * @author Oliver Fodor (fodor@itc.it)
 */
public class ElementDeclaration extends XSDComponent {

    XSDElement m_elementDeclaration;
    ElementDeclarationContext m_context;

    int m_hashCode;

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

        super (c_norm);

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

//        initialize();
    }

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

        m_context = new ElementDeclarationContext(this, m_c_norm);

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

    }

    public void processContext() throws Exception {

        m_context.process();
    }

    public int getHashCode() {

        return m_hashCode;
    }

    public String getName() {

        return m_elementDeclaration.getName();
    }

    public XSDNode getType() {

        return m_elementDeclaration.getType();
    }

    public XSDNode getNode() {

        return (XSDNode)m_elementDeclaration;
    }
}

⌨️ 快捷键说明

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