xsddatatypeexplanationdeposit.java
来自「Semantic Web Ontology Editor」· Java 代码 · 共 72 行
JAVA
72 行
/* * Created on Feb 14, 2005 * * To change the template for this generated file go to * Window - Preferences - Java - Code Generation - Code and Comments */package org.mindswap.swoop.utils.explain;import java.net.URI;import java.net.URISyntaxException;import java.util.Hashtable;import org.semanticweb.owl.io.vocabulary.XMLSchemaSimpleDatatypeVocabulary;/** * @author Dave * * Deposit of XSD datatype explanations * */public class XSDDatatypeExplanationDeposit extends Hashtable implements DatatypeExplanationDeposit { private static URI XSDURI = null; private static XSDDatatypeExplanationDeposit myDeposit = null; private int myNumExplanations = 0; public static XSDDatatypeExplanationDeposit getInstance() { if (myDeposit == null) { try { XSDURI = new URI("http://www.w3.org/TR/xmlschema-2/"); myDeposit = new XSDDatatypeExplanationDeposit(); } catch (URISyntaxException e) { e.printStackTrace(); } } return myDeposit; } private XSDDatatypeExplanationDeposit() throws URISyntaxException { URI [] uris = { XSDURI }; String name = XMLSchemaSimpleDatatypeVocabulary.XS + "string"; String [] examples = {"Ontology enginnering is fun!","hoot... hoot..."}; add( new DatatypeExplanation( new URI( name ), name, "The string datatype represents character strings in XML. The value" + " space of string is the set of finite-length sequences of characters " + "(as defined in [XML 1.0 (Second Edition)]) that match the Char production" + " from [XML 1.0 (Second Edition)]. A character is an atomic unit of " + "communication; it is not further specified except to note that every " + "character has a corresponding Universal Character Set code point, which is" + " an integer.", uris, examples )); name = XMLSchemaSimpleDatatypeVocabulary.XS + "boolean"; String [] ex_boolean = {"true","false", "1", "0"}; add( new DatatypeExplanation( new URI( name ), name, "boolean has the value space required to support the mathematical concept " + "of binary-valued logic: {true, false}.", uris, ex_boolean )); name = XMLSchemaSimpleDatatypeVocabulary.XS + "decimal"; String [] ex_decimals = {"-1.23", "12678967.543233", "+100000.00", "210"}; add( new DatatypeExplanation( new URI( name ), name, "decimal represents a subset of the real numbers, which can be represented" + " by decimal numerals. The value space of decimal is the set of numbers that" + " can be obtained by multiplying an integer by a non-positive power of ten," + " i.e., expressible as i
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?