deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.datastore.sql.transaction.delete
Class FeatureNode

java.lang.Object
  extended by org.deegree.io.datastore.sql.transaction.delete.FeatureNode

 class FeatureNode
extends java.lang.Object

A node of a FeatureGraph. Represents one Feature instance which must or must not be deleted during a Delete operation.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
FeatureGraph

Constructor Summary
FeatureNode(FeatureGraph graph, FeatureId fid, java.util.Map<MappedFeaturePropertyType,java.util.List<FeatureId>> subFeatureProperties, java.util.Set<FeatureId> superFeatures)
          Creates a new FeatureNode instance that represents the feature with the given FeatureId.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
(package private)  FeatureId getFid()
          Returns the associated FeatureId.
(package private)  java.util.Set<FeatureId> getSubFeatureIds()
          Returns the ids of all subfeatures of the represented feature.
(package private)  java.util.List<FeatureId> getSubFeatureIds(MappedFeaturePropertyType pt)
          Returns the ids of all subfeatures stored in the specified property of the represented feature.
(package private)  java.util.List<FeatureNode> getSubFeatures()
          Returns all subfeatures of the represented feature.
(package private)  java.util.Set<FeatureId> getSuperFeatureIds()
          Returns the ids of all superfeatures of the represented feature (features that contain the represented feature as a subfeature).
 int hashCode()
           
(package private)  boolean isDeletable()
          Returns whether the represented feature may be deleted.
(package private)  void markAsUndeletable()
          Marks this feature as undeletable.
(package private)  java.lang.String toString(java.lang.String indent, java.util.Set<FeatureNode> printedNodes)
          Generates an indented string representation of this FeatureNode and all it's descendant subfeatures.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureNode

FeatureNode(FeatureGraph graph,
            FeatureId fid,
            java.util.Map<MappedFeaturePropertyType,java.util.List<FeatureId>> subFeatureProperties,
            java.util.Set<FeatureId> superFeatures)
Creates a new FeatureNode instance that represents the feature with the given FeatureId.

Parameters:
graph - FeatureGraph that the node belongs to
fid - id of the represented feature
subFeatureProperties - complex property types of the feature and the ids of the subfeatures that they contain
superFeatures - ids of all features that contain the represented feature as a subfeature
Method Detail

getFid

FeatureId getFid()
Returns the associated FeatureId.

Returns:
the associated FeatureId

getSubFeatureIds

java.util.Set<FeatureId> getSubFeatureIds()
Returns the ids of all subfeatures of the represented feature.

Returns:
the ids of all subfeatures of the represented feature

getSubFeatureIds

java.util.List<FeatureId> getSubFeatureIds(MappedFeaturePropertyType pt)
Returns the ids of all subfeatures stored in the specified property of the represented feature.

Parameters:
pt - property type
Returns:
the ids of all subfeatures of the represented feature

getSubFeatures

java.util.List<FeatureNode> getSubFeatures()
Returns all subfeatures of the represented feature.

Returns:
all subfeatures of the represented feature

getSuperFeatureIds

java.util.Set<FeatureId> getSuperFeatureIds()
Returns the ids of all superfeatures of the represented feature (features that contain the represented feature as a subfeature).

Returns:
the ids of all superfeatures of the represented feature

isDeletable

boolean isDeletable()
Returns whether the represented feature may be deleted.

Returns:
true, if the represented feature may be deleted, otherwise false

markAsUndeletable

void markAsUndeletable()
Marks this feature as undeletable. This is also applied to all it's descendant subfeatures.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

java.lang.String toString(java.lang.String indent,
                          java.util.Set<FeatureNode> printedNodes)
Generates an indented string representation of this FeatureNode and all it's descendant subfeatures.

Parameters:
indent - current indentation (string consisting of spaces)
printedNodes - FeatureNodes that have all ready been encountered (to avoid endless recursion)
Returns:
an indented string representation

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org