Package org.geomajas.sld

Examples of org.geomajas.sld.OverlapBehaviorInfo


    if (!(obj instanceof OverlapBehaviorInfo)) {
      throw new JiBXException("Invalid object type for marshaller");
    } else if (!(ictx instanceof MarshallingContext)) {
      throw new JiBXException("Invalid object type for marshaller");
    } else {
      OverlapBehaviorInfo overlapBehaviorInfo = (OverlapBehaviorInfo) obj;
      // start by generating start tag for container
      MarshallingContext ctx = (MarshallingContext) ictx;
      ctx.startTag(index, name).content(overlapBehaviorInfo.getOverlapBehavior().xmlValue())
          .closeStartContent();
      ctx.endTag(index, name);
    }
  }
View Full Code Here


    if (!ctx.isAt(uri, name)) {
      ctx.throwStartTagNameError(uri, name);
    }

    // create new hashmap if needed
    OverlapBehaviorInfo overlapBehaviorInfo = (OverlapBehaviorInfo) obj;
    if (overlapBehaviorInfo == null) {
      overlapBehaviorInfo = new OverlapBehaviorInfo();
    }

    // process all entries present in document
    ctx.parsePastStartTag(uri, name);
    boolean found = false;
    for (OverlapBehaviorInfoInner inner : OverlapBehaviorInfoInner.values()) {
      if (ctx.parseIfStartTag(uri, inner.name())) {
        found = true;
        overlapBehaviorInfo.setOverlapBehavior(inner);
        ctx.parsePastEndTag(uri, inner.name());
        break;
      }
    }
    if (!found) {
View Full Code Here

TOP

Related Classes of org.geomajas.sld.OverlapBehaviorInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.