Message-ID: <1941143378.300962.1369100450012.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_300961_1040444636.1369100450011" ------=_Part_300961_1040444636.1369100450011 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
As you can see in the diagram, features, feature types and attri= bute types are just interfaces.
This means that you cannot instantiate them directly, but also that you = can provide your own specialized versions that wrap legacy objects you may = have in your own application.
You can create a Feature by hand with the following steps:
The following code snippet illustrates this process:=20
Of course, you won't usually be involved in feature creation (that's the= work of DataStores) but it's nice to know how to do it by hand, to have a = better understanding of how things work.
Features are usually accessed from DataStores in a streaming way. Should= you need to handle a set of Features in memory, have a look at the FeatureCollectio= n class, which is a specialized Set designed to hold features and provi= des a convenient FeatureIterator that doesn't require you to use casts when= calling the next() method.------=_Part_300961_1040444636.1369100450011--