Fix the name of the RootProperty, as it never changes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053503 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2010-12-29 01:34:18 +00:00
parent 01626c6626
commit 30a23fc7b4
1 changed files with 11 additions and 1 deletions

View File

@ -26,10 +26,11 @@ import org.apache.poi.poifs.storage.SmallDocumentBlock;
* @author Marc Johnson (mjohnson at apache dot org)
*/
public final class RootProperty extends DirectoryProperty {
private static final String NAME = "Root Entry";
RootProperty()
{
super("Root Entry");
super(NAME);
// overrides
setNodeColor(_NODE_BLACK);
@ -59,4 +60,13 @@ public final class RootProperty extends DirectoryProperty {
{
super.setSize(SmallDocumentBlock.calcSize(size));
}
/**
* Returns the fixed name "Root Entry", as the
* raw property doesn't have a real name set
*/
@Override
public String getName() {
return NAME;
}
}