public class XmlHelper extends Object
public static Element getRootElement(String xmlFilePath) throws FileNotFoundException
FileNotFoundExceptionpublic static List<Pair<String,String>> getImports(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static String getNamespace(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static String getFile(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static Element getCustomMetadataElement(Element root) throws PGEException
PGEExceptionpublic static String getMetadataKey(Element metElem, Metadata metadata) throws PGEException
PGEExceptionpublic static boolean isMultiValue(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static List<String> getMetadataValues(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static String getMetadataKeyRef(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static boolean isWorkflowMetKey(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static String getPath(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static String getWriter(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static List<String> getArgs(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static List<DynamicConfigFile> getDynamicConfigFiles(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static Element getExe(Element elem) throws PGEException
PGEExceptionpublic static String getDir(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static String getShellType(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static List<String> getExeCmds(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static Element getFileStaging(Element elem) throws PGEException
PGEExceptionpublic static boolean isForceStage(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static String getFileStagingMetadataKey(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static List<String> getStageFilesMetKeys(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static Element getOutput(Element elem) throws PGEException
PGEExceptionpublic static boolean isCreateBeforeExe(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static List<OutputDir> getOuputDirs(Element elem, Metadata metadata) throws PGEException
PGEExceptionpublic static void getRegExpOutputFiles(Element elem, Metadata metadata, OutputDir outputDir) throws PGEException
PGEExceptionpublic static String fillIn(String value, Metadata inputMetadata) throws PGEException
PGEExceptionpublic static String fillIn(String value, Metadata inputMetadata, boolean envReplaceRecur) throws PGEException
PGEExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.