sk.uniba.euromath.document.schema.impl.modify
Class EnclosableElementContentInfo

java.lang.Object
  extended by sk.uniba.euromath.document.schema.impl.iterator.ContentInfo
      extended by 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

Field Summary
 
Fields inherited from class sk.uniba.euromath.document.schema.impl.iterator.ContentInfo
ptr, ptrInsert, type, TYPE_CHARDATA, TYPE_ELEMENT, TYPE_NONE
 
Constructor Summary
EnclosableElementContentInfo(sk.baka.ikslibs.ptr.DomPointer ptr)
          Constructs an instance of the object, having dummy element ( null namespace and "dummy" localname).
 
Method Summary
 Element getElement()
          Returns element represented by this object.
 void setElement(QName qname)
          Sets the element for this content info.
 
Methods inherited from class sk.uniba.euromath.document.schema.impl.iterator.ContentInfo
create, equals, getValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.