Class BimQuery

java.lang.Object
nl.bimbase.bimworks.client.BimQuery

public class BimQuery extends Object
  • Field Details

    • ALL

      public static final BimQuery ALL
    • OBJECT_MAPPER

      public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
  • Constructor Details

    • BimQuery

      public BimQuery()
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • addType

      public BimQuery addType(String... types)
    • toJson

      public com.fasterxml.jackson.databind.node.ObjectNode toJson()
    • addProperty

      public BimQuery addProperty(String propertySetName, String propertyName, nl.bimbase.bimworks.common.client.Operator operator, com.fasterxml.jackson.databind.JsonNode value)
    • addProperty

      public BimQuery addProperty(String propertySetName, String propertyName, nl.bimbase.bimworks.common.client.Operator operator, String value)
    • addProperty

      public BimQuery addProperty(String propertySetName, String propertyName, nl.bimbase.bimworks.common.client.Operator operator, boolean value)
    • of

      public static BimQuery of(com.fasterxml.jackson.databind.node.ObjectNode jsonNode) throws UnsupportedBimQueryVersion, BimQueryValidationException
      Throws:
      UnsupportedBimQueryVersion
      BimQueryValidationException
    • addFeature

      public BimQuery addFeature(String feature)
    • addBuildingStorey

      public BimQuery addBuildingStorey(BuildingStoreyQuery buildingStorey)
    • addGrouping

      public BimQuery addGrouping(String group)
    • addBuildingStoreyQid

      public void addBuildingStoreyQid(nl.bimbase.bimworks.common.simplebim.Qid qid)
    • addModelInfo

      public void addModelInfo(String fieldName, String value)
    • addGuid

      public BimQuery addGuid(String guid)
    • addLayer

      public BimQuery addLayer(String layer)
    • addDiscipline

      public void addDiscipline(nl.bimbase.bimworks.common.actions.Discipline discipline)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addQid

      public BimQuery addQid(nl.bimbase.bimworks.common.simplebim.Qid qid)
    • addField

      public BimQuery addField(String fieldName, nl.bimbase.bimworks.common.client.Operator operator, com.fasterxml.jackson.databind.JsonNode value)
    • addTypeField

      public BimQuery addTypeField(String fieldName, nl.bimbase.bimworks.common.client.Operator operator, com.fasterxml.jackson.databind.JsonNode value)
    • addField

      public BimQuery addField(String fieldName, nl.bimbase.bimworks.common.client.Operator operator, String value)
    • addField

      public BimQuery addField(String fieldName)
    • addField

      public void addField(String fieldName, nl.bimbase.bimworks.common.client.Operator operator, double value)
    • addProperty

      public BimQuery addProperty(String propertySetName, String propertyName)
    • addCalculated

      public BimQuery addCalculated(CalculatedQuery calculatedQuery)
    • getDisciplines

      public Set<nl.bimbase.bimworks.common.actions.Discipline> getDisciplines()
    • addClassification

      public BimQuery addClassification(String classification)
    • addMaterialName

      public BimQuery addMaterialName(String materialName)
    • addQuantity

      public BimQuery addQuantity(QuantityValueQuery quantityValueQuery)
    • addPropertySet

      public void addPropertySet(String propertySetName)
    • addZone

      public BimQuery addZone(String zone)
    • addGroup

      public BimQuery addGroup(String group)
    • getBuildingStoreyQids

      public Set<nl.bimbase.bimworks.common.simplebim.Qid> getBuildingStoreyQids()
    • setBuildingStoreyQids

      public void setBuildingStoreyQids(Set<nl.bimbase.bimworks.common.simplebim.Qid> buildingStoreyQids)
    • getTypes

      public Set<String> getTypes()
    • getGuids

      public Set<String> getGuids()
    • getMaterialNames

      public Set<String> getMaterialNames()
    • getLayers

      public Set<String> getLayers()
    • getZones

      public Set<String> getZones()
    • getGroups

      public Set<String> getGroups()
    • getProperties

      public Map<String,Map<String,PropertyQuery>> getProperties()
    • getPropertiesQueries

      public Set<PropertyQuery> getPropertiesQueries()
    • getFields

      public Map<String,FieldQuery> getFields()
    • getTypeFields

      public Map<String,FieldQuery> getTypeFields()
    • getCalculated

      public Set<CalculatedQuery> getCalculated()
    • getClassifications

      public Set<String> getClassifications()
    • getBuildingStoreyNames

      public Set<String> getBuildingStoreyNames()
    • getQuantities

      public Set<QuantityValueQuery> getQuantities()
    • hasQids

      public boolean hasQids()
    • hasTypes

      public boolean hasTypes()
    • hasBuildingStoreyNames

      public boolean hasBuildingStoreyNames()
    • hasBuildingStoreyQids

      public boolean hasBuildingStoreyQids()
    • hasBuildingStoreyLevels

      public boolean hasBuildingStoreyLevels()
    • hasMaterialNames

      public boolean hasMaterialNames()
    • hasLayers

      public boolean hasLayers()
    • hasZones

      public boolean hasZones()
    • hasGroups

      public boolean hasGroups()
    • hasClassifications

      public boolean hasClassifications()
    • getQids

      public Set<nl.bimbase.bimworks.common.simplebim.Qid> getQids()
    • hasCalculated

      public boolean hasCalculated()
    • hasGuids

      public boolean hasGuids()
    • hasFields

      public boolean hasFields()
    • hasTypeFields

      public boolean hasTypeFields()
    • hasProperties

      public boolean hasProperties()
    • hasQuantities

      public boolean hasQuantities()
    • hasAggregations

      public boolean hasAggregations()
    • getGroupFeatures

      public Set<String> getGroupFeatures()
    • setGroupFeatures

      public void setGroupFeatures(Set<String> groupFeatures)
    • addBuildingStoreyLevel

      public BimQuery addBuildingStoreyLevel(BuildingStoreyLevelQuery buildingStoreyLevelQuery)
    • addBuildingStoreyLevel

      public BimQuery addBuildingStoreyLevel(int level, nl.bimbase.bimworks.common.client.Operator operator)
    • getBuildingStoreyLevels

      public Set<BuildingStoreyLevelQuery> getBuildingStoreyLevels()
    • getVersion

      public int getVersion()
    • setVersion

      public void setVersion(int version)
    • hasBuildingStoreys

      public boolean hasBuildingStoreys()
    • getBuildingStoreys

      public Set<BuildingStoreyQuery> getBuildingStoreys()
    • hasConditions

      public boolean hasConditions()
    • copy

      public BimQuery copy()
    • setCalculated

      public void setCalculated(Set<CalculatedQuery> calculated)
    • setTypes

      public void setTypes(Set<String> types)
    • setBuildingStoreyLevels

      public void setBuildingStoreyLevels(Set<BuildingStoreyLevelQuery> buildingStoreyLevels)
    • setBuildingStoreyNames

      public void setBuildingStoreyNames(Set<String> buildingStoreyNames)
    • setClassifications

      public void setClassifications(Set<String> classifications)
    • setDisciplines

      public void setDisciplines(Set<nl.bimbase.bimworks.common.actions.Discipline> disciplines)
    • setLayers

      public void setLayers(Set<String> layers)
    • setMaterialNames

      public void setMaterialNames(Set<String> materialNames)
    • setGuids

      public void setGuids(Set<String> guids)
    • setModelInfo

      public void setModelInfo(Map<String,String> modelInfo)
    • setBuildingStoreys

      public void setBuildingStoreys(Set<BuildingStoreyQuery> buildingStoreys)
    • setPropertySets

      public void setPropertySets(Set<String> propertySets)
    • setQids

      public void setQids(Set<nl.bimbase.bimworks.common.simplebim.Qid> qids)
    • setQuantities

      public void setQuantities(Set<QuantityValueQuery> quantities)
    • setFields

      public void setFields(Map<String,FieldQuery> fields)
    • setTypeFields

      public void setTypeFields(Map<String,FieldQuery> typeFields)
    • setZones

      public void setZones(Set<String> zones)
    • setProperties

      public void setProperties(Map<String,Map<String,PropertyQuery>> properties)
    • removeProperty

      public void removeProperty(PropertyQuery propertyQuery)
    • removeFields

      public void removeFields(FieldQuery fieldQuery)
    • removeTypeFields

      public void removeTypeFields(FieldQuery fieldQuery)
    • removeQuantity

      public void removeQuantity(QuantityValueQuery quantityQuery)
    • removeCalculated

      public void removeCalculated(CalculatedQuery calculatedQuery)
    • removeLayer

      public void removeLayer(String layer)
    • removeMaterial

      public void removeMaterial(String material)
    • isNegate

      public boolean isNegate()
    • setNegate

      public BimQuery setNegate(boolean negate)
    • getFeatures

      public Set<String> getFeatures()
    • setFeatures

      public void setFeatures(Set<String> features)