public abstract class AssetPropertyIteratorBase extends AssetPropertyBase
| Modifier and Type | Field and Description |
|---|---|
protected AssetPagingIterator |
pagingIterator |
parentAsset| Modifier | Constructor and Description |
|---|---|
protected |
AssetPropertyIteratorBase(AssetDescriptor parentAsset,
AssetPropertyIteratorBase template)
Copy/clone constructor sets up details of the parent asset from the template
|
protected |
AssetPropertyIteratorBase(AssetDescriptor parentAsset,
int totalElementCount,
int maxCacheSize)
Typical Constructor creates an iterator with the supplied list of comments.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract AssetPropertyBase |
cloneElement(AssetDescriptor parentAsset,
AssetPropertyBase template)
Method implemented by a subclass that ensures the cloning process is a deep clone.
|
protected abstract List<AssetPropertyBase> |
getCachedList(int cacheStartPointer,
int maximumSize)
Method implemented by subclass to retrieve the next cached list of elements.
|
int |
getElementCount()
Return the number of elements in the list.
|
equals, getParentAsset, getParentAssetName, getParentAssetTypeNamehashCode, toStringprotected AssetPagingIterator pagingIterator
protected AssetPropertyIteratorBase(AssetDescriptor parentAsset, int totalElementCount, int maxCacheSize)
parentAsset - descriptor of parent assettotalElementCount - the total number of elements to process. A negative value is converted to 0.maxCacheSize - maximum number of elements that should be retrieved from the property server and
cached in the element list at any one time. If a number less than one is supplied, 1 is used.protected AssetPropertyIteratorBase(AssetDescriptor parentAsset, AssetPropertyIteratorBase template)
parentAsset - descriptor of asset that his property relates to.template - AssetPropertyBaseImpl to copypublic int getElementCount()
protected abstract AssetPropertyBase cloneElement(AssetDescriptor parentAsset, AssetPropertyBase template)
parentAsset - descriptor of parent assettemplate - object to cloneprotected abstract List<AssetPropertyBase> getCachedList(int cacheStartPointer, int maximumSize) throws PropertyServerException
cacheStartPointer - where to start the cache.maximumSize - maximum number of elements in the cache.PropertyServerException - there is a problem retrieving elements from the property (metadata) server.Copyright © 2018–2020 ODPi. All rights reserved.