Package org.sonar.core.graph.graphson.ElementPropertyConfig

Examples of org.sonar.core.graph.graphson.ElementPropertyConfig.ElementPropertiesRule


   */
  JSONObject jsonFromElement(Element element) {
    boolean isEdge = element instanceof Edge;
    boolean showTypes = mode == GraphsonMode.EXTENDED;
    Set<String> propertyKeys = isEdge ? this.edgePropertyKeys : this.vertexPropertyKeys;
    ElementPropertiesRule elementPropertyConfig = isEdge ? this.edgePropertiesRule : this.vertexPropertiesRule;

    JSONObject jsonElement = createJSONMap(createPropertyMap(element, propertyKeys, elementPropertyConfig), propertyKeys, showTypes);

    if ((isEdge && this.includeReservedEdgeId) || (!isEdge && this.includeReservedVertexId)) {
      putObject(jsonElement, GraphsonTokens._ID, element.getId());
View Full Code Here

TOP

Related Classes of org.sonar.core.graph.graphson.ElementPropertyConfig.ElementPropertiesRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.