|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InfoStructuresFactory
This interface defines the methods every real factory implementation has to provide.
Field Summary | |
---|---|
static int |
ATTRIBUTE_INFO
Constant to be used for instantiating an Attribute Info |
static int |
FIELD_INFO
Constant to be used for instantiating a Field Info |
static int |
METHOD_INFO
Constant to be used for instantiating an Method Info |
Method Summary | |
---|---|
InfoStructure |
getInstance(int type)
Returns a new InfoStructure instance according to the type specified as input
parameter. |
InfoStructure |
getInstance(int type,
java.io.DataInputStream dis,
Dna dna)
Returns a new InfoStructure instance according to the type specified as input
parameter. |
Field Detail |
---|
static final int ATTRIBUTE_INFO
static final int FIELD_INFO
static final int METHOD_INFO
Method Detail |
---|
InfoStructure getInstance(int type) throws UnknownInfoStructureException
InfoStructure
instance according to the type specified as input
parameter. This type has to be one of the valid types defined by this interface's public
constants. After this method has been invoked, please remember to initialize the obtained
instance by calling its fromStream
method, and by setting the reference to the
Dna
instance this INFO_structure will belong to.
type
- The type of the required instance
InfoStructure
implementation of the given type
type
DnaDeserializationException
UnknownInfoStructureException
InfoStructure getInstance(int type, java.io.DataInputStream dis, Dna dna) throws UnknownInfoStructureException, DnaDeserializationException
InfoStructure
instance according to the type specified as input
parameter. This type has to be one of the valid types defined by this interface's public
constants.
type
- The type of the required instancedis
- The input stream for reading the info structure indna
- The current Dna
instance
InfoStructure
instance
UnknownInfoStructureException
- The provided type is not valid
DnaDeserializationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |