NameSpaces.java
/*
* Copyright (c) 2021 Mārtiņš Avots (Martins Avots) and others
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0, or the MIT License,
* which is available at https://spdx.org/licenses/MIT.html.
*
* SPDX-License-Identifier: EPL-2.0 OR MIT
*/
package net.splitcells.dem.lang.namespace;
import net.splitcells.dem.lang.perspective.Perspective;
import static net.splitcells.dem.lang.namespace.NameSpace.nameSpace;
import static net.splitcells.dem.lang.perspective.PerspectiveI.perspective;
import static net.splitcells.dem.utils.ConstructorIllegal.constructorIllegal;
public class NameSpaces {
public static final NameSpace FODS_OFFICE = nameSpace("office",
"urn:oasis:names:tc:opendocument:xmlns:office:1.0");
public static final NameSpace FODS_STYLE = nameSpace("style",
"urn:oasis:names:tc:opendocument:xmlns:style:1.0");
public static final NameSpace FODS_FO = nameSpace("fo",
"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0");
public static final NameSpace FODS_TABLE = nameSpace("table",
"urn:oasis:names:tc:opendocument:xmlns:table:1.0");
public static final NameSpace FODS_TEXT = nameSpace("text", "urn:oasis:names:tc:opendocument:xmlns:text:1.0");
@Deprecated
public static final NameSpace TEXT = nameSpace("nt", "http://splitcells.net/text.xsd");
public static final NameSpace STRING = nameSpace("str", "http://splitcells.net/string.xsd");
public static final NameSpace NAME_SPACE = nameSpace("ns", "http://splitcells.net/namespace.xsd");
public static final NameSpace DEN = nameSpace("d", "http://splitcells.net/den.xsd");
public static final NameSpace GEL = nameSpace("d", "http://splitcells.net/gel.xsd");
public static final NameSpace SEW = nameSpace("s", "http://splitcells.net/sew.xsd");
public static final String LINK = "link";
public static final String URL = "url";
public static final NameSpace NATURAL = nameSpace("n", "http://splitcells.net/natural.xsd");
public static final String VAL = "val";
public static final String NAME = "name";
public static final NameSpace XLINK = nameSpace("xl", "http://www.w3.org/1999/xlink");
public static final String HREF = "href";
private NameSpaces() {
throw constructorIllegal();
}
public static Perspective string(String value) {
return perspective(value, STRING);
}
}