public abstract class AbstractFeature extends Object implements IFeature
| Modifier and Type | Field and Description |
|---|---|
protected GF_FeatureType |
featureType
L'unique featureType auquel appartient cet objet.
|
protected IGeometry |
geom |
protected int |
id |
protected static Logger |
logger
Logger.
|
protected IPopulation<? extends IFeature> |
population
L'unique population à laquelle appartient cet objet.
|
protected ITopology |
topo |
| Constructor and Description |
|---|
AbstractFeature() |
AbstractFeature(IFeature feature)
Constructeur par défaut d'AbstractFeature Le nouveau feature n'appartient
pas a la création aux mêmes featureCollections que son parent ni a la même
population.
|
AbstractFeature(IGeometry geometry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllCorrespondants(Collection<IFeature> c)
Lien bidirectionnel n-m des éléments vers eux même.
|
void |
addCorrespondant(IFeature O)
Lien bidirectionnel n-m des éléments vers eux même.
|
static Class<?> |
class2PrimitiveClass(Class<?> classe)
Renvoie la classe primitive correspondant à la classe donnée, null si le
paramètre ne correspond pas à un type primitif ou s'il n'est pas géré.
|
void |
clearCorrespondants()
Lien bidirectionnel n-m des éléments vers eux-mêmes.
|
static IFeature |
createTypedFeature(FeatureType featureType)
Creation d'un feature du type donné en paramètre, par exemple Route.
|
boolean |
equals(Object obj) |
Object |
getAttribute(GF_AttributeType attribute)
Methode reflexive pour recupérer la valeur d'un attribut donné en paramètre
|
Object |
getAttribute(String nomAttribut)
Methode pour recupérer la valeur d'un attribut dont le nom est donné en
paramètre
|
IFeature |
getCorrespondant(int i)
Lien bidirectionnel n-m des éléments vers eux-mêmes.
|
List<IFeature> |
getCorrespondants()
Lien bidirectionnel n-m des éléments vers eux-mêmes.
|
List<IFeature> |
getCorrespondants(IFeatureCollection<? extends IFeature> pop)
Renvoie les correspondants appartenant a la FT_FeatureCollection passee en
parametre.
|
String |
getCorrespondantsAsString() |
IFeatureCollection<IFeature> |
getFeatureCollection(int i)
Renvoie la i-eme FT_FeatureCollection a laquelle appartient this.
|
List<IFeatureCollection<IFeature>> |
getFeatureCollections()
Renvoie toutes les FT_FeatureCollection auquelles appartient this.
|
GF_FeatureType |
getFeatureType()
Utilitaire pour retrouver le type d'un objet (passe par la population)
|
IGeometry |
getGeom()
Renvoie une geometrie.
|
int |
getId()
Renvoie l'identifiant.
|
static Logger |
getLogger() |
IPopulation<? extends IFeature> |
getPopulation() |
List<? extends IFeature> |
getRelatedFeatures(GF_FeatureType ftt,
GF_AssociationRole role)
Methode reflexive pour recupérer les features en relation par
l'intermédiaire du role donné en paramètre.
|
List<? extends IFeature> |
getRelatedFeatures(String nomFeatureType,
String nomRole)
Methode pour recupérer les features en relation par l'intermédiaire du role
donné en paramètre.
|
Representation |
getRepresentation()
Renvoie la représentation liée à l'objet - Renvoie null si non définie
|
int |
getSizeCorrespondants() |
ITopology |
getTopo()
Renvoie la topologie de l'objet.
|
boolean |
hasGeom()
Renvoie true si une geometrie existe, false sinon.
|
boolean |
hasTopo()
Renvoie true si une topologie existe, false sinon.
|
boolean |
intersecte(IEnvelope env)
Renvoie vrai si l'objet intersecte l'envelope, faux sinon
|
boolean |
isDeleted()
Marqueur de suppression d'un objet (utilisé par exemple en généralisation).
|
void |
removeCorrespondant(IFeature O)
Lien bidirectionnel n-m des éléments vers eux-mêmes.
|
void |
setAttribute(GF_AttributeType attribute,
Object valeur)
Méthode reflexive pour affecter à un feature une valeur d'attribut pour
l'attributeType donné en paramètre.
|
void |
setCorrespondants(List<IFeature> L)
Lien bidirectionnel n-m des éléments vers eux-mêmes.
|
void |
setDeleted(boolean estSupprime)
Affecte le marqueur de suppression d'un objet (utilisé par exemple en
généralisation).
|
void |
setFeatureType(GF_FeatureType featureType)
Affecte le feature type de l'objet
|
void |
setGeom(IGeometry g)
Affecte une geometrie et met à jour les éventuels index concernés.
|
void |
setId(int Id)
Affecte un identifiant (ne pas utiliser si l'objet est persistant car cela
est automatique)
|
void |
setPopulation(IPopulation<? extends IFeature> population) |
void |
setRepresentation(Representation rep)
Affecte une représentation à un objet
|
void |
setTopo(ITopology t)
Affecte la topologie de l'objet.
|
String |
toString() |
protected static final Logger logger
protected int id
protected IGeometry geom
protected ITopology topo
protected IPopulation<? extends IFeature> population
protected GF_FeatureType featureType
public AbstractFeature()
public AbstractFeature(IGeometry geometry)
public AbstractFeature(IFeature feature)
feature - public static final Logger getLogger()
public int getId()
IFeaturepublic void setId(int Id)
IFeaturepublic IGeometry getGeom()
IFeaturepublic void setGeom(IGeometry g)
IFeaturepublic boolean hasGeom()
IFeaturepublic ITopology getTopo()
IFeaturepublic void setTopo(ITopology t)
IFeaturepublic boolean hasTopo()
IFeaturepublic List<IFeatureCollection<IFeature>> getFeatureCollections()
IFeaturegetFeatureCollections in interface IFeaturepublic IFeatureCollection<IFeature> getFeatureCollection(int i)
IFeaturegetFeatureCollection in interface IFeaturepublic List<IFeature> getCorrespondants()
IFeaturegetCorrespondants in interface IFeaturepublic String getCorrespondantsAsString()
public int getSizeCorrespondants()
public void setCorrespondants(List<IFeature> L)
IFeaturesetCorrespondants in interface IFeaturepublic IFeature getCorrespondant(int i)
IFeaturegetCorrespondant in interface IFeaturepublic void addCorrespondant(IFeature O)
IFeatureaddCorrespondant in interface IFeaturepublic void removeCorrespondant(IFeature O)
IFeatureremoveCorrespondant in interface IFeaturepublic void clearCorrespondants()
IFeatureclearCorrespondants in interface IFeaturepublic void addAllCorrespondants(Collection<IFeature> c)
IFeatureaddAllCorrespondants in interface IFeaturepublic List<IFeature> getCorrespondants(IFeatureCollection<? extends IFeature> pop)
IFeaturegetCorrespondants in interface IFeaturepublic static IFeature createTypedFeature(FeatureType featureType)
featureType - le feature type de l'objet à créerpublic IPopulation<? extends IFeature> getPopulation()
getPopulation in interface IFeaturepublic void setPopulation(IPopulation<? extends IFeature> population)
setPopulation in interface IFeaturepopulation - the population to setpublic void setFeatureType(GF_FeatureType featureType)
IFeaturesetFeatureType in interface IFeaturefeatureType - le feature type de l'objetpublic GF_FeatureType getFeatureType()
IFeaturegetFeatureType in interface IFeaturepublic Object getAttribute(GF_AttributeType attribute)
IFeaturegetAttribute in interface IFeaturepublic void setAttribute(GF_AttributeType attribute, Object valeur)
IFeaturesetAttribute in interface IFeaturepublic List<? extends IFeature> getRelatedFeatures(GF_FeatureType ftt, GF_AssociationRole role)
IFeaturegetRelatedFeatures in interface IFeatureftt - le type d'objets dont on veut la listerole - le rôle que l'on souhaite explorerpublic Object getAttribute(String nomAttribut)
IFeaturegetAttribute in interface IFeaturepublic List<? extends IFeature> getRelatedFeatures(String nomFeatureType, String nomRole)
IFeaturegetRelatedFeatures in interface IFeaturepublic Representation getRepresentation()
IFeaturegetRepresentation in interface IFeaturepublic void setRepresentation(Representation rep)
IFeaturesetRepresentation in interface IFeaturerep - représentation à affecter au FT_Featurepublic boolean isDeleted()
IFeaturepublic void setDeleted(boolean estSupprime)
IFeaturesetDeleted in interface IFeatureestSupprime - vrai si l'objet a été supprimé, faux sinonpublic boolean intersecte(IEnvelope env)
IFeatureintersecte in interface IFeatureenv - envelopepublic String toString()
public static Class<?> class2PrimitiveClass(Class<?> classe)
classe - classeCopyright © 2016 Laboratoire COGIT, IGN. All rights reserved.