org.jboss.shrinkwrap.descriptor.api.persistence20.Properties 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.persistence20;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.persistence20.Property;
import org.jboss.shrinkwrap.descriptor.api.persistence.*;
import org.jboss.shrinkwrap.descriptor.api.persistence.PersistencePropertiesCommType;
import org.jboss.shrinkwrap.descriptor.api.persistence20.Property;/**
* This interface defines the contract for the properties
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface Properties extends Child,
PersistencePropertiesCommType,
Property>> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: Properties ElementName: persistence:property ElementType : property
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new property
element will be created and returned.
* Otherwise, the first existing property
element will be returned.
* @return the instance defined for the element property
*/
public Property> getOrCreateProperty();
/**
* Creates a new property
element
* @return the new created instance of Property>
*/
public Property> createProperty();
/**
* Returns all property
elements
* @return list of property
*/
public List>> getAllProperty();
/**
* Removes all property
elements
* @return the current instance of Property>
*/
public Properties removeAllProperty();
}