blob: 3515af273d878e97322229a36847c12d11e4011d [file] [log] [blame]
/**
* Represents details of a collection in a field/property in a class.
* @since 2.3
*/
public interface CollectionMetadata extends Metadata {
/**
* Method to set the name of the element type
*
* @param type Name of the element type
*/
CollectionMetadata setElementType(String type);
/**
* Accessor for the element type
*
* @return The element type
*/
String getElementType();
/**
* Method to set whether the element is embedded
*
* @param val Whether it is embedded
*/
CollectionMetadata setEmbeddedElement(boolean val);
/**
* Accessor for whether the element is embedded
*
* @return whether the element is embedded
*/
Boolean getEmbeddedElement();
/**
* Method to set whether the element is serialised
*
* @param val Whether it is serialised
*/
CollectionMetadata setSerializedElement(boolean val);
/**
* Accessor for whether the element is serialised
*
* @return whether the element is serialised
*/
Boolean getSerializedElement();
/**
* Method to set whether the element is dependent
*
* @param val Whether it is dependent
*/
CollectionMetadata setDependentElement(boolean val);
/**
* Accessor for whether the element is dependent
*
* @return whether the element is dependent
*/
Boolean getDependentElement();
}