@CatalogedBy(value=InventoryArchetypes.class) public interface InventoryArchetype extends CatalogType
| Modifier and Type | Interface and Description |
|---|---|
static interface |
InventoryArchetype.Builder
A Builder for InventoryArchetypes.
|
| Modifier and Type | Method and Description |
|---|---|
static InventoryArchetype.Builder |
builder()
Creates a new
InventoryArchetype.Builder to build an InventoryArchetype. |
List<InventoryArchetype> |
getChildArchetypes()
Gets all child InventoryArchetypes.
|
Map<String,InventoryProperty<String,?>> |
getProperties()
Returns all properties defined on this Archetype.
|
default <T extends InventoryProperty<String,?>> |
getProperty(Class<T> type)
Returns the property with the Properties default key.
|
<T extends InventoryProperty<String,?>> |
getProperty(Class<T> type,
String key)
Returns the property
|
Optional<InventoryProperty<String,?>> |
getProperty(String key)
Returns the Property with given key.
|
getId, getNamestatic InventoryArchetype.Builder builder()
InventoryArchetype.Builder to build an InventoryArchetype.List<InventoryArchetype> getChildArchetypes()
Map<String,InventoryProperty<String,?>> getProperties()
Optional<InventoryProperty<String,?>> getProperty(String key)
key - The keydefault <T extends InventoryProperty<String,?>> Optional<T> getProperty(Class<T> type)
T - Expected Type of InventoryPropertytype - The type of Property to query for<T extends InventoryProperty<String,?>> Optional<T> getProperty(Class<T> type, String key)
T - Expected Type of InventoryPropertytype - The type of Property to query forkey - The Property key to search for