@Override public Collection<QName> getExpectedAttributes() { final List<QName> attributes = new LinkedList<QName>(); final XPathNodeWrapper currentNodeWrapper = getCurrentNodeWrapper(); final Map<XPathFragment, XPathNode> attributeChildrenMap = currentNodeWrapper == null ? null :currentNodeWrapper.xPathNode.getAttributeChildrenMap(); if (attributeChildrenMap != null) { for(Map.Entry<XPathFragment, XPathNode> entry : attributeChildrenMap.entrySet()) { attributes.add(new QName(entry.getKey().getNamespaceURI(), entry.getKey().getLocalName())); } } return attributes; }
public Map<String, EntityType> getEntitiesTypesMap(boolean isAttribute) { Map<String, EntityType> entitiesTypes = isAttribute ? attributeTypeMap : elementTypeMap; if (entitiesTypes.isEmpty()) { final Map<XPathFragment, XPathNode> nodeMap = isAttribute ? xPathNode.getAttributeChildrenMap() : xPathNode.getNonAttributeChildrenMap(); if (nodeMap != null) { for(Map.Entry<XPathFragment, XPathNode> entry : nodeMap.entrySet()) { entitiesTypes.put(entry.getKey().getLocalName(), new EntityType(entry.getKey().getXMLField().getType())); } } } return entitiesTypes; }
@Override public Collection<QName> getExpectedAttributes() { final List<QName> attributes = new LinkedList<QName>(); final XPathNodeWrapper currentNodeWrapper = getCurrentNodeWrapper(); final Map<XPathFragment, XPathNode> attributeChildrenMap = currentNodeWrapper == null ? null :currentNodeWrapper.xPathNode.getAttributeChildrenMap(); if (attributeChildrenMap != null) { for(Map.Entry<XPathFragment, XPathNode> entry : attributeChildrenMap.entrySet()) { attributes.add(new QName(entry.getKey().getNamespaceURI(), entry.getKey().getLocalName())); } } return attributes; }
@Override public Collection<QName> getExpectedAttributes() { final List<QName> attributes = new LinkedList<QName>(); final XPathNodeWrapper currentNodeWrapper = getCurrentNodeWrapper(); final Map<XPathFragment, XPathNode> attributeChildrenMap = currentNodeWrapper == null ? null :currentNodeWrapper.xPathNode.getAttributeChildrenMap(); if (attributeChildrenMap != null) { for(Map.Entry<XPathFragment, XPathNode> entry : attributeChildrenMap.entrySet()) { attributes.add(new QName(entry.getKey().getNamespaceURI(), entry.getKey().getLocalName())); } } return attributes; }
public Map<String, EntityType> getEntitiesTypesMap(boolean isAttribute) { Map<String, EntityType> entitiesTypes = isAttribute ? attributeTypeMap : elementTypeMap; if (entitiesTypes.isEmpty()) { final Map<XPathFragment, XPathNode> nodeMap = isAttribute ? xPathNode.getAttributeChildrenMap() : xPathNode.getNonAttributeChildrenMap(); if (nodeMap != null) { for(Map.Entry<XPathFragment, XPathNode> entry : nodeMap.entrySet()) { entitiesTypes.put(entry.getKey().getLocalName(), new EntityType(entry.getKey().getXMLField().getType())); } } } return entitiesTypes; }
public Map<String, EntityType> getEntitiesTypesMap(boolean isAttribute) { Map<String, EntityType> entitiesTypes = isAttribute ? attributeTypeMap : elementTypeMap; if (entitiesTypes.isEmpty()) { final Map<XPathFragment, XPathNode> nodeMap = isAttribute ? xPathNode.getAttributeChildrenMap() : xPathNode.getNonAttributeChildrenMap(); if (nodeMap != null) { for(Map.Entry<XPathFragment, XPathNode> entry : nodeMap.entrySet()) { entitiesTypes.put(entry.getKey().getLocalName(), new EntityType(entry.getKey().getXMLField().getType())); } } } return entitiesTypes; }
public NodeValue getAttributeChildNodeValue(String namespace, String localName) { Map attributeChildrenMap = xPathNode.getAttributeChildrenMap(); if (attributeChildrenMap != null) { xPathFragment.setLocalName(localName); if(namespace != null && namespace.length() == 0){ xPathFragment.setNamespaceURI(null); } else { xPathFragment.setNamespaceURI(namespace); } XPathNode node = (XPathNode)attributeChildrenMap.get(xPathFragment); if (node != null) { return node.getUnmarshalNodeValue(); } } return null; }
public NodeValue getAttributeChildNodeValue(String namespace, String localName) { Map<XPathFragment, XPathNode> attributeChildrenMap = xPathNode.getAttributeChildrenMap(); if (attributeChildrenMap != null) { XPathNode resultNode; xPathFragment.setLocalName(localName); xPathFragment.setNamespaceURI(namespace); if (unmarshaller.isCaseInsensitive()){ resultNode = getNodeFromLookupTable(attributeChildrenMap, true); } else { resultNode = attributeChildrenMap.get(xPathFragment); } if (resultNode != null) { return resultNode.getUnmarshalNodeValue(); } } return null; }
public NodeValue getAttributeChildNodeValue(String namespace, String localName) { Map<XPathFragment, XPathNode> attributeChildrenMap = xPathNode.getAttributeChildrenMap(); if (attributeChildrenMap != null) { XPathNode resultNode; xPathFragment.setLocalName(localName); xPathFragment.setNamespaceURI(namespace); if (unmarshaller.isCaseInsensitive()){ resultNode = getNodeFromLookupTable(attributeChildrenMap, true); } else { resultNode = attributeChildrenMap.get(xPathFragment); } if (resultNode != null) { return resultNode.getUnmarshalNodeValue(); } } return null; }
break; Map attributeChildrenMap = xPathNode.getAttributeChildrenMap(); if (null == attributeChildrenMap) { xPathNode = null;
break; Map attributeChildrenMap = xPathNode.getAttributeChildrenMap(); if (null == attributeChildrenMap) { xPathNode = null;