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

org.geomajas.sld.xlink.ExtendedLinkInfo Maven / Gradle / Ivy

/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2013 Geosparc nv, http://www.geosparc.com/, Belgium.
 *
 * The program is available in open source according to the Apache
 * License, Version 2.0. All contributions in this program are covered
 * by the Geomajas Contributors License Agreement. For full licensing
 * details, see LICENSE.txt in the project root.
 */
package org.geomajas.sld.xlink;

import java.io.Serializable;
import org.geomajas.annotation.Api;

/**
 * Schema fragment(s) for this class:...
 * 
 * 
 * <xs:attributeGroup
 * xmlns:xlink="http://www.w3.org/1999/xlink"
 * xmlns:xs="http://www.w3.org/2001/XMLSchema" name="extendedLink">
 *   <xs:attribute type="xs:string" fixed="extended" form="qualified" name="type"/>
 *   <xs:attribute use="optional" ref="xlink:role">
 *     <!-- Reference to inner class RoleInfo -->
 *   </xs:attribute>
 *   <xs:attribute use="optional" ref="xlink:title">
 *     <!-- Reference to inner class TitleInfo -->
 *   </xs:attribute>
 * </xs:attributeGroup>
 * 
* * @author Jan De Moerloose * @since 1.0.0 */ @Api(allMethods = true) public class ExtendedLinkInfo implements Serializable { private static final long serialVersionUID = 100; private String type; private RoleInfo role; private TitleInfo title; /** * Get the 'type' attribute value. * * @return value */ public String getType() { return type; } /** * Set the 'type' attribute value. * * @param type */ public void setType(String type) { this.type = type; } /** * Get the 'role' attribute value. * * @return value */ public RoleInfo getRole() { return role; } /** * Set the 'role' attribute value. * * @param role */ public void setRole(RoleInfo role) { this.role = role; } /** * Get the 'title' attribute value. * * @return value */ public TitleInfo getTitle() { return title; } /** * Set the 'title' attribute value. * * @param title */ public void setTitle(TitleInfo title) { this.title = title; } /** * Schema fragment(s) for this class:... * *
	 * <xs:attribute
	 * xmlns:ns="http://www.w3.org/1999/xlink"
	 * xmlns:xs="http://www.w3.org/2001/XMLSchema" use="optional" ref="ns:role"/>
	 * 
	 * <xs:attribute
	 * xmlns:ns="http://www.w3.org/1999/xlink"
	 * xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" name="role"/>
	 * 
*/ public static class RoleInfo implements Serializable { private static final long serialVersionUID = 100; private String role; /** * Get the 'role' attribute value. * * @return value */ public String getRole() { return role; } /** * Set the 'role' attribute value. * * @param role */ public void setRole(String role) { this.role = role; } /** {@inheritDoc} */ @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { return "ExtendedLinkInfo.RoleInfo(role=" + this.getRole() + ")"; } /** {@inheritDoc} */ @java.lang.Override @java.lang.SuppressWarnings("all") public boolean equals(final java.lang.Object o) { if (o == this) { return true; } if (!(o instanceof RoleInfo)) { return false; } final RoleInfo other = (RoleInfo) o; if (!other.canEqual((java.lang.Object) this)) { return false; } if (this.getRole() == null ? other.getRole() != null : !this.getRole().equals( (java.lang.Object) other.getRole())) { return false; } return true; } /** {@inheritDoc} */ @java.lang.SuppressWarnings("all") public boolean canEqual(final java.lang.Object other) { return other instanceof RoleInfo; } /** {@inheritDoc} */ @java.lang.Override @java.lang.SuppressWarnings("all") public int hashCode() { final int prime = 31; int result = 1; result = result * prime + (this.getRole() == null ? 0 : this.getRole().hashCode()); return result; } } /** * Schema fragment(s) for this class:... * *
	 * <xs:attribute
	 * xmlns:ns="http://www.w3.org/1999/xlink"
	 * 
	 * xmlns:xs="http://www.w3.org/2001/XMLSchema" use="optional" ref="ns:title"/>
	 * 
	 * <xs:attribute
	 * xmlns:ns="http://www.w3.org/1999/xlink"
	 * 
	 * xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" name="title"/>
	 * 
*/ public static class TitleInfo implements Serializable { private static final long serialVersionUID = 100; private String title; /** * Get the 'title' attribute value. * * @return value */ public String getTitle() { return title; } /** * Set the 'title' attribute value. * * @param title */ public void setTitle(String title) { this.title = title; } /** {@inheritDoc} */ @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { return "ExtendedLinkInfo.TitleInfo(title=" + this.getTitle() + ")"; } /** {@inheritDoc} */ @java.lang.Override @java.lang.SuppressWarnings("all") public boolean equals(final java.lang.Object o) { if (o == this) { return true; } if (!(o instanceof TitleInfo)) { return false; } final TitleInfo other = (TitleInfo) o; if (!other.canEqual((java.lang.Object) this)) { return false; } if (this.getTitle() == null ? other.getTitle() != null : !this.getTitle().equals( (java.lang.Object) other.getTitle())) { return false; } return true; } /** {@inheritDoc} */ @java.lang.SuppressWarnings("all") public boolean canEqual(final java.lang.Object other) { return other instanceof TitleInfo; } /** {@inheritDoc} */ @java.lang.Override @java.lang.SuppressWarnings("all") public int hashCode() { final int prime = 31; int result = 1; result = result * prime + (this.getTitle() == null ? 0 : this.getTitle().hashCode()); return result; } } /** {@inheritDoc} */ @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { return "ExtendedLinkInfo(type=" + this.getType() + ", role=" + this.getRole() + ", title=" + this.getTitle() + ")"; } /** {@inheritDoc} */ @java.lang.Override @java.lang.SuppressWarnings("all") public boolean equals(final java.lang.Object o) { if (o == this) { return true; } if (!(o instanceof ExtendedLinkInfo)) { return false; } final ExtendedLinkInfo other = (ExtendedLinkInfo) o; if (!other.canEqual((java.lang.Object) this)) { return false; } if (this.getType() == null ? other.getType() != null : !this.getType().equals( (java.lang.Object) other.getType())) { return false; } if (this.getRole() == null ? other.getRole() != null : !this.getRole().equals( (java.lang.Object) other.getRole())) { return false; } if (this.getTitle() == null ? other.getTitle() != null : !this.getTitle().equals( (java.lang.Object) other.getTitle())) { return false; } return true; } /** {@inheritDoc} */ @java.lang.SuppressWarnings("all") public boolean canEqual(final java.lang.Object other) { return other instanceof ExtendedLinkInfo; } /** {@inheritDoc} */ @java.lang.Override @java.lang.SuppressWarnings("all") public int hashCode() { final int prime = 31; int result = 1; result = result * prime + (this.getType() == null ? 0 : this.getType().hashCode()); result = result * prime + (this.getRole() == null ? 0 : this.getRole().hashCode()); result = result * prime + (this.getTitle() == null ? 0 : this.getTitle().hashCode()); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy