Code example for AttributesImpl

Methods: addAttribute

0
        void handleCoverage(CoverageInfo ci) throws Exception {
            start("wcs:Coverage"); 
            element("ows:Title", ci.getTitle());
            element("ows:Abstract", ci.getDescription());
            element("ows:Identifier", ci.getName());
            final AttributesImpl attributes = new AttributesImpl();
            attributes.addAttribute("", "xlink:href", "xlink:href", "", coverageLocation);
            element("ows:Reference", "", attributes);
            end("wcs:Coverage"); 
        } 
 
    } 
 
}