public final class ElementDescriptor extends Object
| Constructor and Description |
|---|
ElementDescriptor(String name,
Map<String,String> attributes,
List<ElementDescriptor> childs)
Creates a new instance which describes an XML element
which state is represented by the passed arguments
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String attributeName) |
ElementDescriptor |
getChildByName(String childName) |
Collection<ElementDescriptor> |
getChildsByName(String childName) |
String |
getName() |
boolean |
hasAttribute(String attributeName) |
public ElementDescriptor(String name, Map<String,String> attributes, List<ElementDescriptor> childs)
name - the name of the elementattributes - a Map containing the element's attribute names and their valueschilds - a List of other ElementDescriptor instances which represents this
element's childs. Can be empty but must not be nullpublic String getName()
public boolean hasAttribute(String attributeName)
public ElementDescriptor getChildByName(String childName)
public Collection<ElementDescriptor> getChildsByName(String childName)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.