gpt4 book ai didi

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

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

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

XMLStreamReaderWrapper.getSystemId介绍

暂无

代码示例

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

/**
 * @param xmlReader
 */
XMLErrorPosition( XMLStreamReader xmlReader ) {
  if ( xmlReader instanceof XMLStreamReaderWrapper ) {
    systemId = ( (XMLStreamReaderWrapper) xmlReader ).getSystemId();
  } else {
    systemId = "unknown source";
  }
  Location location = xmlReader.getLocation();
  lineNumber = location.getLineNumber();
  columnNumber = location.getColumnNumber();
  characterOffset = location.getCharacterOffset();
}

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

String schemaLocation = xmlStream.getAttributeValue( XSINS, "schemaLocation" );
if ( schemaLocation == null ) {
  LOG.warn( Messages.getMessage( "NO_SCHEMA_LOCATION", xmlStream.getSystemId() ) );
  return new DynamicAppSchema();
  LOG.warn( Messages.getMessage( "ERROR_SCHEMA_LOCATION_TOKENS_COUNT", xmlStream.getSystemId() ) );
  return new DynamicAppSchema();
  String schemaUrl = tokens[i * 2 + 1];
  try {
    if ( xmlStream.getSystemId() == null ) {
      schemaUrls[i] = new URL( new URL( xmlStream.getSystemId() ), schemaUrl ).toString();
    LOG.warn( Messages.getMessage( "INVALID_SCHEMA_LOCATION", xmlStream.getSystemId() ) );
    return new DynamicAppSchema();
  schema = decoder.extractAppSchema();
} catch ( Throwable t ) {
  LOG.warn( Messages.getMessage( "BROKEN_SCHEMA", xmlStream.getSystemId(), t.getMessage() ), t );
  return new DynamicAppSchema();

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

GMLReference<TimeSlice> refObject = null;
if ( specialResolver != null ) {
  refObject = new GMLReference<TimeSlice>( specialResolver, href, xmlStream.getSystemId() );
} else {
  refObject = new GMLReference<TimeSlice>( idContext, href, xmlStream.getSystemId() );

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

private Geometry parseGeometryProperty( XMLStreamReaderWrapper xmlStream, ICRS crs )
            throws XMLStreamException {
  Geometry geometry = null;
  String href = xmlStream.getAttributeValue( CommonNamespaces.XLNNS, "href" );
  if ( href != null && href.length() > 0 ) {
    LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
    geometry = new GeometryReference<Geometry>( idContext, href, xmlStream.getSystemId() );
    idContext.addReference( (GeometryReference<?>) geometry );
    if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {
      String msg = "Unexpected element '" + xmlStream.getName()
             + "'. Geometry value has already been specified using xlink.";
      throw new XMLParsingException( xmlStream, msg );
    }
  } else if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {
    geometry = parse( xmlStream, crs );
    xmlStream.nextTag();
  } else {
    String msg = "Error in geometry property element. Expected a 'gml:_Geometry' element or an 'xlink:href' attribute.";
    throw new XMLParsingException( xmlStream, msg );
  }
  return geometry;
}

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

private Polygon parsePolygonProperty( XMLStreamReaderWrapper xmlStream, ICRS crs )
            throws XMLStreamException {
  Polygon polygon = null;
  String href = xmlStream.getAttributeValue( CommonNamespaces.XLNNS, "href" );
  if ( href != null && href.length() > 0 ) {
    LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
    polygon = new PolygonReference( idContext, href, xmlStream.getSystemId() );
    idContext.addReference( (GeometryReference<?>) polygon );
    if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {
      String msg = "Unexpected element '" + xmlStream.getName()
             + "'. Polygon value has already been specified using xlink.";
      throw new XMLParsingException( xmlStream, msg );
    }
  } else if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {
    // must be a 'gml:Polygon' element
    if ( !xmlStream.getLocalName().equals( "Polygon" ) ) {
      String msg = "Error in polygon property element. Expected a 'gml:Polygon' element.";
      throw new XMLParsingException( xmlStream, msg );
    }
    polygon = parsePolygon( xmlStream, crs );
    xmlStream.nextTag();
  } else {
    String msg = "Error in Polygon property element. Expected a 'gml:Polygon' element or an 'xlink:href' attribute.";
    throw new XMLParsingException( xmlStream, msg );
  }
  return polygon;
}

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

private Point parsePointProperty( XMLStreamReaderWrapper xmlStream, ICRS crs )
            throws XMLStreamException {
  Point point = null;
  String href = xmlStream.getAttributeValue( CommonNamespaces.XLNNS, "href" );
  if ( href != null && href.length() > 0 ) {
    LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
    point = new PointReference( idContext, href, xmlStream.getSystemId() );
    idContext.addReference( (GeometryReference<?>) point );
    if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {
      String msg = "Unexpected element '" + xmlStream.getName()
             + "'. Point value has already been specified using xlink.";
      throw new XMLParsingException( xmlStream, msg );
    }
  } else if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {
    // must be a 'gml:Point' element
    if ( !xmlStream.getLocalName().equals( "Point" ) ) {
      String msg = "Error in point property element. Expected a 'gml:Point' element.";
      throw new XMLParsingException( xmlStream, msg );
    }
    point = parsePoint( xmlStream, crs );
    xmlStream.nextTag();
  } else {
    String msg = "Error in point property element. Expected a 'gml:Point' element or an 'xlink:href' attribute.";
    throw new XMLParsingException( xmlStream, msg );
  }
  return point;
}

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

private LineString parseLineStringProperty( XMLStreamReaderWrapper xmlStream, ICRS crs )
            throws XMLStreamException {
  LineString lineString = null;
  String href = xmlStream.getAttributeValue( CommonNamespaces.XLNNS, "href" );
  if ( href != null && href.length() > 0 ) {
    LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
    lineString = new LineStringReference( idContext, href, xmlStream.getSystemId() );
    idContext.addReference( (GeometryReference<?>) lineString );
    if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {
      String msg = "Unexpected element '" + xmlStream.getName()
             + "'. LineString value has already been specified using xlink.";
      throw new XMLParsingException( xmlStream, msg );
    }
  } else if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {
    // must be a 'gml:LineString' element
    if ( !xmlStream.getLocalName().equals( "LineString" ) ) {
      String msg = "Error in LineString property element. Expected a 'gml:LineString' element.";
      throw new XMLParsingException( xmlStream, msg );
    }
    lineString = parseLineString( xmlStream, crs );
    xmlStream.nextTag();
  } else {
    String msg = "Error in LineString property element. Expected a 'gml:LineString' element or an 'xlink:href' attribute.";
    throw new XMLParsingException( xmlStream, msg );
  }
  return lineString;
}

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

if ( specialResolver != null ) {
  if( internalResolver == null ) {
    refFeature = new FeatureReference( specialResolver, href, xmlStream.getSystemId() );
  } else {
    refFeature = new FeatureReference( specialResolver, internalResolver, href, xmlStream.getSystemId() );
  refFeature = new FeatureReference( idContext, href, xmlStream.getSystemId() );
  } else {
    refFeature = new FeatureReference( idContext, internalResolver, href, xmlStream.getSystemId() );

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

FeatureReference refFeature = null;
if ( specialResolver != null ) {
  refFeature = new FeatureReference( specialResolver, href, xmlStream.getSystemId() );
} else {
  refFeature = new FeatureReference( idContext, href, xmlStream.getSystemId() );

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

if ( specialResolver != null ) {
  ref = new TimeGeometricPrimitiveReference<TimeGeometricPrimitive>( specialResolver, href,
                                    xmlStream.getSystemId() );
} else {
  ref = new TimeGeometricPrimitiveReference<TimeGeometricPrimitive>( idContext, href,
                                    xmlStream.getSystemId() );

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

if ( href != null && href.length() > 0 ) {
  LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
  primitive = new GeometricPrimitiveReference<GeometricPrimitive>( idContext, href, xmlStream.getSystemId() );
  idContext.addReference( (GeometryReference<?>) primitive );
  if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {

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

if ( href != null && href.length() > 0 ) {
  LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
  geometry = new GeometryReference<Geometry>( idContext, href, xmlStream.getSystemId() );
  idContext.addReference( (GeometryReference<?>) geometry );
  if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {

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

if ( href != null && href.length() > 0 ) {
  LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
  surface = new SurfaceReference<Surface>( getResolver(), href, xmlStream.getSystemId() );
  idContext.addReference( (GeometryReference<?>) surface );
  if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {

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

if ( href != null && href.length() > 0 ) {
  LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
  solid = new SolidReference<Solid>( idContext, href, xmlStream.getSystemId() );
  idContext.addReference( (GeometryReference<?>) solid );
  if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {

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

if ( href != null && href.length() > 0 ) {
  LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
  curve = new CurveReference<Curve>( getResolver(), href, xmlStream.getSystemId() );
  idContext.addReference( (GeometryReference<?>) curve );
  if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {

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

if ( href != null && href.length() > 0 ) {
  LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
  point = new PointReference( getResolver(), href, xmlStream.getSystemId() );
  idContext.addReference( (GeometryReference<?>) point );
  if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {

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

if ( href != null && href.length() > 0 ) {
  LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
  polygon = new PolygonReference( getResolver(), href, xmlStream.getSystemId() );
  idContext.addReference( (GeometryReference<?>) polygon );
  if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {

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

if ( href != null && href.length() > 0 ) {
  LOG.debug( "Found geometry reference (xlink): '" + href + "'" );
  lineString = new LineStringReference( getResolver(), href, xmlStream.getSystemId() );
  idContext.addReference( (GeometryReference<?>) lineString );
  if ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT ) {

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

refGeometry = new GeometryReference<Geometry>( specialResolver, href, xmlStream.getSystemId() );
} else {
  refGeometry = new GeometryReference<Geometry>( idContext, href, xmlStream.getSystemId() );

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