@Beta public final class PropertyTree extends Object
Constructor and Description |
---|
PropertyTree()
Creates a new PropertyTree using a default PropertyIdProvider which uses UUID.randomUUID().
|
public PropertyTree()
public PropertyTree copy()
public com.google.common.collect.ImmutableList<Property> getProperties(ValueType valueType)
public PropertyTree ifNotNull()
public PropertySet newSet()
public PropertySet newSet(PropertyTree source)
public int countNames(String name)
public Property setProperty(PropertyPath path, Value value)
public void setValues(PropertyPath path, Iterable<Value> values)
public void removeProperty(String path)
public void removeProperty(PropertyPath path)
public void removeProperties(String name)
public PropertySet getRoot()
public boolean hasProperty(String path)
public boolean hasProperty(PropertyPath path)
public boolean hasProperty(String name, int index)
public Property getProperty(PropertyPath path)
public Value getValue(PropertyPath path)
public PropertySet getPropertySet(PropertyPath path)
public PropertySet getPropertySet(String path)
public int getTotalSize()
public Property setSet(PropertyPath path, PropertySet value)
public Property setSet(String path, PropertySet value)
public Property setSet(String name, int index, PropertySet value)
public Property addSet(String name, PropertySet value)
public Property[] addSets(String name, PropertySet... value)
public PropertySet addSet(String name)
public Property setString(PropertyPath path, String value)
public Property[] addStrings(String name, Collection<String> values)
public Property setXml(PropertyPath path, String value)
public Property setBinaryReference(PropertyPath path, BinaryReference value)
public Property setBinaryReference(String path, BinaryReference value)
public Property setBinaryReference(String name, int index, BinaryReference value)
public Property addBinaryReference(String name, BinaryReference value)
public Property[] addBinaryReferences(String name, BinaryReference... value)
public Property setReference(PropertyPath path, Reference value)
public Property setLink(PropertyPath path, Link value)
public Property setBoolean(PropertyPath path, Boolean value)
public Property setLong(PropertyPath path, Long value)
public Property setDouble(PropertyPath path, Double value)
public Property setGeoPoint(PropertyPath path, GeoPoint value)
public Property setLocalDate(PropertyPath path, LocalDate value)
public Property setLocalDateTime(PropertyPath path, LocalDateTime value)
public Property setLocalDateTime(String path, LocalDateTime value)
public Property setLocalDateTime(String name, int index, LocalDateTime value)
public Property addLocalDateTime(String name, LocalDateTime value)
public Property[] addLocalDateTimes(String name, LocalDateTime... value)
public Property setLocalTime(PropertyPath path, LocalTime value)
public Property setInstant(PropertyPath path, Instant value)
public PropertySet getSet(String name, int index)
public PropertySet getSet(PropertyPath path)
public PropertySet getSet(String path)
public Iterable<PropertySet> getSets(String name)
public String getString(PropertyPath path)
public Boolean getBoolean(PropertyPath path)
public Long getLong(PropertyPath path)
public Double getDouble(PropertyPath path)
public GeoPoint getGeoPoint(PropertyPath path)
public BinaryReference getBinaryReference(String name, int index)
public BinaryReference getBinaryReference(PropertyPath path)
public BinaryReference getBinaryReference(String path)
public Iterable<BinaryReference> getBinaryReferences(String name)
public Link getLink(PropertyPath path)
public Reference getReference(PropertyPath path)
public LocalDate getLocalDate(PropertyPath path)
public LocalDateTime getLocalDateTime(String name, int index)
public LocalDateTime getLocalDateTime(PropertyPath path)
public LocalDateTime getLocalDateTime(String path)
public Iterable<LocalDateTime> getLocalDateTimes(String name)
public LocalTime getLocalTime(PropertyPath path)
public Instant getInstant(PropertyPath path)