Package com.graphdbapi.values.api
Interface PropertyEntity
-
- All Known Subinterfaces:
Entity<T>,Node,Relationship
public interface PropertyEntity属性实体。
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>getAllProperties()获取所有属性值。Map<String,Object>getProperties(String... keys)获取属性值。ObjectgetProperty(String key)获取属性中属性名称对应的值。ObjectgetProperty(String key, Object defaultValue)获取属性中属性名称对应的值。如果没有值,则返回默认值。Iterable<String>getPropertyKeys()获取属性名称迭代器。booleanhasProperty(String key)判断属性中是否包含属性名称。ObjectremoveProperty(String key)删除属性中属性名称对应的值。voidsetProperty(String key, Object value)修改属性中属性名称对应的值。
-
-
-
Method Detail
-
hasProperty
boolean hasProperty(String key)
判断属性中是否包含属性名称。- Parameters:
key- 属性名称- Returns:
- true 存在, false 不存在
-
getProperty
Object getProperty(String key, Object defaultValue)
获取属性中属性名称对应的值。如果没有值,则返回默认值。- Parameters:
key- 属性名称defaultValue- 默认值- Returns:
- 属性名称对应的值
-
setProperty
void setProperty(String key, Object value)
修改属性中属性名称对应的值。- Parameters:
key- 属性名称value- 属性值
-
removeProperty
Object removeProperty(String key)
删除属性中属性名称对应的值。- Parameters:
key- 属性名称- Returns:
- 被删除的属性值
-
getProperties
Map<String,Object> getProperties(String... keys)
获取属性值。- Parameters:
keys- 属性名称- Returns:
- 属性值
-
-