|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IContainerDefinitionField
A definition of the IField objects in an IContainer object.
Every container has a definition. The definition itself is a field of the
container.
There are 2 forms of definitions; dynamic and static. Static definitions have a fixed structure that does not change during runtime (discounting the initial construction and addition of fields), they are immutable. Dynamic definitions have a variable structure. This definition distinction arises to support static and dynamic containers.
Dynamic containers (e.g. Record) have a definition per instance, held
in a field. These containers have an indeterminate field population, thus
each dynamic container instance requires its own definition to express the
field population of the container.
Static container types have a set field population, defined by a static definition. Thus static containers have a definition per container type not instance.
The definition also serves as the wire identity registry for the fields defined in the container.
| Method Summary | |
|---|---|
void |
add(IField field)
Add the field to the definition. |
boolean |
containsDefinition(int wireCode)
Determines if the container definition contains a DescriptorField
for a field identified by its integer wire identity. |
IField |
createField(int wireCode)
Create the field identified by its wire code. |
byte |
getApplication(int wireCode)
Get the application code for the field identified by its wire identity |
String |
getIdentityForWireCode(int wireCode)
Get the IWF wire identity code |
short |
getPermission(int wireCode)
Get the permission code for the field identified by its wire identity |
int |
getWireCodeForIdentity(String identity)
Get the IWF wire identity code for the IField identified by the
string |
boolean |
isDynamic()
Identify if the definition is dynamic (i.e. |
void |
populate(IContainer container)
Create the fields in the container from this definition. |
void |
remove(IField field)
Remove the DescriptorField with the same identity as the field
argument from this definition. |
void |
resetChanges()
Reset all changes. |
| Methods inherited from interface fulmine.model.field.IField |
|---|
addedToContainer, clone, getApplication, getContainer, getPermission, getValue, getValueAsString, removedFromContainer, setValueFromString |
| Methods inherited from interface fulmine.protocol.wire.IWireState |
|---|
readState, writeState |
| Methods inherited from interface fulmine.event.IEventSource |
|---|
addEvent, addListener, getEventSourceGroupId, getListeners, removeListener, removeListeners |
| Methods inherited from interface fulmine.IDescriptor |
|---|
toDetailedString, toIdentityString |
| Methods inherited from interface fulmine.ILifeCycle |
|---|
isActive, start |
| Methods inherited from interface fulmine.IDestroyable |
|---|
destroy |
| Methods inherited from interface fulmine.IAddressable |
|---|
getAddress, getDomain, getIdentity, getType |
| Methods inherited from interface fulmine.event.IEvent |
|---|
getDrivingFrame, getFrame, getSource, getTriggerEvent, setTriggerEvent |
| Methods inherited from interface fulmine.IDescriptor |
|---|
toDetailedString, toIdentityString |
| Methods inherited from interface fulmine.IAddressable |
|---|
getAddress, getDomain, getIdentity, getType |
| Methods inherited from interface fulmine.protocol.wire.IWireIdentityRegistry |
|---|
getIdentityFor, getWireIdentityFor |
| Method Detail |
|---|
boolean isDynamic()
true if the definition is dynamicString getIdentityForWireCode(int wireCode)
wireCode - the integer value of the IWF wire identity
IField declared for
this IWF wire identity
IllegalArgumentException - if no field is foundint getWireCodeForIdentity(String identity)
IField identified by the
string
identity - the string identity of the IField to find
IField
IllegalArgumentException - if no field is foundvoid populate(IContainer container)
container - the container to populatevoid add(IField field)
DescriptorField is constructed to represent the field. The
descriptor field is held in the definition.
field - the field to represent with a DescriptorFieldvoid remove(IField field)
DescriptorField with the same identity as the field
argument from this definition.
field - the field representation to remove from the definitionvoid resetChanges()
boolean containsDefinition(int wireCode)
DescriptorField
for a field identified by its integer wire identity.
wireCode - the integer wire identity for the field
true if there is a DescriptorField for this
integer wire identityIField createField(int wireCode)
DescriptorField for the wire identity.
wireCode - the integer wire identity for the field
IField or null if there was no
DescriptorField for this integer wire identitycontainsDefinition(int)short getPermission(int wireCode)
wireCode - the integer wire identity for the field
IPermissionProfilebyte getApplication(int wireCode)
wireCode - the integer wire identity for the field
IPermissionProfile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||