public class Swizzler
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
REVISION  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
decRC(Storable storable)
Decrements the Reference Counter of the storable 
 | 
Storable | 
getStorable(java.lang.String id)  | 
void | 
incRC(Storable storable)
Increments the Reference Counter of the storable 
 | 
boolean | 
isReferrenced(Storable storable)  | 
boolean | 
isSwizzled(Storable storable)  | 
boolean | 
isSwizzled(java.lang.String id)  | 
java.util.Iterator<Storable> | 
iterator()
Return an iterator on the storable set 
 | 
void | 
registerStorable(Storable storable,
                java.util.Map<java.lang.String,java.lang.String> attributes)
Swizzler ID <==> Storable  
 | 
void | 
removeStorable(Storable storable)  | 
void | 
swizzle(java.util.Map<java.lang.String,java.lang.String> attributes)
Replace in the Map the storables by their ID 
 storable -> ID 
 | 
void | 
updateArrayOfReferences(Storable[] array,
                       Storable[] updatedArray)  | 
void | 
updateReferences(Storable storable,
                Storable updated)
Updates the references of a storable and its update 
 | 
public static final java.lang.String REVISION
public void registerStorable(Storable storable, java.util.Map<java.lang.String,java.lang.String> attributes)
public void removeStorable(Storable storable)
public void updateReferences(Storable storable, Storable updated) throws java.io.IOException
storable - the old referenced storableupdated - the updated storablejava.io.IOExceptionpublic void updateArrayOfReferences(Storable[] array, Storable[] updatedArray) throws java.io.IOException
java.io.IOExceptionpublic Storable getStorable(java.lang.String id)
public boolean isSwizzled(Storable storable)
public boolean isSwizzled(java.lang.String id)
public java.util.Iterator<Storable> iterator()
public void swizzle(java.util.Map<java.lang.String,java.lang.String> attributes)
public void incRC(Storable storable)
storable - the target storablepublic void decRC(Storable storable)
storable - the target storablepublic boolean isReferrenced(Storable storable)
Copyright © 2001-2018 Jalios SA. All Rights Reserved.