- Common ways to obtain ONDEXConcept
private void myMethod () {ONDEXConcept o =
ONDEXRelation r;r.getToConcept()
ONDEXRelation r;r.getFromConcept()
ONDEXGraph graph;graph.getConcept(id)
- Smart code suggestions by Codota
}
if (attribute != null) { concept.deleteAttribute(an); attribute = null;
c.deleteAttribute(clustAtt); ONDEXConcept c = graph.getConcept(i); if (c.getAttribute(clustAtt) != null) c.deleteAttribute(clustAtt); c.createAttribute(clustAtt, clusterId, false);
public static void changeAttributeValue(ONDEXEntity e, AttributeName n, Object value) { if (e instanceof ONDEXConcept) { ONDEXConcept c = (ONDEXConcept) e; boolean doIndex = c.getAttribute(n).isDoIndex(); c.deleteAttribute(n); c.createAttribute(n, value, doIndex); } if (e instanceof ONDEXRelation) { ONDEXRelation r = (ONDEXRelation) e; boolean doIndex = r.getAttribute(n).isDoIndex(); r.deleteAttribute(n); r.createAttribute(n, value, doIndex); } else { throw new IllegalArgumentException( "This method only works with Ondex concepts and relations."); } }
if (concept.deleteAttribute(an)) number++; if (concept.deleteAttribute(an)) number++;
ONDEXConcept c = graph.getConcept(i); if (c.getAttribute(att) != null) { c.deleteAttribute(att);