public void setDataFormat( String dataFormat ) { this.setDataFormat( DataFormatType.getType( dataFormat)); }
public void setDataFormat( String dataFormat ) { this.setDataFormat( DataFormatType.getType( dataFormat)); }
void parseStartElement() throws ThreddsXmlParserException { StartElement startElement = this.getNextEventIfStartElementIsMine(); if ( this.parentDatasetBuilder != null ) this.selfBuilder = this.parentDatasetBuilder.addAccessBuilder(); else throw new ThreddsXmlParserException( "" ); Attribute serviceNameAtt = startElement.getAttributeByName( AccessElementNames.AccessElement_ServiceName ); if ( serviceNameAtt != null ) { String serviceName = serviceNameAtt.getValue(); ServiceBuilder serviceBuilder = this.parentDatasetBuilder.getParentCatalogBuilder().findServiceBuilderByNameGlobally( serviceName ); this.selfBuilder.setServiceBuilder( serviceBuilder ); } Attribute urlPathAtt = startElement.getAttributeByName( AccessElementNames.AccessElement_UrlPath ); String urlPath = urlPathAtt.getValue(); this.selfBuilder.setUrlPath( urlPath ); Attribute dataFormatAtt = startElement.getAttributeByName( AccessElementNames.AccessElement_DataFormat ); if ( dataFormatAtt != null ) { this.selfBuilder.setDataFormat( DataFormatType.getType( dataFormatAtt.getValue() ) ); } return; }
void parseStartElement() throws ThreddsXmlParserException { StartElement startElement = this.getNextEventIfStartElementIsMine(); if ( this.parentDatasetBuilder != null ) this.selfBuilder = this.parentDatasetBuilder.addAccessBuilder(); else throw new ThreddsXmlParserException( "" ); Attribute serviceNameAtt = startElement.getAttributeByName( AccessElementNames.AccessElement_ServiceName ); if ( serviceNameAtt != null ) { String serviceName = serviceNameAtt.getValue(); ServiceBuilder serviceBuilder = this.parentDatasetBuilder.getParentCatalogBuilder().findServiceBuilderByNameGlobally( serviceName ); this.selfBuilder.setServiceBuilder( serviceBuilder ); } Attribute urlPathAtt = startElement.getAttributeByName( AccessElementNames.AccessElement_UrlPath ); String urlPath = urlPathAtt.getValue(); this.selfBuilder.setUrlPath( urlPath ); Attribute dataFormatAtt = startElement.getAttributeByName( AccessElementNames.AccessElement_DataFormat ); if ( dataFormatAtt != null ) { this.selfBuilder.setDataFormat( DataFormatType.getType( dataFormatAtt.getValue() ) ); } return; }
DataFormatType dataFormatType = DataFormatType.findType(dataFormatTypeName); if (dataFormatType == null) { dataFormatType = DataFormatType.getType(dataFormatTypeName); factory.appendWarning(" ** warning: non-standard dataFormat type = " + dataFormatTypeName + "\n");
DataFormatType dataFormatType = DataFormatType.findType( dataFormatTypeName); if (dataFormatType == null) { dataFormatType = DataFormatType.getType( dataFormatTypeName ); factory.appendWarning(" ** warning: non-standard dataFormat type = "+dataFormatTypeName+"\n");
DataFormatType dataFormatType = DataFormatType.findType(dataFormatTypeName); if (dataFormatType == null) { dataFormatType = DataFormatType.getType(dataFormatTypeName); factory.appendWarning(" ** warning: non-standard dataFormat type = " + dataFormatTypeName + "\n");