本文整理了Java中org.geotools.xml.XSD.getNamespaceURI()
方法的一些代码示例,展示了XSD.getNamespaceURI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSD.getNamespaceURI()
方法的具体详情如下:
包路径:org.geotools.xml.XSD
类名称:XSD
方法名:getNamespaceURI
[英]The namespace uri of the schema.
[中]架构的命名空间uri。
代码示例来源:origin: org.geotools/gt2-xml-core
public String toString() {
return getNamespaceURI();
}
}
代码示例来源:origin: org.geotools.xsd/gt-core
public String toString() {
return getNamespaceURI();
}
}
代码示例来源:origin: org.geotools.xsd/gt-core
/**
* Implementation of equals, equality is based soley on {@link #getNamespaceURI()}.
*/
public final boolean equals(Object obj) {
if (obj instanceof XSD) {
XSD other = (XSD) obj;
return getNamespaceURI().equals(other.getNamespaceURI());
}
return false;
}
代码示例来源:origin: org.geotools/gt2-xml-core
/**
* Implementation of equals, equality is based soley on {@link #getNamespaceURI()}.
*/
public final boolean equals(Object obj) {
if (obj instanceof XSD) {
XSD other = (XSD) obj;
return getNamespaceURI().equals(other.getNamespaceURI());
}
return false;
}
代码示例来源:origin: org.geotools.xsd/gt-core
/**
* Determines if the locator can locate a schema for the specified namespace
* and location.
*
* @return true if it can handle, otherwise false.
*/
public boolean canHandle( XSDSchema schema, String namespaceURI,
String rawSchemaLocationURI, String resolvedSchemaLocationURI) {
return xsd.getNamespaceURI().equals(namespaceURI);
}
代码示例来源:origin: org.geotools/gt2-xml-core
public final int hashCode() {
return getNamespaceURI().hashCode();
}
代码示例来源:origin: org.geotools.xsd/gt-core
public final int hashCode() {
return getNamespaceURI().hashCode();
}
代码示例来源:origin: org.geotools.xsd/gt-core
/**
* Determines if the locator can resolve the schema location for a particular
* namespace uri and schema location.
*
* @return true if it can handle, otherwise false.
*/
public boolean canHandle( XSDSchema schema, String uri, String location ) {
if ( xsd.getNamespaceURI().equals(uri) ) {
//strip off the filename and do a resource lookup
String fileName = new File(location).getName();
URL xsdLocation = xsd.getClass().getResource(fileName);
return xsdLocation != null;
}
return false;
}
代码示例来源:origin: org.geotools.xsd/gt-core
/**
* @return The namespace of the configuration schema.
*/
public final String getNamespaceURI() {
return getXSD().getNamespaceURI();
}
代码示例来源:origin: org.geotools/gt2-xml-core
/**
* @return The namespace of the configuration schema.
*/
public final String getNamespaceURI() {
return getXSD().getNamespaceURI();
}
代码示例来源:origin: org.geotools/gt2-xml-core
/**
* Returns the XSD object representing the contents of the schema.
*/
public final XSDSchema getSchema() throws IOException {
if (schema == null) {
synchronized (this) {
if (schema == null) {
LOGGER.fine("building schema for schema: " + getNamespaceURI());
schema = buildSchema();
}
}
}
return schema;
}
代码示例来源:origin: org.geotools.xsd/gt-core
/**
* Returns the XSD object representing the contents of the schema.
*/
public final XSDSchema getSchema() throws IOException {
if (schema == null) {
synchronized (this) {
if (schema == null) {
LOGGER.fine("building schema for schema: " + getNamespaceURI());
schema = buildSchema();
}
}
}
return schema;
}
代码示例来源:origin: org.geotools/gt2-xml-core
/**
* Creates the schema, returning <code>null</code> if the schema could not be created.
* </p>
* <code>namespaceURI</code> should not be <code>null</code>. All other parameters are ignored.
*
* @see XSDSchemaLocator#locateSchema(org.eclipse.xsd.XSDSchema, java.lang.String, java.lang.String, java.lang.String)
*/
public XSDSchema locateSchema(XSDSchema schema, String namespaceURI,
String rawSchemaLocationURI, String resolvedSchemaLocationURI) {
if (xsd.getNamespaceURI().equals(namespaceURI)) {
try {
return xsd.getSchema();
} catch (IOException e) {
LOGGER.log(Level.WARNING, "Error occured getting schema", e);
}
}
return null;
}
代码示例来源:origin: org.geotools/gt2-xml-core
/**
* Resolves <param>location<param> to a physical location.
* <p>
* Resolution is performed by stripping the filename off of <param>location</param>
* and looking up a resource located in the same package as the xsd.
* </p>
*/
public String resolveSchemaLocation(XSDSchema schema, String uri, String location) {
if (location == null) {
return null;
}
//if no namespace given, assume default for the current schema
if (((uri == null) || "".equals(uri)) && (schema != null)) {
uri = schema.getTargetNamespace();
}
//namespace match?
if (xsd.getNamespaceURI().equals(uri)) {
//strip off the filename and do a resource lookup
String fileName = new File(location).getName();
URL xsdLocation = xsd.getClass().getResource(fileName);
if (xsdLocation != null) {
return xsdLocation.toString();
}
}
return null;
}
代码示例来源:origin: org.geotools.xsd/gt-xsd-gml3
encoding.setAttributeNS(gml.getNamespaceURI(), "id", id);
内容来源于网络,如有侵权,请联系作者删除!