All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.juneau.dto.atom.Source Maven / Gradle / Ivy

// ***************************************************************************************************************************
// * 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.juneau.dto.atom;

import java.util.*;

import org.apache.juneau.internal.*;

/**
 * Represents an atomSource construct in the RFC4287 specification.
 *
 * 
Schema
*

* atomSource = * element atom:source { * atomCommonAttributes, * (atomAuthor* * & atomCategory* * & atomContributor* * & atomGenerator? * & atomIcon? * & atomId? * & atomLink* * & atomLogo? * & atomRights? * & atomSubtitle? * & atomTitle? * & atomUpdated? * & extensionElement*) * } *

* *
See Also:
*/ @FluentSetters public class Source extends CommonEntry { private Generator generator; private Icon icon; private Logo logo; private Text subtitle; //----------------------------------------------------------------------------------------------------------------- // Bean properties //----------------------------------------------------------------------------------------------------------------- /** * Bean property getter: generator. * *

* The generator info of this source. * * @return The property value, or null if it is not set. */ public Generator getGenerator() { return generator; } /** * Bean property setter: generator. * *

* The generator info of this source. * * @param value * The new value for this property. *
Can be null to unset the property. * @return This object */ public Source setGenerator(Generator value) { this.generator = value; return this; } /** * Bean property getter: icon. * *

* The icon of this source. * * @return The property value, or null if it is not set. */ public Icon getIcon() { return icon; } /** * Bean property setter: icon. * *

* The icon of this source. * * @param value * The new value for this property. *
Can be null to unset the property. * @return This object */ public Source setIcon(Icon value) { this.icon = value; return this; } /** * Bean property getter: logo. * *

* The logo of this source. * * @return The property value, or null if it is not set. */ public Logo getLogo() { return logo; } /** * Bean property setter: logo. * *

* The logo of this source. * * @param value * The new value for this property. *
Can be null to unset the property. * @return This object */ public Source setLogo(Logo value) { this.logo = value; return this; } /** * Bean property getter: subtitle. * *

* The subtitle of this source. * * @return The property value, or null if it is not set. */ public Text getSubtitle() { return subtitle; } /** * Bean property setter: subtitle. * *

* The subtitle of this source. * * @param value * The new value for this property. *
Can be null to unset the property. * @return This object */ public Source setSubtitle(Text value) { this.subtitle = value; return this; } /** * Bean property fluent setter: subtitle. * *

* The subtitle of this source. * * @param value * The new value for this property. *
Can be null to unset the property. * @return This object. */ public Source setSubtitle(String value) { setSubtitle(new Text(value)); return this; } //----------------------------------------------------------------------------------------------------------------- // Overridden setters (to simplify method chaining) //----------------------------------------------------------------------------------------------------------------- // @Override /* GENERATED - org.apache.juneau.dto.atom.Common */ public Source setBase(Object value) { super.setBase(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.Common */ public Source setLang(String value) { super.setLang(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setAuthors(Person...value) { super.setAuthors(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setCategories(Category...value) { super.setCategories(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setContributors(Person...value) { super.setContributors(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setId(String value) { super.setId(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setId(Id value) { super.setId(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setLinks(Link...value) { super.setLinks(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setRights(String value) { super.setRights(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setRights(Text value) { super.setRights(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setTitle(String value) { super.setTitle(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setTitle(Text value) { super.setTitle(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setUpdated(String value) { super.setUpdated(value); return this; } @Override /* GENERATED - org.apache.juneau.dto.atom.CommonEntry */ public Source setUpdated(Calendar value) { super.setUpdated(value); return this; } // }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy