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()
EntityWithId
getId
in interface EntityWithId
public Value getValue()
public ModelInstance getModelInstance()
ModelInstanceAware
getModelInstance
in interface ModelInstanceAware
public void rebind(ModelInstance modelInstance)
ModelInstanceAware
rebind
in interface ModelInstanceAware
public 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)
UnmarshalCallback
preUnmarshal
in interface UnmarshalCallback
parent
- 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)
UnmarshalCallback
postUnmarshal
in interface UnmarshalCallback
parent
- instance of JAXB mapped class that will reference target.
null when target is root element.public boolean isPersistent()
Collectible
isPersistent
in interface Collectible
public Collection<Collectible> getReferences()
Collectible
getReferences
in interface Collectible
public void collect()
Collectible
collect
in interface Collectible
public Signal makeCopy(ModelInstance targetModelInstance)
targetModelInstance
- Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.