AttributeIterator(Element element, ElementMetadata<?, ?> metadata, Map<QName, Attribute> attributes) { this.element = element; this.metadata = metadata; this.metadataIterator = (metadata == null) ? null : metadata.getAttributes().iterator(); this.attributeIterator = (attributes == null) ? null : attributes.entrySet().iterator(); nextAttribute = findNextAttribute(); }
AttributeIterator(Element element, ElementMetadata<?, ?> metadata, Map<QName, Attribute> attributes) { this.element = element; this.metadata = metadata; this.metadataIterator = (metadata == null) ? null : metadata.getAttributes().iterator(); this.attributeIterator = (attributes == null) ? null : attributes.entrySet().iterator(); nextAttribute = findNextAttribute(); }
AttributeIterator(Element element, ElementMetadata<?, ?> metadata, Map<QName, Attribute> attributes) { this.element = element; this.metadata = metadata; this.metadataIterator = (metadata == null) ? null : metadata.getAttributes().iterator(); this.attributeIterator = (attributes == null) ? null : attributes.entrySet().iterator(); nextAttribute = findNextAttribute(); }
public Collection<AttributeKey<?>> getAttributes() { return delegate().getAttributes(); }
public Collection<AttributeKey<?>> getAttributes() { return delegate().getAttributes(); }
public Collection<AttributeKey<?>> getAttributes() { return delegate().getAttributes(); }
private static void addReferencedNamespaces(ElementMetadata<?, ?> metadata, ImmutableSet.Builder<XmlNamespace> builder, Set<ElementKey<?, ?>> added) { // Avoid recursive looping if (added.contains(metadata.getKey())) { return; } added.add(metadata.getKey()); // Add namespace for this element (if any) XmlNamespace elemNs = metadata.getName().getNs(); if (elemNs != null) { builder.add(elemNs); } // Add namespace for all attributes (if any) for (AttributeKey<?> attrKey : metadata.getAttributes()) { AttributeMetadata<?> attrMetadata = metadata.bindAttribute(attrKey); XmlNamespace attrNs = attrMetadata.getName().getNs(); if (attrNs != null) { builder.add(attrNs); } } // Add namespace for all child elements (recursively) for (ElementKey<?, ?> elemKey : metadata.getElements()) { ElementMetadata<?, ?> childMetadata = metadata.bindElement(elemKey); addReferencedNamespaces(childMetadata, builder, added); } }
private static void addReferencedNamespaces(ElementMetadata<?, ?> metadata, ImmutableSet.Builder<XmlNamespace> builder, Set<ElementKey<?, ?>> added) { // Avoid recursive looping if (added.contains(metadata.getKey())) { return; } added.add(metadata.getKey()); // Add namespace for this element (if any) XmlNamespace elemNs = metadata.getName().getNs(); if (elemNs != null) { builder.add(elemNs); } // Add namespace for all attributes (if any) for (AttributeKey<?> attrKey : metadata.getAttributes()) { AttributeMetadata<?> attrMetadata = metadata.bindAttribute(attrKey); XmlNamespace attrNs = attrMetadata.getName().getNs(); if (attrNs != null) { builder.add(attrNs); } } // Add namespace for all child elements (recursively) for (ElementKey<?, ?> elemKey : metadata.getElements()) { ElementMetadata<?, ?> childMetadata = metadata.bindElement(elemKey); addReferencedNamespaces(childMetadata, builder, added); } }
private static void addReferencedNamespaces(ElementMetadata<?, ?> metadata, ImmutableSet.Builder<XmlNamespace> builder, Set<ElementKey<?, ?>> added) { // Avoid recursive looping if (added.contains(metadata.getKey())) { return; } added.add(metadata.getKey()); // Add namespace for this element (if any) XmlNamespace elemNs = metadata.getName().getNs(); if (elemNs != null) { builder.add(elemNs); } // Add namespace for all attributes (if any) for (AttributeKey<?> attrKey : metadata.getAttributes()) { AttributeMetadata<?> attrMetadata = metadata.bindAttribute(attrKey); XmlNamespace attrNs = attrMetadata.getName().getNs(); if (attrNs != null) { builder.add(attrNs); } } // Add namespace for all child elements (recursively) for (ElementKey<?, ?> elemKey : metadata.getElements()) { ElementMetadata<?, ?> childMetadata = metadata.bindElement(elemKey); addReferencedNamespaces(childMetadata, builder, added); } }
for (AttributeKey<?> attributeKey : metadata.getAttributes()) { AttributeMetadata<?> attMeta = metadata.bindAttribute(attributeKey); if (attMeta.isRequired() && e.getAttributeValue(attributeKey) == null) {
for (AttributeKey<?> attributeKey : metadata.getAttributes()) { AttributeMetadata<?> attMeta = metadata.bindAttribute(attributeKey); if (attMeta.isRequired() && e.getAttributeValue(attributeKey) == null) {
for (AttributeKey<?> attributeKey : metadata.getAttributes()) { AttributeMetadata<?> attMeta = metadata.bindAttribute(attributeKey); if (attMeta.isRequired() && e.getAttributeValue(attributeKey) == null) {