package com.fasterxml.aalto.in;
/**
* Simple container of information about an open element (one for which
* start tag has been seen, but not yet end; or, for empty tags,
* START_ELEMENT has been returned but END_ELEMENT not yet)
*/
public final class ElementScope
{
ElementScopemParent;
PNamemName;
public ElementScope(PNamename, ElementScopeparent)
{
mParent = parent;
mName = name;
}
public PNamegetName() { return mName; }
public ElementScopegetParent() { return mParent; }
@Override
public StringtoString()
{
if (mParent == null) {
return mName.toString();
}
return mParent.toString() + "/" + mName;
}
}