Package hec.model
Class AbstractConditionalBlockRef
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.AbstractConditionalBlockRef
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,Modifiable
- See Also:
-
Field Summary
FieldsFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionabstract ConditionalBlockintgetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.getName()get the NameType's namebooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.toString()voidupdate(Observable o, Object arg) This is a callback method that gets called when any object that this reference is listening too is changed.Methods inherited from class hec.lang.NamedType
addModifiableListener, clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
_conditionalBlock
-
m_conditionalBlockId
protected int m_conditionalBlockId
-
-
Constructor Details
-
AbstractConditionalBlockRef
public AbstractConditionalBlockRef() -
AbstractConditionalBlockRef
- Parameters:
cb-
-
-
Method Details
-
getConditionalBlockId
public int getConditionalBlockId() -
getName
Description copied from class:NamedTypeget the NameType's name -
toString
-
update
This is a callback method that gets called when any object that this reference is listening too is changed. -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classNamedType- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classNamedType- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
getConditionalBlock
-