org.apache.olingo.odata2.api.edm.provider.AssociationEnd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-v2-lib Show documentation
Show all versions of odata-v2-lib Show documentation
Repackaged OData V2 Olingo Library
/*******************************************************************************
* 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.olingo.odata2.api.edm.provider;
import java.util.List;
import org.apache.olingo.odata2.api.edm.EdmMultiplicity;
import org.apache.olingo.odata2.api.edm.FullQualifiedName;
/**
* Objects of this class represent an association end
*
*/
public class AssociationEnd {
private FullQualifiedName type;
private String role;
private EdmMultiplicity multiplicity;
private OnDelete onDelete;
private Documentation documentation;
private List annotationAttributes;
private List annotationElements;
/**
* @return {@link FullQualifiedName} full qualified name (namespace and name)
*/
public FullQualifiedName getType() {
return type;
}
/**
* @return String role
*/
public String getRole() {
return role;
}
/**
* @return {@link EdmMultiplicity} multiplicity of this end
*/
public EdmMultiplicity getMultiplicity() {
return multiplicity;
}
/**
* @return {@link OnDelete} on delete
*/
public OnDelete getOnDelete() {
return onDelete;
}
/**
* @return {@link Documentation} documentation
*/
public Documentation getDocumentation() {
return documentation;
}
/**
* @return collection of {@link AnnotationAttribute} annotation attributes
*/
public List getAnnotationAttributes() {
return annotationAttributes;
}
/**
* @return collection of {@link AnnotationElement} annotation elements
*/
public List getAnnotationElements() {
return annotationElements;
}
/**
* Sets the {@link FullQualifiedName} for this {@link AssociationEnd}
* @param type
* @return {@link AssociationEnd} for method chaining
*/
public AssociationEnd setType(final FullQualifiedName type) {
this.type = type;
return this;
}
/**
* Sets the role for this {@link AssociationEnd}
* @param role
* @return {@link AssociationEnd} for method chaining
*/
public AssociationEnd setRole(final String role) {
this.role = role;
return this;
}
/**
* Sets the {@link EdmMultiplicity} for this {@link AssociationEnd}
* @param multiplicity
* @return {@link AssociationEnd} for method chaining
*/
public AssociationEnd setMultiplicity(final EdmMultiplicity multiplicity) {
this.multiplicity = multiplicity;
return this;
}
/**
* Sets {@link OnDelete} for this {@link AssociationEnd}
* @param onDelete
* @return {@link AssociationEnd} for method chaining
*/
public AssociationEnd setOnDelete(final OnDelete onDelete) {
this.onDelete = onDelete;
return this;
}
/**
* Sets the {@link Documentation} for this {@link AssociationEnd}
* @param documentation
* @return {@link AssociationEnd} for method chaining
*/
public AssociationEnd setDocumentation(final Documentation documentation) {
this.documentation = documentation;
return this;
}
/**
* Sets the collection of {@link AnnotationAttribute} for this {@link AssociationEnd}
* @param annotationAttributes
* @return {@link AssociationEnd} for method chaining
*/
public AssociationEnd setAnnotationAttributes(final List annotationAttributes) {
this.annotationAttributes = annotationAttributes;
return this;
}
/**
* Sets the collection of {@link AnnotationElement} for this {@link AssociationEnd}
* @param annotationElements
* @return {@link AssociationEnd} for method chaining
*/
public AssociationEnd setAnnotationElements(final List annotationElements) {
this.annotationElements = annotationElements;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy