public static < E extends Enum < E > > E readEnumChild ( Node node , Class < E > enumClass , String childNodeName ) { if ( node == null ) { throw new XmlException ( "Tried to read enum value from child of null node" ) ; } Node child = XmlUtils . getFirstChild ( node , childNodeName ) ; return XmlUtils . readEnum ( child , enumClass ) ; }
Parse an enum value from the first child of the given node with the given name