| |
| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| package org.apache.geode.cache.configuration; |
| |
| import javax.xml.bind.annotation.XmlAccessType; |
| import javax.xml.bind.annotation.XmlAccessorType; |
| import javax.xml.bind.annotation.XmlAttribute; |
| import javax.xml.bind.annotation.XmlElement; |
| import javax.xml.bind.annotation.XmlType; |
| |
| import org.apache.geode.annotations.Experimental; |
| |
| |
| /** |
| * |
| * A "pdx" element specifies the configuration for the portable data exchange (PDX) method of |
| * serialization. The "read-serialized" attribute is "early access". |
| * |
| * |
| * <p> |
| * Java class for pdx-type complex type. |
| * |
| * <p> |
| * The following schema fragment specifies the expected content contained within this class. |
| * |
| * <pre> |
| * <complexType name="pdx-type"> |
| * <complexContent> |
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| * <sequence> |
| * <element name="pdx-serializer" minOccurs="0"> |
| * <complexType> |
| * <complexContent> |
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| * <sequence> |
| * <element name="class-name" type="{http://geode.apache.org/schema/cache}class-name-type"/> |
| * <element name="parameter" type="{http://geode.apache.org/schema/cache}parameter-type" maxOccurs="unbounded" minOccurs="0"/> |
| * </sequence> |
| * </restriction> |
| * </complexContent> |
| * </complexType> |
| * </element> |
| * </sequence> |
| * <attribute name="read-serialized" type="{http://www.w3.org/2001/XMLSchema}boolean" /> |
| * <attribute name="ignore-unread-fields" type="{http://www.w3.org/2001/XMLSchema}boolean" /> |
| * <attribute name="persistent" type="{http://www.w3.org/2001/XMLSchema}boolean" /> |
| * <attribute name="disk-store-name" type="{http://www.w3.org/2001/XMLSchema}string" /> |
| * </restriction> |
| * </complexContent> |
| * </complexType> |
| * </pre> |
| * |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "pdx-type", namespace = "http://geode.apache.org/schema/cache", |
| propOrder = {"pdxSerializer"}) |
| @Experimental |
| public class PdxType { |
| @XmlElement(name = "pdx-serializer", namespace = "http://geode.apache.org/schema/cache") |
| protected DeclarableType pdxSerializer; |
| @XmlAttribute(name = "read-serialized") |
| protected Boolean readSerialized; |
| @XmlAttribute(name = "ignore-unread-fields") |
| protected Boolean ignoreUnreadFields; |
| @XmlAttribute(name = "persistent") |
| protected Boolean persistent; |
| @XmlAttribute(name = "disk-store-name") |
| protected String diskStoreName; |
| |
| /** |
| * Gets the value of the pdxSerializer property. |
| * |
| * possible object is |
| * {@link DeclarableType } |
| * |
| */ |
| public DeclarableType getPdxSerializer() { |
| return pdxSerializer; |
| } |
| |
| /** |
| * Sets the value of the pdxSerializer property. |
| * |
| * allowed object is |
| * {@link DeclarableType } |
| * |
| */ |
| public void setPdxSerializer(DeclarableType value) { |
| this.pdxSerializer = value; |
| } |
| |
| /** |
| * Gets the value of the readSerialized property. |
| * |
| * possible object is |
| * {@link Boolean } |
| * |
| */ |
| public Boolean isReadSerialized() { |
| return readSerialized; |
| } |
| |
| /** |
| * Sets the value of the readSerialized property. |
| * |
| * allowed object is |
| * {@link Boolean } |
| * |
| */ |
| public void setReadSerialized(Boolean value) { |
| this.readSerialized = value; |
| } |
| |
| /** |
| * Gets the value of the ignoreUnreadFields property. |
| * |
| * possible object is |
| * {@link Boolean } |
| * |
| */ |
| public Boolean isIgnoreUnreadFields() { |
| return ignoreUnreadFields; |
| } |
| |
| /** |
| * Sets the value of the ignoreUnreadFields property. |
| * |
| * allowed object is |
| * {@link Boolean } |
| * |
| */ |
| public void setIgnoreUnreadFields(Boolean value) { |
| this.ignoreUnreadFields = value; |
| } |
| |
| /** |
| * Gets the value of the persistent property. |
| * |
| * possible object is |
| * {@link Boolean } |
| * |
| */ |
| public Boolean isPersistent() { |
| return persistent; |
| } |
| |
| /** |
| * Sets the value of the persistent property. |
| * |
| * allowed object is |
| * {@link Boolean } |
| * |
| */ |
| public void setPersistent(Boolean value) { |
| this.persistent = value; |
| } |
| |
| /** |
| * Gets the value of the diskStoreName property. |
| * |
| * possible object is |
| * {@link String } |
| * |
| */ |
| public String getDiskStoreName() { |
| return diskStoreName; |
| } |
| |
| /** |
| * Sets the value of the diskStoreName property. |
| * |
| * allowed object is |
| * {@link String } |
| * |
| */ |
| public void setDiskStoreName(String value) { |
| this.diskStoreName = value; |
| } |
| } |