gpt4 book ai didi

org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getNamespaceURI()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 04:51:05 25 4
gpt4 key购买 nike

本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getNamespaceURI()方法的一些代码示例,展示了XMLStreamReaderWrapper.getNamespaceURI()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLStreamReaderWrapper.getNamespaceURI()方法的具体详情如下:
包路径:org.deegree.commons.xml.stax.XMLStreamReaderWrapper
类名称:XMLStreamReaderWrapper
方法名:getNamespaceURI

XMLStreamReaderWrapper.getNamespaceURI介绍

暂无

代码示例

代码示例来源:origin: deegree/deegree3

public QName getAttributeValueAsQName( String namespaceURI, String localName )
            throws XMLParsingException {
  QName result = null;
  String s = reader.getAttributeValue( namespaceURI, localName );
  if ( s == null ) {
    throw new XMLParsingException( this, "No attribute with name {" + namespaceURI + "}" + localName + "." );
  }
  int colonIdx = s.indexOf( ':' );
  if ( colonIdx < 0 ) {
    result = new QName( s );
  } else if ( colonIdx == s.length() - 1 ) {
    throw new XMLParsingException( this, "Invalid QName '" + s + "': no local name." );
  } else {
    String prefix = s.substring( 0, colonIdx );
    String localPart = s.substring( colonIdx + 1 );
    String nsUri = getNamespaceURI( prefix );
    if ( nsUri == null ) {
      throw new XMLParsingException( this, "Invalid QName '" + s + "': prefix '" + prefix + "' is unbound." );
    }
    result = new QName( nsUri, localPart, prefix );
  }
  return result;
}

代码示例来源:origin: deegree/deegree3

public QName getElementTextAsQName()
            throws XMLParsingException {
  QName result = null;
  try {
    String s = getElementText();
    int colonIdx = s.indexOf( ':' );
    if ( colonIdx < 0 ) {
      result = new QName( s );
    } else if ( colonIdx == s.length() - 1 ) {
      throw new XMLParsingException( this, "Invalid QName '" + s + "': no local name." );
    } else {
      String prefix = s.substring( 0, colonIdx );
      String localPart = s.substring( colonIdx + 1 );
      String nsUri = getNamespaceURI( prefix );
      if ( nsUri == null ) {
        throw new XMLParsingException( this, "Invalid QName '" + s + "': prefix '" + prefix
                           + "' is unbound." );
      }
      result = new QName( nsUri, localPart, prefix );
    }
  } catch ( XMLStreamException e ) {
    throw new XMLParsingException( this, e.getMessage() );
  }
  return result;
}

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Unexpected element: " + xmlStream.getName()
         + "' is not a GML geometry or envelope element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

Geometry geometry = null;
if ( !GML21NS.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_Geometry element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_SurfacePatch element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_GeometricComplex element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_GeometricAggregate element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_CurveSegment element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_ImplicitGeometry element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( xmlStream.getEventType() != START_ELEMENT || !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Surface requires a patches, trianglePatches or polygonPatches child element.";
  throw new XMLParsingException( xmlStream, msg );

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_Geometry element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_Ring element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_Surface element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_Curve element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

代码示例来源:origin: deegree/deegree3

if ( !gmlNs.equals( xmlStream.getNamespaceURI() ) ) {
  String msg = "Invalid gml:_Surface element: " + xmlStream.getName()
         + "' is not a GML geometry element. Not in the gml namespace.";

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com