public class InMemoryItem extends Object implements Item
| Constructor and Description |
|---|
InMemoryItem() |
| Modifier and Type | Method and Description |
|---|---|
List<About> |
getAbout()
Most of the implementations would return an empty list.
|
Date |
getDatestamp()
Creation, modification or deletion date.
|
String |
getIdentifier()
Returns the OAI-PMH unique identifier.
|
Metadata |
getMetadata()
Metadata associated to the OAI-PMH Record.
|
List<Set> |
getSets()
Exposes the list of sets (using the set_spec) that contains the item (OAI-PMH records).
|
boolean |
isDeleted()
Checks if the item is deleted or not.
|
static InMemoryItem |
item() |
static InMemoryItem |
randomItem() |
InMemoryItem |
with(String name,
Object value) |
InMemoryItem |
withDefaults() |
InMemoryItem |
withIdentifier(String identifier) |
InMemoryItem |
withSet(String name) |
public static InMemoryItem item()
public static InMemoryItem randomItem()
public InMemoryItem with(String name, Object value)
public InMemoryItem withSet(String name)
public List<About> getAbout()
ItemgetAbout in interface Itempublic Metadata getMetadata()
ItemgetMetadata in interface Itempublic String getIdentifier()
ItemIdentifiergetIdentifier in interface ItemIdentifierpublic Date getDatestamp()
ItemIdentifiergetDatestamp in interface ItemIdentifierpublic List<Set> getSets()
ItemIdentifiergetSets in interface ItemIdentifierpublic boolean isDeleted()
ItemIdentifierisDeleted in interface ItemIdentifierpublic InMemoryItem withDefaults()
public InMemoryItem withIdentifier(String identifier)
Copyright © 2017 DuraSpace. All Rights Reserved.