open XML while xml source has next { add next node to allNodes, key = node.uniqueId, Val = node if next node.kind not in uniqueKinds, add node.kind to uniqueKinds } ClassNodeImporter method makeFilteredeMap: private boolean makeFilteredeMap() { if (uniqueKinds.isEmpty()) { return false; } else { for (String k : uniqueKinds) { HashMap<String, Node> aMap = new HashMap<String, Node>(); for (Node n : allNodes) { if (n.getKind().equals(k)) { aMap.put(n.getCode(), n); } } filteredNodes.put(k, aMap); } return true; } }
public NodeFluentImpl(Node instance){ this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); }
public NodeBuilder(NodeFluent<?> fluent,Node instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); fluent.withStatus(instance.getStatus()); this.validationEnabled = validationEnabled; } public NodeBuilder(Node instance){
public NodeBuilder(Node instance,Boolean validationEnabled){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); this.validationEnabled = validationEnabled; }
public NodeBuilder( NodeFluent<?> fluent , Node instance ){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); fluent.withStatus(instance.getStatus()); } public NodeBuilder( Node instance ){
public NodeBuilder( NodeFluent<?> fluent , Node instance ){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); fluent.withStatus(instance.getStatus()); } public NodeBuilder( Node instance ){
public NodeBuilder( Node instance ){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); }
public NodeBuilder( Node instance ){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); }