Package Bio :: Package EUtils :: Module POM :: Class ElementNode
[show private | hide private]
[frames | no frames]

Class ElementNode

Known Subclasses:
apad, Attribute, Attribute, Base, Brief, Count, Count, Database, DbFrom, DbInfo, DbList, DbName, DbTo, DbTo, Descriptor, DocSum, eInfoResult, eLinkResult, ePostResult, ERROR, ERROR, ERROR, ERROR, ERROR, ErrorList, eSearchResult, eSummaryResult, ExclQuery, Explode, Field, Field, FieldNotFound, FiledList, Fragments, From, Hierarchy, IconUrl, IconUrl, Id, Id, Id, Id, IdCheckList, IdList, IdList, IdUrlList, IdUrlSet, InclQuery, Info, InvalidIdList, IsDate, IsNumerical, Item, Link, Link, Link, LinkId, LinkList, LinkName, LinkSet, LinkSet, LinkSetDb, Menu, MenuName, Name, Name, Name, NameAbbr, NameAbbr, normalize, ObjectList, ObjectSelector, ObjectUrl, ObjId, ObjUrl, OP, OutputMessage, pad, PhraseIgnored, PhraseNotFound, Provider, Provider, ProviderId, Query, QueryKey, QueryKey, QueryTranslation, QuotedPhraseNotFound, RetMax, RetStart, Rule, RuleToMany, Score, Separator, SingleToken, strip, SubjectType, SubjectType, SubObjectSelector, SubProvider, subs, Term, TermCount, TermSet, To, tolower, toupper, Translation, TranslationSet, TranslationStack, Url, Url, UrlName, WarningList, WebEnv, WebEnv

Method Summary
  __init__(self, **attribs)
  __delattr__(self, name)
  __delitem__(self, index)
  __getattr__(self, name)
  __getitem__(self, index)
  __iter__(self)
  __len__(self)
  __nonzero__(self)
  __repr__(self)
  __setattr__(self, name, value)
  __setitem__(self, index, obj)
  __str__(self)
  __unicode__(self)
  add(self, klass, **kwargs)
  add_text(self, text)
Adding text to elements is so common, there is a special method for it.
  append(self, obj)
  attributes(self)
  comment(self)
  destroy(self)
destroy() Remove this node and all child node references.
  detach(self)
  extend(self, objlist)
  find(self, elclass, **attribs)
  find_elements(self, pathelement)
  full_repr(self)
  fullpath(self)
fullpath() returns the ElementNode's full path as a string in xpath format.
  get(self, index, default)
  get_attribute(self, name)
get_attribute(name) This exists to set attributes that have names with illegal Python identifier characters.
  get_children(self)
  get_element(self, pathelement)
  get_parent(self)
  getall(self, elclass, depth, collect)
  has_attribute(self, name)
  has_attributes(self)
  has_children(self)
  has_key(self, index)
  hasAttributes(self)
  index(self, obj)
  inherit_indent(self)
clears indentation flag so that it may be acquired from parent.
  insert(self, index, obj)
  matchpath(self, pathelement)
  node(self)
  pathname(self)
pathname() returns the ElementNode as a string in xpath format.
  processing_instruction(self)
  reparent(self, newparent)
  replace_text(self, text)
  set_attribute(self, name, val)
set_attribute(name, value) This exists to set attributes that have names with illegal Python identifier characters.
  set_indented(self, tf)
  set_inline(self, tf)
  set_level(self, level)
  set_namespace(self, ns)
  text(self)
  tostring(self)
  use_lowercase(self)
  use_truecase(self)
  use_uppercase(self)
  _acquire(self, name)
  _attr_str(self)
  _attr_unistr(self)
  _attribs_match(self, obj, attribdict)
  _empty_str(self)
  _empty_unistr(self)
  _find_index(self, index)
  _find_node(self, eltype, collect)
  _get_ns(self)
  _non_empty_str(self)
  _non_empty_unistr(self)
  _tabs(self)
  _validate_attribute(self, name)
  _verify_attributes(self)

Class Variable Summary
NoneType ATTLIST = None                                                                  
NoneType CONTENTMODEL = None                                                                  
dict _acquired = {'_namespace': None, '_indented': 1}

Method Details

add_text(self, text)

Adding text to elements is so common, there is a special method for it.

destroy(self)

destroy() Remove this node and all child node references.

fullpath(self)

fullpath() returns the ElementNode's full path as a string in xpath format.

get_attribute(self, name)

get_attribute(name) This exists to set attributes that have names with illegal Python identifier characters.

inherit_indent(self)

clears indentation flag so that it may be acquired from parent.

pathname(self)

pathname() returns the ElementNode as a string in xpath format.

set_attribute(self, name, val)

set_attribute(name, value) This exists to set attributes that have names with illegal Python identifier characters.

Class Variable Details

ATTLIST

Type:
NoneType
Value:
None                                                                  

CONTENTMODEL

Type:
NoneType
Value:
None                                                                  

_acquired

Type:
dict
Value:
{'_namespace': None, '_indented': 1}                                   

Generated by Epydoc 2.1 on Wed Jan 31 09:57:59 2007 http://epydoc.sf.net