public class Signal extends Object implements XmlEntity, Collectible, ModelInstanceAware, EntityWithId
| Modifier | Constructor and Description |
|---|---|
protected |
Signal()
Creates new instance.
|
|
Signal(long id,
ModelInstance modelInstance,
Value value,
String sourceDescription)
Creates new instance.
|
|
Signal(ModelInstance modelInstance,
Value value,
String sourceDescription)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collect()
Removes itself from the process.
|
long |
getId()
Returns the id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
String |
getSourceDescription()
Gets the description of the signals source.
|
Value |
getValue()
Returns the value.
|
boolean |
isConsumed()
Returns true if consumed.
|
boolean |
isInserted()
Returns true if inserted.
|
boolean |
isPersistent()
Returns true if this object cannot be collected.
|
Signal |
makeCopy(ModelInstance targetModelInstance)
Returns deep copy.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
void |
preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked before unmarshalling into target.
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
void |
setConsumed(boolean consumed)
Sets consumed.
|
void |
setInserted(boolean inserted)
Sets inserted.
|
void |
setSourceDescription(String description) |
String |
toString() |
protected Signal()
public Signal(ModelInstance modelInstance, Value value, String sourceDescription)
modelInstance - value - sourceDescription - the description of the signals sourceNullPointerException - if modelInstance or value is nullpublic Signal(long id,
ModelInstance modelInstance,
Value value,
String sourceDescription)
id - modelInstance - value - sourceDescription - the description of the signals sourceNullPointerException - if modelInstance or value is nullpublic long getId()
EntityWithIdgetId in interface EntityWithIdpublic Value getValue()
public ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic void rebind(ModelInstance modelInstance)
ModelInstanceAwarerebind in interface ModelInstanceAwarepublic boolean isConsumed()
public void setConsumed(boolean consumed)
consumed - public boolean isInserted()
public void setInserted(boolean inserted)
inserted - public String getSourceDescription()
public void setSourceDescription(String description)
description - the description of the sourcegetSourceDescription()public void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpreUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpostUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will reference target.
null when target is root element.public boolean isPersistent()
CollectibleisPersistent in interface Collectiblepublic Collection<Collectible> getReferences()
CollectiblegetReferences in interface Collectiblepublic void collect()
Collectiblecollect in interface Collectiblepublic Signal makeCopy(ModelInstance targetModelInstance)
targetModelInstance - Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.