public void setListType(Class<? extends Object> listType) { for (Node node : value) { node.setType(listType); } }
public void setOnlyKeyType(Class<? extends Object> keyType) { for (NodeTuple nodes : value) { nodes.getKeyNode().setType(keyType); } }
private Construct getConstructor(Node node) { Class<?> cl = getClassForNode(node); node.setType(cl); // call the constructor as if the runtime class is defined Construct constructor = yamlClassConstructors.get(node.getNodeId()); return constructor; }
@Override public void construct2ndStep(Node node, Object object) { // Compact Object Notation may contain only one entry MappingNode mnode = (MappingNode) node; NodeTuple nodeTuple = mnode.getValue().iterator().next(); Node valueNode = nodeTuple.getValueNode(); if (valueNode instanceof MappingNode) { valueNode.setType(object.getClass()); constructJavaBean2ndStep((MappingNode) valueNode, object); } else { // value is a list applySequence(object, constructSequence((SequenceNode) valueNode)); } }
child.setType(componentType);
Class<?> type = c.getParameterTypes()[index]; argumentNode.setType(type); argumentList[index++] = constructObject(argumentNode);
valueNode.setType(property.getType()); final boolean typeDetected = (memberDescription != null) ? memberDescription.setupPropertyType(key, valueNode)
public void setListType(Class<? extends Object> listType) { for (Node node : value) { node.setType(listType); } }
public void setListType(Class<? extends Object> listType) { for (Node node : value) { node.setType(listType); } }
public void setListType(Class<? extends Object> listType) { for (Node node : value) { node.setType(listType); } }
public void setOnlyKeyType(Class<? extends Object> keyType) { for (NodeTuple nodes : value) { nodes.getKeyNode().setType(keyType); } }
public void setOnlyKeyType(Class<? extends Object> keyType) { for (NodeTuple nodes : value) { nodes.getKeyNode().setType(keyType); } }
public void setOnlyKeyType(Class<? extends Object> keyType) { for (NodeTuple nodes : value) { nodes.getKeyNode().setType(keyType); } }
private Construct getConstructor(Node node) { Class<?> cl = getClassForNode(node); node.setType(cl); // call the constructor as if the runtime class is defined Construct constructor = yamlClassConstructors.get(node.getNodeId()); return constructor; }
private Construct getConstructor(Node node) { Class<?> cl = getClassForNode(node); node.setType(cl); // call the constructor as if the runtime class is defined Construct constructor = yamlClassConstructors.get(node.getNodeId()); return constructor; }
private Construct getConstructor(Node node) { Class<?> cl = getClassForNode(node); node.setType(cl); // call the constructor as if the runtime class is defined Construct constructor = yamlClassConstructors.get(node.getNodeId()); return constructor; }