本文整理了Java中org.vertexium.Element.getProperties()
方法的一些代码示例,展示了Element.getProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getProperties()
方法的具体详情如下:
包路径:org.vertexium.Element
类名称:Element
方法名:getProperties
暂无
代码示例来源:origin: org.vertexium/vertexium-core
@Override
protected boolean isMatch(Element element) {
for (Property prop : element.getProperties()) {
if (this.keys.contains(prop.getName())) {
return true;
}
}
return false;
}
代码示例来源:origin: visallo/vertexium
@Override
public ExistingElementMutation<T> softDeleteProperties(String name) {
for (Property prop : this.element.getProperties(name)) {
softDeleteProperty(prop);
}
return this;
}
代码示例来源:origin: visallo/vertexium
@Override
protected boolean isMatch(Element element) {
for (Property prop : element.getProperties()) {
if (this.keys.contains(prop.getName())) {
return true;
}
}
return false;
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
public ExistingElementMutation<T> softDeleteProperties(String key, String name) {
for (Property prop : this.element.getProperties(key, name)) {
softDeleteProperty(prop);
}
return this;
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
protected boolean isMatch(Element element) {
for (Property prop : element.getProperties()) {
if (this.keys.contains(prop.getName())) {
return false;
}
}
return true;
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
public ExistingElementMutation<T> deleteProperties(String key, String name) {
for (Property prop : this.element.getProperties(key, name)) {
deleteProperty(prop);
}
return this;
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
public ExistingElementMutation<T> softDeleteProperties(String name) {
for (Property prop : this.element.getProperties(name)) {
softDeleteProperty(prop);
}
return this;
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
protected boolean isMatch(Element element) {
for (String key : this.keys) {
if (this.predicate.evaluate(element.getProperties(key), this.value, this.propertyDefinitions)) {
return true;
}
}
return false;
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
public ExistingElementMutation<T> deleteProperties(String name) {
for (Property prop : this.element.getProperties(name)) {
deleteProperty(prop);
}
return this;
}
代码示例来源:origin: org.visallo/visallo-core
public Property getFirstProperty(Element element) {
return getFirst(element.getProperties(getPropertyName()), null);
}
代码示例来源:origin: visallo/vertexium
public Set<String> getKeys(Element element) {
Set<String> results = new HashSet<>();
for (Property property : element.getProperties()) {
if (!isLabelProperty(property)) {
results.add(property.getName());
}
}
return results;
}
代码示例来源:origin: org.vertexium/vertexium-core
private boolean evaluateQueryString(Element element, String queryString) {
for (Property property : element.getProperties()) {
if (evaluateQueryStringOnValue(property.getValue(), queryString)) {
return true;
}
}
return false;
}
代码示例来源:origin: org.visallo/visallo-core
private void safeExecuteHandleEntireElement(Element element, GraphPropertyMessage message) throws Exception {
safeExecuteHandlePropertyOnElement(element, null, message);
for (Property property : element.getProperties()) {
safeExecuteHandlePropertyOnElement(element, property, message);
}
}
代码示例来源:origin: visallo/vertexium
private boolean evaluateQueryString(Element element, String queryString) {
for (Property property : element.getProperties()) {
if (evaluateQueryStringOnValue(property.getValue(), queryString)) {
return true;
}
}
return false;
}
代码示例来源:origin: org.visallo/visallo-core
private void deleteProperties(Element e, String workspaceId, Priority priority, Authorizations authorizations) {
List<Property> properties = IterableUtils.toList(e.getProperties());
SandboxStatus[] sandboxStatuses = SandboxStatusUtil.getPropertySandboxStatuses(properties, workspaceId);
for (int i = 0; i < sandboxStatuses.length; i++) {
boolean propertyIsPublic = (sandboxStatuses[i] == SandboxStatus.PUBLIC);
Property property = properties.get(i);
deleteProperty(e, property, propertyIsPublic, workspaceId, priority, authorizations);
}
}
代码示例来源:origin: org.visallo/visallo-core
public static JSONObject toJsonElement(Element element, String workspaceId) {
JSONObject json = new JSONObject();
json.put("id", element.getId());
json.put("properties", toJsonProperties(element.getProperties(), workspaceId));
json.put("sandboxStatus", SandboxStatusUtil.getSandboxStatus(element, workspaceId).toString());
VisibilityJson visibilityJson = VisalloProperties.VISIBILITY_JSON.getPropertyValue(element);
if (visibilityJson != null) {
json.put("visibilitySource", visibilityJson.getSource());
}
return json;
}
代码示例来源:origin: org.visallo/visallo-common-rdf
public void exportElementToRdfTriple(Element element, OutputStream out) throws IOException {
writeElementRdfTripleComment(element, out);
writeElementRdfTriple(element, out);
for (Property property : element.getProperties()) {
writePropertyRdfTriples(element, property, out);
}
}
代码示例来源:origin: org.visallo/visallo-graph-property-worker-plugin-test
protected void run(GraphPropertyWorker gpw, GraphPropertyWorkerPrepareData workerPrepareData, Element e) {
for (Property property : e.getProperties()) {
InputStream in = null;
if (property.getValue() instanceof StreamingPropertyValue) {
StreamingPropertyValue spv = (StreamingPropertyValue) property.getValue();
in = spv.getInputStream();
}
run(gpw, workerPrepareData, e, property, in);
}
}
代码示例来源:origin: org.vertexium/vertexium-core
/**
* Permanently deletes all properties with the given name that you have access to. Only properties which you have
* access to will be deleted.
*
* @param name The name of the property to delete.
*/
default void deleteProperties(String name, Authorizations authorizations) {
for (Property p : getProperties(name)) {
deleteProperty(p.getKey(), p.getName(), p.getVisibility(), authorizations);
}
}
代码示例来源:origin: org.vertexium/vertexium-core
/**
* Soft deletes all properties with the given name that you have access to. Only properties which you have
* access to will be soft deleted.
*
* @param name The name of the property to delete.
*/
default void softDeleteProperties(String name, Authorizations authorizations) {
for (Property property : getProperties(name)) {
softDeleteProperty(property.getKey(), property.getName(), property.getVisibility(), authorizations);
}
}
内容来源于网络,如有侵权,请联系作者删除!