Beispiel #1
0
 public static LiteralOutputImpl createLiteralOutput(String key, LiteralOutputDefinition lod) {
   CodeType ct = new CodeType();
   ct.setValue(key);
   lod.setIdentifier(ct);
   LiteralOutputImpl loi = new LiteralOutputImpl(lod, null, true);
   return loi;
 }
Beispiel #2
0
 public static LiteralInputImpl createLiteralInput(
     String key, String value, LiteralInputDefinition lid) {
   CodeType ct = new CodeType();
   ct.setValue(key);
   lid.setIdentifier(ct);
   LiteralInputImpl lii =
       new LiteralInputImpl(
           lid, new LanguageString(key, null), new LanguageString(key, null), value, null);
   return lii;
 }
Beispiel #3
0
 public static BoundingBoxInputImpl createBoundingBoxInput(String key, BoundingBox bounds) {
   BoundingBoxInputDefinition bid = new BoundingBoxInputDefinition();
   CodeType ct = new CodeType();
   ct.setValue(key);
   bid.setIdentifier(ct);
   DefaultPoint min =
       new DefaultPoint(null, null, null, new double[] {bounds.getMinLon(), bounds.getMinLat()});
   DefaultPoint max =
       new DefaultPoint(null, null, null, new double[] {bounds.getMaxLon(), bounds.getMaxLat()});
   Envelope env = new DefaultEnvelope(min, max);
   BoundingBoxInputImpl lii =
       new BoundingBoxInputImpl(
           bid, new LanguageString(key, null), new LanguageString(key, null), env);
   return lii;
 }
Beispiel #4
0
 public static ComplexOutputImpl createComplexOutput(String key, ComplexOutputDefinition cod)
     throws FileNotFoundException, XMLStreamException {
   CodeType ct = new CodeType();
   ct.setValue(key);
   cod.setIdentifier(ct);
   OutputStorage output = null; // TODO: I don't know what to do with this...
   ComplexOutputImpl coi =
       new ComplexOutputImpl(
           cod,
           output,
           true,
           cod.getDefaultFormat().getMimeType(),
           null,
           cod.getDefaultFormat().getEncoding());
   return coi;
 }