Get the parent sheet

@return
322192
public Sheet getSheet() {
        if (sheet != null) {
            return sheet;
        }

        UIComponent parent = getParent();
        while (parent != null && !(parent instanceof Sheet)) {
            parent = parent.getParent();
        }
        return (Sheet) parent;
    }
844888
@Override
    public XlsWorksheet getSheet(String name)
    {
        XlsWorksheet ret = null;
        if(workbook != null)
        {
            Sheet sheet = workbook.getSheet(name);
            if(sheet != null)
                ret = new XlsWorksheet(sheet);
        }
        else if(writableWorkbook != null)
        {
            Sheet sheet = writableWorkbook.getSheet(name);
            if(sheet != null)
                ret = new XlsWorksheet(sheet);
        }
        return ret;
    }
612680
public function getParentList()
    {
        if (null === $this->parentList) {
            $this->parentList = [];

            $parent = $this->getDescriptor()->getParent();

            for ($index = 1; null !== $parent; $index++) {
                $this->parentList[$parent->getName() . '-'] = $parent;

                $parent = $parent->getDescriptor()->getParent();
            }
        }

        return $this->parentList;
    }
652667
public Type getParentType()
    {
        Type ret = null;
        if (this.parentTypeId != null && this.parentTypeId != 0) {
            try {
                ret = Type.get(this.parentTypeId);
            } catch (final CacheReloadException e) {
                Type.LOG.error("Could not read parentType for id: {}", this.parentTypeId);
            }
        }
        return ret;
    }
1345981
function() {

        var ancestors = [];

        if (!this.graph) {
            return ancestors;
        }

        var parentCell = this.getParentCell();
        while (parentCell) {
            ancestors.push(parentCell);
            parentCell = parentCell.getParentCell();
        }

        return ancestors;
    }
846796
public function getParentPage()
    {
        $page = $this->getPage();
        if ($page && $page->parent) {
            return $page->parent->getPage();
        }
        return null;
    }
163775
@SuppressWarnings("unchecked")
    public CmsList<CmsListItem> getParentList() {

        Widget parent = getParent();
        if (parent == null) {
            return null;
        }
        return (CmsList<CmsListItem>)parent;
    }
871539
protected EscherAggregate getEscherAggregate(HSSFSheet sheet) {
        EscherAggregate agg = sheetToEscherAggregate.get(sheet.getSheetName());
        if (agg == null) {
            agg = sheet.getDrawingEscherAggregate();
            sheetToEscherAggregate.put(sheet.getSheetName(), agg);
        }
        return agg;
    }
1124960
public List<String> getAllSheetNames() {
    List<String> sheets = newArrayList();
    for (int i = 0; i < workbook.getNumberOfSheets(); i++) {
      sheets.add(workbook.getSheetName(i));
    }
    return sheets;
  }
241076
private IScriptReporter getParentScriptReporter()
    {
        Tag parent = getParent();
        if (parent == null)
            return null;
        return (IScriptReporter) SimpleTagSupport.findAncestorWithClass(parent, IScriptReporter.class);
    }
184026
@Pure
	protected final Graph<ST, PT> getParentGraph() {
		return this.parentGraph == null ? null : this.parentGraph.get();
	}
758092
@Override
    public String[] getSheetNames()
    {
        String[] ret = null;
        if(sheets != null)
        {
            ret = new String[sheets.size()];
            for(int i = 0; i < sheets.size(); i++)
            {
                Sheet sheet = (Sheet)sheets.get(i);
                ret[i] = sheet.getName();
            }
        }
        return ret;
    }
655341
public com.google.api.ads.adwords.axis.v201809.cm.Location[] getParentLocations() {
        return parentLocations;
    }
1156692
public File getParentFile() {
        String tempParent = getParent();
        if (tempParent == null) {
            return null;
        }
        return new File(tempParent);
    }
254660
public com.google.api.ads.adwords.axis.v201809.cm.ProductBiddingCategory getParentDimensionValue() {
        return parentDimensionValue;
    }
1024302
public function getParent()
    {
        $section = $this->getSection();
        if ($this->hasMainSection()) {
            if ($section->isRoot()) {
                return null;
            } elseif ($section->getParent() instanceof Section) {
                return $section->getParent()->getPage();
            } else {
                return null;
            }
        }

        return $section->getPage();
    }
11564
public function getParentNode()
    {
        if (!$this->parentNode) {
            throw new \RuntimeException(sprintf(
                'Trying to retrieve parent node when no parent node has been set. An event ' .
                'listener should have set the node when persisting document "%s"',
                DocumentHelper::getDebugTitle($this->document)
            ));
        }

        return $this->parentNode;
    }