/** * Return the children of this node. This list will contain PDNumberTreeNode objects. * * @return The list of children or null if there are no children. */ public List<PDNumberTreeNode> getKids() { List<PDNumberTreeNode> retval = null; COSArray kids = (COSArray)node.getDictionaryObject( COSName.KIDS ); if( kids != null ) { List<PDNumberTreeNode> pdObjects = new ArrayList<>(); for( int i=0; i<kids.size(); i++ ) { pdObjects.add( createChildNode( (COSDictionary)kids.getObject(i) ) ); } retval = new COSArrayList<>(pdObjects,kids); } return retval; }
/** * Return the children of this node. This list will contain PDNumberTreeNode objects. * * @return The list of children or null if there are no children. */ public List<PDNumberTreeNode> getKids() { List<PDNumberTreeNode> retval = null; COSArray kids = (COSArray)node.getDictionaryObject( COSName.KIDS ); if( kids != null ) { List<PDNumberTreeNode> pdObjects = new ArrayList<PDNumberTreeNode>(); for( int i=0; i<kids.size(); i++ ) { pdObjects.add( createChildNode( (COSDictionary)kids.getObject(i) ) ); } retval = new COSArrayList<PDNumberTreeNode>(pdObjects,kids); } return retval; }
/** * Return the children of this node. This list will contain PDNumberTreeNode objects. * * @return The list of children or null if there are no children. */ public List<PDNumberTreeNode> getKids() { List<PDNumberTreeNode> retval = null; COSArray kids = (COSArray)node.getDictionaryObject( COSName.KIDS ); if( kids != null ) { List<PDNumberTreeNode> pdObjects = new ArrayList<>(); for( int i=0; i<kids.size(); i++ ) { pdObjects.add( createChildNode( (COSDictionary)kids.getObject(i) ) ); } retval = new COSArrayList<>(pdObjects,kids); } return retval; }