Class PropertyTree

  • All Implemented Interfaces:
    java.io.Serializable

    @PublicApi
    public final class PropertyTree
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • PropertyTree

        public PropertyTree()
        Creates a new PropertyTree using a default PropertyIdProvider which uses UUID.randomUUID().
    • Method Detail

      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getProperties

        public com.google.common.collect.ImmutableList<Property> getProperties​(ValueType valueType)
      • countNames

        public int countNames​(java.lang.String name)
      • addProperty

        public Property addProperty​(java.lang.String name,
                                    Value value)
      • setProperty

        public Property setProperty​(java.lang.String path,
                                    Value value)
      • setProperty

        public Property setProperty​(java.lang.String name,
                                    int index,
                                    Value value)
      • setValues

        public void setValues​(java.lang.String path,
                              java.lang.Iterable<Value> values)
      • setValues

        public void setValues​(PropertyPath path,
                              java.lang.Iterable<Value> values)
      • removeProperty

        public void removeProperty​(java.lang.String path)
      • removeProperty

        public void removeProperty​(PropertyPath path)
      • removeProperties

        public void removeProperties​(java.lang.String name)
      • hasProperty

        public boolean hasProperty​(java.lang.String path)
      • hasProperty

        public boolean hasProperty​(PropertyPath path)
      • hasProperty

        public boolean hasProperty​(java.lang.String name,
                                   int index)
      • getProperty

        public Property getProperty​(java.lang.String name,
                                    int index)
      • getProperty

        public Property getProperty​(java.lang.String path)
      • getProperties

        public com.google.common.collect.ImmutableList<Property> getProperties​(java.lang.String name)
      • getProperties

        public java.lang.Iterable<Property> getProperties()
      • getValue

        public Value getValue​(java.lang.String name,
                              int index)
      • getValue

        public Value getValue​(java.lang.String path)
      • getValues

        public java.lang.Iterable<Value> getValues​(java.lang.String name)
      • getPropertySet

        public PropertySet getPropertySet​(java.lang.String path)
      • getTotalSize

        public int getTotalSize()
      • addSet

        public PropertySet addSet​(java.lang.String name)
      • setString

        public Property setString​(java.lang.String path,
                                  java.lang.String value)
      • setString

        public Property setString​(java.lang.String name,
                                  int index,
                                  java.lang.String value)
      • addString

        public Property addString​(java.lang.String name,
                                  java.lang.String value)
      • addStrings

        public Property[] addStrings​(java.lang.String name,
                                     java.lang.String... value)
      • addStrings

        public Property[] addStrings​(java.lang.String name,
                                     java.util.Collection<java.lang.String> values)
      • setXml

        public Property setXml​(java.lang.String path,
                               java.lang.String value)
      • setXml

        public Property setXml​(java.lang.String name,
                               int index,
                               java.lang.String value)
      • addXml

        public Property addXml​(java.lang.String name,
                               java.lang.String value)
      • addXmls

        public Property[] addXmls​(java.lang.String name,
                                  java.lang.String... value)
      • setBinaryReference

        public Property setBinaryReference​(java.lang.String name,
                                           int index,
                                           BinaryReference value)
      • addBinaryReferences

        public Property[] addBinaryReferences​(java.lang.String name,
                                              BinaryReference... value)
      • setReference

        public Property setReference​(java.lang.String path,
                                     Reference value)
      • setReference

        public Property setReference​(java.lang.String name,
                                     int index,
                                     Reference value)
      • addReference

        public Property addReference​(java.lang.String name,
                                     Reference value)
      • addReferences

        public Property[] addReferences​(java.lang.String name,
                                        Reference... value)
      • setLink

        public Property setLink​(java.lang.String path,
                                Link value)
      • setLink

        public Property setLink​(java.lang.String name,
                                int index,
                                Link value)
      • addLink

        public Property addLink​(java.lang.String name,
                                Link value)
      • addLinks

        public Property[] addLinks​(java.lang.String name,
                                   Link... value)
      • setBoolean

        public Property setBoolean​(java.lang.String path,
                                   java.lang.Boolean value)
      • setBoolean

        public Property setBoolean​(java.lang.String name,
                                   int index,
                                   java.lang.Boolean value)
      • addBoolean

        public Property addBoolean​(java.lang.String name,
                                   java.lang.Boolean value)
      • addBooleans

        public Property[] addBooleans​(java.lang.String name,
                                      java.lang.Boolean... value)
      • setLong

        public Property setLong​(java.lang.String path,
                                java.lang.Long value)
      • setLong

        public Property setLong​(java.lang.String name,
                                int index,
                                java.lang.Long value)
      • addLong

        public Property addLong​(java.lang.String name,
                                java.lang.Long value)
      • addLongs

        public Property[] addLongs​(java.lang.String name,
                                   java.lang.Long... value)
      • setDouble

        public Property setDouble​(java.lang.String path,
                                  java.lang.Double value)
      • setDouble

        public Property setDouble​(java.lang.String name,
                                  int index,
                                  java.lang.Double value)
      • addDouble

        public Property addDouble​(java.lang.String name,
                                  java.lang.Double value)
      • addDoubles

        public Property[] addDoubles​(java.lang.String name,
                                     java.lang.Double... value)
      • setGeoPoint

        public Property setGeoPoint​(java.lang.String path,
                                    GeoPoint value)
      • setGeoPoint

        public Property setGeoPoint​(java.lang.String name,
                                    int index,
                                    GeoPoint value)
      • addGeoPoint

        public Property addGeoPoint​(java.lang.String name,
                                    GeoPoint value)
      • addGeoPoints

        public Property[] addGeoPoints​(java.lang.String name,
                                       GeoPoint... value)
      • setLocalDate

        public Property setLocalDate​(java.lang.String path,
                                     java.time.LocalDate value)
      • setLocalDate

        public Property setLocalDate​(java.lang.String name,
                                     int index,
                                     java.time.LocalDate value)
      • addLocalDate

        public Property addLocalDate​(java.lang.String name,
                                     java.time.LocalDate value)
      • addLocalDates

        public Property[] addLocalDates​(java.lang.String name,
                                        java.time.LocalDate... value)
      • setLocalDateTime

        public Property setLocalDateTime​(PropertyPath path,
                                         java.time.LocalDateTime value)
      • setLocalDateTime

        public Property setLocalDateTime​(java.lang.String path,
                                         java.time.LocalDateTime value)
      • setLocalDateTime

        public Property setLocalDateTime​(java.lang.String name,
                                         int index,
                                         java.time.LocalDateTime value)
      • addLocalDateTime

        public Property addLocalDateTime​(java.lang.String name,
                                         java.time.LocalDateTime value)
      • addLocalDateTimes

        public Property[] addLocalDateTimes​(java.lang.String name,
                                            java.time.LocalDateTime... value)
      • setLocalTime

        public Property setLocalTime​(java.lang.String path,
                                     java.time.LocalTime value)
      • setLocalDateTime

        public Property setLocalDateTime​(java.lang.String name,
                                         int index,
                                         java.time.LocalTime value)
      • addLocalTime

        public Property addLocalTime​(java.lang.String name,
                                     java.time.LocalTime value)
      • addLocalTimes

        public Property[] addLocalTimes​(java.lang.String name,
                                        java.time.LocalTime... value)
      • setInstant

        public Property setInstant​(java.lang.String path,
                                   java.time.Instant value)
      • setInstant

        public Property setInstant​(java.lang.String name,
                                   int index,
                                   java.time.Instant value)
      • addInstant

        public Property addInstant​(java.lang.String name,
                                   java.time.Instant value)
      • addInstants

        public Property[] addInstants​(java.lang.String name,
                                      java.time.Instant... value)
      • getSet

        public PropertySet getSet​(java.lang.String name,
                                  int index)
      • getSet

        public PropertySet getSet​(java.lang.String path)
      • getSets

        public java.lang.Iterable<PropertySet> getSets​(java.lang.String name)
      • getString

        public java.lang.String getString​(java.lang.String name,
                                          int index)
      • getString

        public java.lang.String getString​(PropertyPath path)
      • getString

        public java.lang.String getString​(java.lang.String path)
      • getStrings

        public java.lang.Iterable<java.lang.String> getStrings​(java.lang.String name)
      • getBoolean

        public java.lang.Boolean getBoolean​(java.lang.String name,
                                            int index)
      • getBoolean

        public java.lang.Boolean getBoolean​(PropertyPath path)
      • getBoolean

        public java.lang.Boolean getBoolean​(java.lang.String path)
      • getBooleans

        public java.lang.Iterable<java.lang.Boolean> getBooleans​(java.lang.String name)
      • getLong

        public java.lang.Long getLong​(java.lang.String name,
                                      int index)
      • getLong

        public java.lang.Long getLong​(PropertyPath path)
      • getLong

        public java.lang.Long getLong​(java.lang.String path)
      • getLongs

        public java.lang.Iterable<java.lang.Long> getLongs​(java.lang.String name)
      • getDouble

        public java.lang.Double getDouble​(java.lang.String name,
                                          int index)
      • getDouble

        public java.lang.Double getDouble​(PropertyPath path)
      • getDouble

        public java.lang.Double getDouble​(java.lang.String path)
      • getDoubles

        public java.lang.Iterable<java.lang.Double> getDoubles​(java.lang.String name)
      • getGeoPoint

        public GeoPoint getGeoPoint​(java.lang.String name,
                                    int index)
      • getGeoPoint

        public GeoPoint getGeoPoint​(java.lang.String path)
      • getGeoPoints

        public java.lang.Iterable<GeoPoint> getGeoPoints​(java.lang.String name)
      • getBinaryReference

        public BinaryReference getBinaryReference​(java.lang.String name,
                                                  int index)
      • getBinaryReference

        public BinaryReference getBinaryReference​(java.lang.String path)
      • getBinaryReferences

        public java.lang.Iterable<BinaryReference> getBinaryReferences​(java.lang.String name)
      • getLink

        public Link getLink​(java.lang.String name,
                            int index)
      • getLink

        public Link getLink​(java.lang.String path)
      • getLinks

        public java.lang.Iterable<Link> getLinks​(java.lang.String name)
      • getReference

        public Reference getReference​(java.lang.String name,
                                      int index)
      • getReference

        public Reference getReference​(java.lang.String path)
      • getReferences

        public java.lang.Iterable<Reference> getReferences​(java.lang.String name)
      • getLocalDate

        public java.time.LocalDate getLocalDate​(java.lang.String name,
                                                int index)
      • getLocalDate

        public java.time.LocalDate getLocalDate​(PropertyPath path)
      • getLocalDate

        public java.time.LocalDate getLocalDate​(java.lang.String path)
      • getLocalDates

        public java.lang.Iterable<java.time.LocalDate> getLocalDates​(java.lang.String name)
      • getLocalDateTime

        public java.time.LocalDateTime getLocalDateTime​(java.lang.String name,
                                                        int index)
      • getLocalDateTime

        public java.time.LocalDateTime getLocalDateTime​(PropertyPath path)
      • getLocalDateTime

        public java.time.LocalDateTime getLocalDateTime​(java.lang.String path)
      • getLocalDateTimes

        public java.lang.Iterable<java.time.LocalDateTime> getLocalDateTimes​(java.lang.String name)
      • getLocalTime

        public java.time.LocalTime getLocalTime​(java.lang.String name,
                                                int index)
      • getLocalTime

        public java.time.LocalTime getLocalTime​(PropertyPath path)
      • getLocalTime

        public java.time.LocalTime getLocalTime​(java.lang.String path)
      • getLocalTimes

        public java.lang.Iterable<java.time.LocalTime> getLocalTimes​(java.lang.String name)
      • getInstant

        public java.time.Instant getInstant​(java.lang.String name,
                                            int index)
      • getInstant

        public java.time.Instant getInstant​(PropertyPath path)
      • getInstant

        public java.time.Instant getInstant​(java.lang.String path)
      • getInstants

        public java.lang.Iterable<java.time.Instant> getInstants​(java.lang.String name)