Search in sources :

Example 1 with TextBlock

use of net.opengis.swe.x101.TextBlockDocument.TextBlock in project arctic-sea by 52North.

the class SweCommonEncoderv101 method createTextEncoding.

private BlockEncodingPropertyType createTextEncoding(SweTextEncoding sosTextEncoding) {
    BlockEncodingPropertyType xbTextEncodingType = BlockEncodingPropertyType.Factory.newInstance(getXmlOptions());
    TextBlock xbTextEncoding = xbTextEncodingType.addNewTextBlock();
    if (sosTextEncoding.getBlockSeparator() != null) {
        xbTextEncoding.setBlockSeparator(sosTextEncoding.getBlockSeparator());
    }
    // }
    if (sosTextEncoding.getDecimalSeparator() != null) {
        xbTextEncoding.setDecimalSeparator(sosTextEncoding.getDecimalSeparator());
    }
    if (sosTextEncoding.getTokenSeparator() != null) {
        xbTextEncoding.setTokenSeparator(sosTextEncoding.getTokenSeparator());
    }
    // cannot be cast to net.opengis.swe.x101.AbstractEncodingType
    return xbTextEncodingType;
}
Also used : BlockEncodingPropertyType(net.opengis.swe.x101.BlockEncodingPropertyType) TextBlock(net.opengis.swe.x101.TextBlockDocument.TextBlock)

Aggregations

BlockEncodingPropertyType (net.opengis.swe.x101.BlockEncodingPropertyType)1 TextBlock (net.opengis.swe.x101.TextBlockDocument.TextBlock)1