You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ar...@locus.apache.org on 2000/09/19 19:33:16 UTC

cvs commit: xml-xerces/c/src/dom EntityReferenceImpl.cpp EntityReferenceImpl.hpp

aruna1      00/09/19 10:33:15

  Modified:    c/src/dom EntityReferenceImpl.cpp EntityReferenceImpl.hpp
  Log:
  Removed length() and hasChildNode() functions. Fine to call the parent's method.
  
  Revision  Changes    Path
  1.16      +1 -59     xml-xerces/c/src/dom/EntityReferenceImpl.cpp
  
  Index: EntityReferenceImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/EntityReferenceImpl.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- EntityReferenceImpl.cpp	2000/09/19 01:04:09	1.15
  +++ EntityReferenceImpl.cpp	2000/09/19 17:33:15	1.16
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: EntityReferenceImpl.cpp,v 1.15 2000/09/19 01:04:09 aruna1 Exp $
  + * $Id: EntityReferenceImpl.cpp,v 1.16 2000/09/19 17:33:15 aruna1 Exp $
    */
   
   /**
  @@ -166,64 +166,6 @@
   short EntityReferenceImpl::getNodeType() {
       return DOM_Node::ENTITY_REFERENCE_NODE;
   };
  -
  -
  -/**
  -* Query the number of children in the entity definition.
  -* (A bit more work than asking locally, but may be able to avoid
  -* or defer building the clone subtree.)
  -*
  -* @return org.w3c.dom.NodeList
  -*/
  -unsigned int EntityReferenceImpl::getLength()
  -{
  -    unsigned int length = ChildAndParentNode::getLength();
  -    
  -#if (0)                 // Till we add entity nodes to the doc root element.
  -    
  -    DocumentTypeImpl *doctype;
  -    NamedNodeMapImpl *entities;
  -    EntityImpl *entDef;
  -    if (null != (doctype = ownerDocument->getDoctype()) && 
  -        null != (entities = doctype->getEntities()) &&
  -        null != (entDef = (EntityImpl *)entities->getNamedItem(name))
  -        )
  -        length=entDef->getChildNodes()->getLength();
  -#endif
  -    
  -    return length;
  -}
  -
  -
  -/**
  -* Query the presence of children in the entity definition.
  -* (A bit more work than asking locally, but may be able to avoid
  -* or defer building the clone subtree.)
  -*
  -* @return boolean
  -*/
  -bool EntityReferenceImpl::hasChildNodes()
  -{
  -#if 0
  -    // defer this query for now. 
  -    //There's lot of work to be done here before it can return the actual value.
  -    bool haskids=false;
  -    
  -    DocumentTypeImpl *doctype;
  -    NamedNodeMapImpl *entities;
  -    EntityImpl *entDef;
  -    if (null != (doctype = ownerDocument->getDoctype()) && 
  -        null != (entities = doctype->getEntities()) &&
  -        null != (entDef = (EntityImpl *)entities->getNamedItem(name))
  -        )
  -        haskids=entDef->hasChildNodes();
  -    
  -    return haskids;
  -#endif
  -
  -    return firstChild!=null;
  -}
  -
   
   
   bool EntityReferenceImpl::isEntityReference()
  
  
  
  1.13      +1 -3      xml-xerces/c/src/dom/EntityReferenceImpl.hpp
  
  Index: EntityReferenceImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/EntityReferenceImpl.hpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- EntityReferenceImpl.hpp	2000/04/27 02:52:44	1.12
  +++ EntityReferenceImpl.hpp	2000/09/19 17:33:15	1.13
  @@ -58,7 +58,7 @@
    */
   
   /*
  - * $Id: EntityReferenceImpl.hpp,v 1.12 2000/04/27 02:52:44 lehors Exp $
  + * $Id: EntityReferenceImpl.hpp,v 1.13 2000/09/19 17:33:15 aruna1 Exp $
    */
   
   //
  @@ -86,8 +86,6 @@
       virtual NodeImpl * cloneNode(bool deep);
       virtual DOMString getNodeName();
       virtual short getNodeType();
  -    virtual unsigned int getLength();
  -    virtual bool hasChildNodes();
       virtual bool isEntityReference();
       virtual void setNodeValue(const DOMString &);
       virtual void setReadOnly(bool readOnly,bool deep);