| 1 | /* |
|---|
| 2 | * Copyright 2007-2008, Plutext Pty Ltd. |
|---|
| 3 | * |
|---|
| 4 | * This file is part of docx4j. |
|---|
| 5 | |
|---|
| 6 | docx4j is licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | |
|---|
| 9 | You may obtain a copy of the License at |
|---|
| 10 | |
|---|
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 12 | |
|---|
| 13 | Unless required by applicable law or agreed to in writing, software |
|---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 16 | See the License for the specific language governing permissions and |
|---|
| 17 | limitations under the License. |
|---|
| 18 | |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | package org.docx4j.dml; |
|---|
| 23 | |
|---|
| 24 | import java.util.ArrayList; |
|---|
| 25 | import java.util.List; |
|---|
| 26 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 27 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 28 | import javax.xml.bind.annotation.XmlElement; |
|---|
| 29 | import javax.xml.bind.annotation.XmlElements; |
|---|
| 30 | import javax.xml.bind.annotation.XmlType; |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | /** |
|---|
| 34 | * <p>Java class for CT_BackgroundFillStyleList complex type. |
|---|
| 35 | * |
|---|
| 36 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 37 | * |
|---|
| 38 | * <pre> |
|---|
| 39 | * <complexType name="CT_BackgroundFillStyleList"> |
|---|
| 40 | * <complexContent> |
|---|
| 41 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 42 | * <sequence> |
|---|
| 43 | * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_FillProperties" maxOccurs="unbounded" minOccurs="3"/> |
|---|
| 44 | * </sequence> |
|---|
| 45 | * </restriction> |
|---|
| 46 | * </complexContent> |
|---|
| 47 | * </complexType> |
|---|
| 48 | * </pre> |
|---|
| 49 | * |
|---|
| 50 | * |
|---|
| 51 | */ |
|---|
| 52 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 53 | @XmlType(name = "CT_BackgroundFillStyleList", propOrder = { |
|---|
| 54 | "egFillProperties" |
|---|
| 55 | }) |
|---|
| 56 | public class CTBackgroundFillStyleList { |
|---|
| 57 | |
|---|
| 58 | @XmlElements({ |
|---|
| 59 | @XmlElement(name = "pattFill", type = CTPatternFillProperties.class), |
|---|
| 60 | @XmlElement(name = "blipFill", type = CTBlipFillProperties.class), |
|---|
| 61 | @XmlElement(name = "solidFill", type = CTSolidColorFillProperties.class), |
|---|
| 62 | @XmlElement(name = "noFill", type = CTNoFillProperties.class), |
|---|
| 63 | @XmlElement(name = "grpFill", type = CTGroupFillProperties.class), |
|---|
| 64 | @XmlElement(name = "gradFill", type = CTGradientFillProperties.class) |
|---|
| 65 | }) |
|---|
| 66 | protected List<Object> egFillProperties; |
|---|
| 67 | |
|---|
| 68 | /** |
|---|
| 69 | * Gets the value of the egFillProperties property. |
|---|
| 70 | * |
|---|
| 71 | * <p> |
|---|
| 72 | * This accessor method returns a reference to the live list, |
|---|
| 73 | * not a snapshot. Therefore any modification you make to the |
|---|
| 74 | * returned list will be present inside the JAXB object. |
|---|
| 75 | * This is why there is not a <CODE>set</CODE> method for the egFillProperties property. |
|---|
| 76 | * |
|---|
| 77 | * <p> |
|---|
| 78 | * For example, to add a new item, do as follows: |
|---|
| 79 | * <pre> |
|---|
| 80 | * getEGFillProperties().add(newItem); |
|---|
| 81 | * </pre> |
|---|
| 82 | * |
|---|
| 83 | * |
|---|
| 84 | * <p> |
|---|
| 85 | * Objects of the following type(s) are allowed in the list |
|---|
| 86 | * {@link CTPatternFillProperties } |
|---|
| 87 | * {@link CTBlipFillProperties } |
|---|
| 88 | * {@link CTSolidColorFillProperties } |
|---|
| 89 | * {@link CTNoFillProperties } |
|---|
| 90 | * {@link CTGroupFillProperties } |
|---|
| 91 | * {@link CTGradientFillProperties } |
|---|
| 92 | * |
|---|
| 93 | * |
|---|
| 94 | */ |
|---|
| 95 | public List<Object> getEGFillProperties() { |
|---|
| 96 | if (egFillProperties == null) { |
|---|
| 97 | egFillProperties = new ArrayList<Object>(); |
|---|
| 98 | } |
|---|
| 99 | return this.egFillProperties; |
|---|
| 100 | } |
|---|
| 101 | |
|---|
| 102 | } |
|---|