ModelHolder
Contents
[
Hide
]
Inheritance: java.lang.Object
public class ModelHolder
Class for holding and extracting different models
Constructors
Constructor | Description |
---|---|
ModelHolder() | Initializes a new instance of the ModelHolder class. |
Methods
Method | Description |
---|---|
Extracts a model with specified type | |
addOrRewrite(Object contextModel) | Adds or rewrites specified model |
equals(Object arg0) | |
getClass() | |
getRewritedTypes() | List of the rewrited types |
hashCode() | |
isAllExtracted() | Checks if all types that were extracted after StartExtraction(), are not null |
notify() | |
notifyAll() | |
startExtraction(Object algorithm) | Starts an extraction. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
ModelHolder()
public ModelHolder()
Initializes a new instance of the ModelHolder class.
extract(Class clazz)
public T <T>extract(Class clazz)
Extracts a model with specified type
Parameters:
Parameter | Type | Description |
---|---|---|
clazz | java.lang.Class |
Returns: T - Extracted model or null, if can’ extract
T : Type of a model
addOrRewrite(Object contextModel)
public final void addOrRewrite(Object contextModel)
Adds or rewrites specified model
Parameters:
Parameter | Type | Description |
---|---|---|
contextModel | java.lang.Object | A model |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
getRewritedTypes()
public final System.Collections.Generic.List<System.Type> getRewritedTypes()
List of the rewrited types
Returns: List
hashCode()
public native int hashCode()
Returns: int
isAllExtracted()
public final boolean isAllExtracted()
Checks if all types that were extracted after StartExtraction(), are not null
Returns: boolean - True if all types that were extracted after StartExtraction(), are not null
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
startExtraction(Object algorithm)
public final void startExtraction(Object algorithm)
Starts an extraction. Need to call before Extract
Parameters:
Parameter | Type | Description |
---|---|---|
algorithm | java.lang.Object |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |