org.jboss.shrinkwrap.descriptor.api.orm10.EmbeddedId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Client View of the ShrinkWrap Descriptors Project
The newest version!
package org.jboss.shrinkwrap.descriptor.api.orm10;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.orm10.AttributeOverride;
import org.jboss.shrinkwrap.descriptor.api.orm.*;
import org.jboss.shrinkwrap.descriptor.api.orm.OrmEmbeddedIdCommType;
import org.jboss.shrinkwrap.descriptor.api.orm10.AttributeOverride;/**
* This interface defines the contract for the embedded-id
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface EmbeddedId extends Child,
OrmEmbeddedIdCommType,
AttributeOverride>> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: EmbeddedId ElementName: orm:attribute-override ElementType : attribute-override
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new attribute-override
element will be created and returned.
* Otherwise, the first existing attribute-override
element will be returned.
* @return the instance defined for the element attribute-override
*/
public AttributeOverride> getOrCreateAttributeOverride();
/**
* Creates a new attribute-override
element
* @return the new created instance of AttributeOverride>
*/
public AttributeOverride> createAttributeOverride();
/**
* Returns all attribute-override
elements
* @return list of attribute-override
*/
public List>> getAllAttributeOverride();
/**
* Removes all attribute-override
elements
* @return the current instance of AttributeOverride>
*/
public EmbeddedId removeAllAttributeOverride();
// --------------------------------------------------------------------------------------------------------||
// ClassName: EmbeddedId ElementName: xsd:string ElementType : name
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the name
attribute
* @param name the value for the attribute name
* @return the current instance of EmbeddedId
*/
public EmbeddedId name(String name);
/**
* Returns the name
attribute
* @return the value defined for the attribute name
*/
public String getName();
/**
* Removes the name
attribute
* @return the current instance of EmbeddedId
*/
public EmbeddedId removeName();
}