Example #1
0
  /**
   * Get a JAXB representation of this {@code Category}.
   *
   * @return A {@code CategoryType}, that has been built using the values embedded in this {@code
   *     Category} instance.
   */
  CategoryType getJAXBType() {
    CategoryType ct = new CategoryType();

    if (this.getFill() != null) {
      ct.setFill(this.getFill().getJAXBElement());
    }

    if (this.getStroke() != null) {
      ct.setStroke(getStroke().getJAXBElement());
    }

    if (this.getGraphicCollection() != null) {
      ct.setGraphic(getGraphicCollection().getJAXBElement());
    }

    if (this.getMeasure() != null) {
      ct.setValue(getMeasure().getJAXBParameterValueType());
    }

    if (this.getName() != null) {
      ct.setName(getName());
    }

    return ct;
  }