Class DefaultFeatureRules

java.lang.Object
java.util.AbstractCollection<org.gvsig.fmap.dal.feature.FeatureRule>
java.util.AbstractList<org.gvsig.fmap.dal.feature.FeatureRule>
java.util.ArrayList<org.gvsig.fmap.dal.feature.FeatureRule>
org.gvsig.fmap.dal.feature.impl.DefaultFeatureRules
All Implemented Interfaces:
Serializable, Cloneable, Iterable<org.gvsig.fmap.dal.feature.FeatureRule>, Collection<org.gvsig.fmap.dal.feature.FeatureRule>, List<org.gvsig.fmap.dal.feature.FeatureRule>, RandomAccess, SequencedCollection<org.gvsig.fmap.dal.feature.FeatureRule>, org.gvsig.fmap.dal.feature.FeatureRules, org.gvsig.json.SupportFromJson, org.gvsig.json.SupportJson, org.gvsig.json.SupportToJson, org.gvsig.tools.persistence.Persistent

public class DefaultFeatureRules extends ArrayList<org.gvsig.fmap.dal.feature.FeatureRule> implements org.gvsig.fmap.dal.feature.FeatureRules, org.gvsig.json.SupportJson
See Also:
  • Constructor Details

    • DefaultFeatureRules

      public DefaultFeatureRules()
  • Method Details

    • add

      public boolean add(org.gvsig.fmap.dal.feature.FeatureRule rule)
      Specified by:
      add in interface Collection<org.gvsig.fmap.dal.feature.FeatureRule>
      Specified by:
      add in interface org.gvsig.fmap.dal.feature.FeatureRules
      Specified by:
      add in interface List<org.gvsig.fmap.dal.feature.FeatureRule>
      Overrides:
      add in class ArrayList<org.gvsig.fmap.dal.feature.FeatureRule>
    • add

      public boolean add(String name, String description, boolean checkAtUpdate, boolean checkAtFinishEdition, org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      add in interface org.gvsig.fmap.dal.feature.FeatureRules
    • getRule

      public org.gvsig.fmap.dal.feature.FeatureRule getRule(int index)
      Specified by:
      getRule in interface org.gvsig.fmap.dal.feature.FeatureRules
    • remove

      public boolean remove(org.gvsig.fmap.dal.feature.FeatureRule rule)
      Specified by:
      remove in interface org.gvsig.fmap.dal.feature.FeatureRules
    • getCopy

      public org.gvsig.fmap.dal.feature.FeatureRules getCopy()
      Specified by:
      getCopy in interface org.gvsig.fmap.dal.feature.FeatureRules
    • validate

      public void validate(org.gvsig.fmap.dal.feature.Feature feature, int mode) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • validate

      public void validate(org.gvsig.fmap.dal.feature.EditableFeature feature, int check) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • fromJson

      public void fromJson(javax.json.JsonObject json)
      Specified by:
      fromJson in interface org.gvsig.json.SupportFromJson
    • toJson

      public javax.json.JsonObject toJson()
      Specified by:
      toJson in interface org.gvsig.json.SupportToJson
    • toJsonBuilder

      public org.gvsig.json.JsonObjectBuilder toJsonBuilder()
      Specified by:
      toJsonBuilder in interface org.gvsig.json.SupportToJson
    • selfRegister

      public static void selfRegister()