📄 element2property.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -