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

io.github.jeddict.jpa.spec.NamedAttributeNode Maven / Gradle / Ivy

Go to download

Jeddict is an open source Jakarta EE application development platform that accelerates developers productivity and simplifies development tasks of creating complex entity relationship models.

There is a newer version: 6.5.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.08.18 at 01:46:14 PM IST 
//
package io.github.jeddict.jpa.spec;

import io.github.jeddict.source.AnnotationExplorer;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;

/**
 *
 *
 * @Target({}) @Retention(RUNTIME) public @interface NamedAttributeNode { String
 * value(); String subgraph() default ""; String keySubgraph() default ""; }
 *
 *
 *
 * 

* Java class for named-attribute-node complex type. * *

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

 * <complexType name="named-attribute-node">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="subgraph" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="key-subgraph" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "named-attribute-node") public class NamedAttributeNode { @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "subgraph") protected String subgraph; @XmlAttribute(name = "key-subgraph") protected String keySubgraph; public NamedAttributeNode(String name) { this.name = name; } public NamedAttributeNode(String name, String subgraph) { this.name = name; this.subgraph = subgraph; } public NamedAttributeNode() { } public static NamedAttributeNode load(AnnotationExplorer annotation) { NamedAttributeNode namedAttributeNode = new NamedAttributeNode(); annotation.getString("value").ifPresent(namedAttributeNode::setName); annotation.getString("subgraph").ifPresent(namedAttributeNode::setSubgraph); annotation.getString("keySubgraph").ifPresent(namedAttributeNode::setKeySubgraph); return namedAttributeNode; } @Override public int hashCode() { int hash = 3; hash = 19 * hash + (this.name != null ? this.name.hashCode() : 0); return hash; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final NamedAttributeNode other = (NamedAttributeNode) obj; if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) { return false; } return true; } /** * 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 subgraph property. * * @return possible object is {@link String } * */ public String getSubgraph() { return subgraph; } /** * Sets the value of the subgraph property. * * @param value allowed object is {@link String } * */ public void setSubgraph(String value) { this.subgraph = value; } /** * Gets the value of the keySubgraph property. * * @return possible object is {@link String } * */ public String getKeySubgraph() { return keySubgraph; } /** * Sets the value of the keySubgraph property. * * @param value allowed object is {@link String } * */ public void setKeySubgraph(String value) { this.keySubgraph = value; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy