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

org.jvnet.hyperjaxb3.ejb.schemas.customizations.GeneratedProperty Maven / Gradle / Ivy

There is a newer version: 4.0.8
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
//


package org.jvnet.hyperjaxb3.ejb.schemas.customizations;

import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QName;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAnyElement;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb.lang.CopyStrategy;
import org.jvnet.jaxb.lang.CopyTo;
import org.jvnet.jaxb.lang.Equals;
import org.jvnet.jaxb.lang.EqualsStrategy;
import org.jvnet.jaxb.lang.HashCode;
import org.jvnet.jaxb.lang.HashCodeStrategy;
import org.jvnet.jaxb.lang.JAXBCopyStrategy;
import org.jvnet.jaxb.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb.lang.JAXBMergeStrategy;
import org.jvnet.jaxb.lang.MergeFrom;
import org.jvnet.jaxb.lang.MergeStrategy;
import org.jvnet.jaxb.locator.ObjectLocator;
import org.jvnet.jaxb.locator.util.LocatorUtils;
import org.w3c.dom.Element;


/**
 * 

Java class for generated-property complex type

. * *

The following schema fragment specifies the expected content contained within this class.

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *       
 *       
 *       
 *       
 *       
 *         
 *           
 *             
 *             
 *           
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "generated-property", propOrder = { "any" }) public class GeneratedProperty implements Cloneable, CopyTo, Equals, HashCode, MergeFrom { @XmlAnyElement protected List any; @XmlAttribute(name = "name") protected String name; @XmlAttribute(name = "propertyName") protected String propertyName; @XmlAttribute(name = "propertyQName") protected QName propertyQName; @XmlAttribute(name = "propertyKind") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String propertyKind; /** * Gets the value of the any property. * *

This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the any property.

* *

* For example, to add a new item, do as follows: *

*
     * getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Element } *

* * * @return * The value of the any property. */ public List getAny() { if (any == null) { any = new ArrayList<>(); } return this.any; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the propertyName property. * * @return * possible object is * {@link String } * */ public String getPropertyName() { return propertyName; } /** * Sets the value of the propertyName property. * * @param value * allowed object is * {@link String } * */ public void setPropertyName(String value) { this.propertyName = value; } /** * Gets the value of the propertyQName property. * * @return * possible object is * {@link QName } * */ public QName getPropertyQName() { return propertyQName; } /** * Sets the value of the propertyQName property. * * @param value * allowed object is * {@link QName } * */ public void setPropertyQName(QName value) { this.propertyQName = value; } /** * Gets the value of the propertyKind property. * * @return * possible object is * {@link String } * */ public String getPropertyKind() { return propertyKind; } /** * Sets the value of the propertyKind property. * * @param value * allowed object is * {@link String } * */ public void setPropertyKind(String value) { this.propertyKind = value; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final GeneratedProperty that = ((GeneratedProperty) object); { List lhsAny; lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); List rhsAny; rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny, ((this.any!= null)&&(!this.any.isEmpty())), ((that.any!= null)&&(!that.any.isEmpty())))) { return false; } } { String lhsName; lhsName = this.getName(); String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName, (this.name!= null), (that.name!= null))) { return false; } } { String lhsPropertyName; lhsPropertyName = this.getPropertyName(); String rhsPropertyName; rhsPropertyName = that.getPropertyName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "propertyName", lhsPropertyName), LocatorUtils.property(thatLocator, "propertyName", rhsPropertyName), lhsPropertyName, rhsPropertyName, (this.propertyName!= null), (that.propertyName!= null))) { return false; } } { QName lhsPropertyQName; lhsPropertyQName = this.getPropertyQName(); QName rhsPropertyQName; rhsPropertyQName = that.getPropertyQName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "propertyQName", lhsPropertyQName), LocatorUtils.property(thatLocator, "propertyQName", rhsPropertyQName), lhsPropertyQName, rhsPropertyQName, (this.propertyQName!= null), (that.propertyQName!= null))) { return false; } } { String lhsPropertyKind; lhsPropertyKind = this.getPropertyKind(); String rhsPropertyKind; rhsPropertyKind = that.getPropertyKind(); if (!strategy.equals(LocatorUtils.property(thisLocator, "propertyKind", lhsPropertyKind), LocatorUtils.property(thatLocator, "propertyKind", rhsPropertyKind), lhsPropertyKind, rhsPropertyKind, (this.propertyKind!= null), (that.propertyKind!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List theAny; theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny, ((this.any!= null)&&(!this.any.isEmpty()))); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { String thePropertyName; thePropertyName = this.getPropertyName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "propertyName", thePropertyName), currentHashCode, thePropertyName, (this.propertyName!= null)); } { QName thePropertyQName; thePropertyQName = this.getPropertyQName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "propertyQName", thePropertyQName), currentHashCode, thePropertyQName, (this.propertyQName!= null)); } { String thePropertyKind; thePropertyKind = this.getPropertyKind(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "propertyKind", thePropertyKind), currentHashCode, thePropertyKind, (this.propertyKind!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public Object clone() { return copyTo(createNewInstance()); } @Override public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.getInstance(); return copyTo(null, target, strategy); } @Override public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof GeneratedProperty) { final GeneratedProperty copy = ((GeneratedProperty) draftCopy); { Boolean anyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.any!= null)&&(!this.any.isEmpty()))); if (anyShouldBeCopiedAndSet == Boolean.TRUE) { List sourceAny; sourceAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); @SuppressWarnings("unchecked") List copyAny = ((List ) strategy.copy(LocatorUtils.property(locator, "any", sourceAny), sourceAny, ((this.any!= null)&&(!this.any.isEmpty())))); copy.any = null; if (copyAny!= null) { List uniqueAnyl = copy.getAny(); uniqueAnyl.addAll(copyAny); } } else { if (anyShouldBeCopiedAndSet == Boolean.FALSE) { copy.any = null; } } } { Boolean nameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.name!= null)); if (nameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceName; sourceName = this.getName(); String copyName = ((String) strategy.copy(LocatorUtils.property(locator, "name", sourceName), sourceName, (this.name!= null))); copy.setName(copyName); } else { if (nameShouldBeCopiedAndSet == Boolean.FALSE) { copy.name = null; } } } { Boolean propertyNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.propertyName!= null)); if (propertyNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourcePropertyName; sourcePropertyName = this.getPropertyName(); String copyPropertyName = ((String) strategy.copy(LocatorUtils.property(locator, "propertyName", sourcePropertyName), sourcePropertyName, (this.propertyName!= null))); copy.setPropertyName(copyPropertyName); } else { if (propertyNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.propertyName = null; } } } { Boolean propertyQNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.propertyQName!= null)); if (propertyQNameShouldBeCopiedAndSet == Boolean.TRUE) { QName sourcePropertyQName; sourcePropertyQName = this.getPropertyQName(); QName copyPropertyQName = ((QName) strategy.copy(LocatorUtils.property(locator, "propertyQName", sourcePropertyQName), sourcePropertyQName, (this.propertyQName!= null))); copy.setPropertyQName(copyPropertyQName); } else { if (propertyQNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.propertyQName = null; } } } { Boolean propertyKindShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.propertyKind!= null)); if (propertyKindShouldBeCopiedAndSet == Boolean.TRUE) { String sourcePropertyKind; sourcePropertyKind = this.getPropertyKind(); String copyPropertyKind = ((String) strategy.copy(LocatorUtils.property(locator, "propertyKind", sourcePropertyKind), sourcePropertyKind, (this.propertyKind!= null))); copy.setPropertyKind(copyPropertyKind); } else { if (propertyKindShouldBeCopiedAndSet == Boolean.FALSE) { copy.propertyKind = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new GeneratedProperty(); } @Override public void mergeFrom(Object left, Object right) { final MergeStrategy strategy = JAXBMergeStrategy.getInstance(); mergeFrom(null, null, left, right, strategy); } @Override public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { if (right instanceof GeneratedProperty) { final GeneratedProperty target = this; final GeneratedProperty leftObject = ((GeneratedProperty) left); final GeneratedProperty rightObject = ((GeneratedProperty) right); { Boolean anyShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.any!= null)&&(!leftObject.any.isEmpty())), ((rightObject.any!= null)&&(!rightObject.any.isEmpty()))); if (anyShouldBeMergedAndSet == Boolean.TRUE) { List lhsAny; lhsAny = (((leftObject.any!= null)&&(!leftObject.any.isEmpty()))?leftObject.getAny():null); List rhsAny; rhsAny = (((rightObject.any!= null)&&(!rightObject.any.isEmpty()))?rightObject.getAny():null); List mergedAny = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "any", lhsAny), LocatorUtils.property(rightLocator, "any", rhsAny), lhsAny, rhsAny, ((leftObject.any!= null)&&(!leftObject.any.isEmpty())), ((rightObject.any!= null)&&(!rightObject.any.isEmpty())))); target.any = null; if (mergedAny!= null) { List uniqueAnyl = target.getAny(); uniqueAnyl.addAll(mergedAny); } } else { if (anyShouldBeMergedAndSet == Boolean.FALSE) { target.any = null; } } } { Boolean nameShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.name!= null), (rightObject.name!= null)); if (nameShouldBeMergedAndSet == Boolean.TRUE) { String lhsName; lhsName = leftObject.getName(); String rhsName; rhsName = rightObject.getName(); String mergedName = ((String) strategy.merge(LocatorUtils.property(leftLocator, "name", lhsName), LocatorUtils.property(rightLocator, "name", rhsName), lhsName, rhsName, (leftObject.name!= null), (rightObject.name!= null))); target.setName(mergedName); } else { if (nameShouldBeMergedAndSet == Boolean.FALSE) { target.name = null; } } } { Boolean propertyNameShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.propertyName!= null), (rightObject.propertyName!= null)); if (propertyNameShouldBeMergedAndSet == Boolean.TRUE) { String lhsPropertyName; lhsPropertyName = leftObject.getPropertyName(); String rhsPropertyName; rhsPropertyName = rightObject.getPropertyName(); String mergedPropertyName = ((String) strategy.merge(LocatorUtils.property(leftLocator, "propertyName", lhsPropertyName), LocatorUtils.property(rightLocator, "propertyName", rhsPropertyName), lhsPropertyName, rhsPropertyName, (leftObject.propertyName!= null), (rightObject.propertyName!= null))); target.setPropertyName(mergedPropertyName); } else { if (propertyNameShouldBeMergedAndSet == Boolean.FALSE) { target.propertyName = null; } } } { Boolean propertyQNameShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.propertyQName!= null), (rightObject.propertyQName!= null)); if (propertyQNameShouldBeMergedAndSet == Boolean.TRUE) { QName lhsPropertyQName; lhsPropertyQName = leftObject.getPropertyQName(); QName rhsPropertyQName; rhsPropertyQName = rightObject.getPropertyQName(); QName mergedPropertyQName = ((QName) strategy.merge(LocatorUtils.property(leftLocator, "propertyQName", lhsPropertyQName), LocatorUtils.property(rightLocator, "propertyQName", rhsPropertyQName), lhsPropertyQName, rhsPropertyQName, (leftObject.propertyQName!= null), (rightObject.propertyQName!= null))); target.setPropertyQName(mergedPropertyQName); } else { if (propertyQNameShouldBeMergedAndSet == Boolean.FALSE) { target.propertyQName = null; } } } { Boolean propertyKindShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.propertyKind!= null), (rightObject.propertyKind!= null)); if (propertyKindShouldBeMergedAndSet == Boolean.TRUE) { String lhsPropertyKind; lhsPropertyKind = leftObject.getPropertyKind(); String rhsPropertyKind; rhsPropertyKind = rightObject.getPropertyKind(); String mergedPropertyKind = ((String) strategy.merge(LocatorUtils.property(leftLocator, "propertyKind", lhsPropertyKind), LocatorUtils.property(rightLocator, "propertyKind", rhsPropertyKind), lhsPropertyKind, rhsPropertyKind, (leftObject.propertyKind!= null), (rightObject.propertyKind!= null))); target.setPropertyKind(mergedPropertyKind); } else { if (propertyKindShouldBeMergedAndSet == Boolean.FALSE) { target.propertyKind = null; } } } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy