📄 xsdcomponent.java
字号:
package it.itc.ectrl.normkit.cnorm.XSModel;
import java.util.Iterator;
import java.util.Set;
import java.util.HashSet;
import it.itc.ectrl.normkit.cnorm.impl.C_NormalisationImpl;
import it.itc.ectrl.normkit.cnorm.heuristics.*;
/**
* Abstract parent class for all specific XML Schema component classes for use by the Normalisation Toolkit (currently used only in C-Normalisation).
* @author Oliver Fodor (fodor@itc.it)
*/
public abstract class XSDComponent {
/**
* The C-Normalisation process addressing this component in order to extract a RDFS entity.
*/
C_NormalisationImpl m_c_norm;
/**
* Set of normalisation heuristics relevant for this component.
*/
Set m_normalisationHeuristics = new HashSet();
/**
* Creates an instance of this class for a particular C-Normalisation process.
* @param C_NormalisationImpl the C-Normalisation process to be associated with this component
*/
public XSDComponent(C_NormalisationImpl c_norm) throws Exception {
m_c_norm = c_norm;
initialize();
}
protected void initialize() throws Exception {
}
/**
* Associates given normalisation heuristic with this XML Schema component.
* @param NormalisationHeuristic heuristic to be associated with this component
*/
protected void associateNormalisationHeuristic(NormalisationHeuristic normalisationHeuristic) throws Exception {
m_normalisationHeuristics.add(normalisationHeuristic);
}
/**
* Executes associated normalisation heuristics in order to extract RDFS entities.
*/
public void runNormalisationHeuristics() throws Exception {
for(Iterator iterator = m_normalisationHeuristics.iterator(); iterator.hasNext();) {
NormalisationHeuristic nh = (NormalisationHeuristic)iterator.next();
nh.run();
}
}
/**
* Returns the associated C-Normalisation process.
*/
public C_NormalisationImpl getC_Normalisation() {
return m_c_norm;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -