IdOperatorDecoder.java

  1. package de.turnertech.ows.filter;

  2. import javax.xml.stream.XMLStreamException;
  3. import javax.xml.stream.XMLStreamReader;

  4. import de.turnertech.ows.common.OwsContext;

  5. /**
  6.  * Leaf Decoder
  7.  */
  8. public class IdOperatorDecoder {
  9.    
  10.     public static Operator decode(final XMLStreamReader in, final OwsContext owsContext) throws XMLStreamException {
  11.         System.out.println("Id Operator Decoder");
  12.        
  13.         String resourceId = in.getAttributeValue(null, "rid");

  14.         return new IdOperator(new ResourceId(resourceId));
  15.     }

  16. }