sk.uniba.euromath.document.schema.impl.modify
Class EnclosableElementContentInfo
java.lang.Object
sk.uniba.euromath.document.schema.impl.iterator.ContentInfo
sk.uniba.euromath.document.schema.impl.modify.EnclosableElementContentInfo
final class EnclosableElementContentInfo
- extends ContentInfo
Mutable object, always represents an element content info. Its element qname
can be changed, however this change creates a new element instance. The
element shall have no attributes and no children.
- Author:
- Martin Vysny
Constructor Summary |
EnclosableElementContentInfo(sk.baka.ikslibs.ptr.DomPointer ptr)
Constructs an instance of the object, having dummy element (
null namespace and "dummy" localname). |
EnclosableElementContentInfo
public EnclosableElementContentInfo(sk.baka.ikslibs.ptr.DomPointer ptr)
- Constructs an instance of the object, having dummy element (
null
namespace and "dummy"
localname).
- Parameters:
ptr
- the pointer.
getElement
public Element getElement()
- Description copied from class:
ContentInfo
- Returns element represented by this object. Function fails if object is
not representing element (the
TYPE_ELEMENT
type).
- Overrides:
getElement
in class ContentInfo
- Returns:
- element.
setElement
public void setElement(QName qname)
- Sets the element for this content info. The element shall always have
empty contents. It shall create a new element instance.
- Parameters:
qname
- the qname for new element.
Copyright 2003-2003-2006 null. All Rights Reserved.