@Immutable public final class AS2XMLHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends IDynamicComponent> |
createComponent(com.helger.xml.microdom.IMicroElement aElement,
Class<T> aClass,
IAS2Session aSession,
String sBaseDirectory) |
static com.helger.commons.collection.attr.StringMap |
getAllAttrsWithLowercaseName(com.helger.xml.microdom.IMicroElement aElement)
Get all attributes of the passed element as a map with a lowercase
attribute name.
|
static com.helger.commons.collection.attr.StringMap |
getAllAttrsWithLowercaseNameWithRequired(com.helger.xml.microdom.IMicroElement aElement,
String... aRequiredAttributes) |
static com.helger.commons.collection.impl.ICommonsOrderedMap<String,String> |
mapAttributeNodes(com.helger.xml.microdom.IMicroElement aNode,
String sNodeName,
String sNodeKeyName,
String sNodeValueName) |
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.attr.StringMap getAllAttrsWithLowercaseName(@Nonnull com.helger.xml.microdom.IMicroElement aElement)
aElement - The source element to extract the attributes from. May not be
null.null but maybe empty.@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.attr.StringMap getAllAttrsWithLowercaseNameWithRequired(@Nonnull com.helger.xml.microdom.IMicroElement aElement, @Nonnull String... aRequiredAttributes) throws AS2Exception
AS2Exception@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsOrderedMap<String,String> mapAttributeNodes(@Nonnull com.helger.xml.microdom.IMicroElement aNode, @Nonnull String sNodeName, @Nonnull String sNodeKeyName, @Nonnull String sNodeValueName) throws AS2Exception
aNode - Start node. May not be null.sNodeName - The element name to be queried relative to the start node.sNodeKeyName - The attribute name of the key.sNodeValueName - The attribute name of the value.null Map.AS2Exception - In case a node is missing a key or value attribute.@Nonnull public static <T extends IDynamicComponent> T createComponent(@Nonnull com.helger.xml.microdom.IMicroElement aElement, @Nonnull Class<T> aClass, @Nonnull IAS2Session aSession, @Nullable String sBaseDirectory) throws AS2Exception
AS2ExceptionCopyright © 2013–2022 Philip Helger. All rights reserved.