h:c@sdZddlmZdd!dYZdejfdYZdd"dYZd d#d YZd d$d YZd ej fdYZ ddl Z e j dd!dkrddl mZndefdYZdddgZdddgZddddd gZdS(%sA Python translation of the SAX2 parser API. This file provides only default classes with absolutely minimum functionality, from which drivers and applications can be subclassed. Many of these classes are empty and are included only as documentation of the interfaces. i(tsaxlibtLexicalHandlercBs\eZdZdZdZdZdZdZdZdZ dZ d Z RS( sY Default handler for lexical events Note: All methods can raise SAXException s#http://xml.org/sax/handlers/lexicalcCsdS(sThe XML DeclarationN((tselftversiontencodingt standalone((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytxmlDeclscCsdS(s3Invoked at the beginning of the DOCTYPE declarationN((RtdoctypetpublicIDtsystemID((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytstartDTDscCsdS(s Invoked after all components of the DOCTYPE declaration, including both internal and external DTD subsets N((R((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytendDTDscCsdS(s Note: If an external DTD subset is read, it will invoke this method with special entity name of "[DTD]" N((Rtname((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt startEntity!scCsdS(N((RR ((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt endEntity(scCsdS(s XML CommentN((Rttext((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytcomment+scCsdS(sBeginning of CDATA SectionN((R((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt startCDATA/scCsdS(sEnd of CDATA SectionN((R((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytendCDATA3s( t__name__t __module__t__doc__t handlerIdRR R R RRRR(((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyR s       tAttributeList2cBseZdZdZRS(cCsdS(s( Whether the attribute value with the given name or index was explicitly specified in the element, or was determined from the default. Parameter can be either integer index or attribute name. None (the default) signals 'Don't Know', else a boolean return N((Rtid((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt isSpecified9scCsdS(s XML 1,0 parsers are required to report all entity references, even if unexpanded. This includes those in attribute strings. Many parsers and apps ignore this, but for full conformance, This method can be called to get a list of indexes referring to entity references within the attribute value string for the given name or index. Parameter can be either integer index or attribute name. N((RR((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytgetEntityRefListBs (RRRR(((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyR8s t EntityRefListcBs;eZdZdZdZdZdZdZRS(sb This is the entity-reference list returned by AttributeList2.getEntityRefList(index) cCsdS(s(Return the number of Entity Ref pointersN((R((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt getLengthTscCsdS(s:Return the name of the entity reference at the given indexN((Rtindex((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt getEntityNameXscCsdS(se Return the string start position of the entity reference at the given index N((RR((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytgetEntityRefStart\scCsdS(sc Return the string end position of the entity reference at the given index N((RR((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytgetEntityRefEndcscCsdS(sAlias for getLength.N((R((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt__len__js(RRRRRRR R!(((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyROs     tDTDDeclHandlercBsheZdZdZdZdZdZdZdZdZ dZ dZ dZ dZ dZd ZRS( s3 A handler for a minimal set of DTD Events iiiis$http://xml.org/sax/handlers/dtd-declcCsdS(s Report an element-type declaration. name and model are strings, modelType is an enumerated int from 1 to 4 N((RR t modelTypetmodel((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt elementDecl~scCsdS(s Report an attribute declaration. The first 4 parameters are strings, defaultType is an integer from 1 to 4, entityRefs is an EntityRefList N((RtelementR ttypet defaultValuet defaultTypet entityRefs((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt attributeDecls cCsdS(s Report an external entity declaration. All parameters are strings except for isParameterEntity, which is 0 or 1 N((RR tisParameterEntitytpublicIdtsystemId((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytexternalEntityDeclscCsdS(s Report an external entity declaration. All parameters are strings except for isParameterEntity, which is 0 or 1 N((RR R,tvalue((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytinternalEntityDecls(RRRtMODEL_ELEMENTSt MODEL_MIXEDt MODEL_ANYt MODEL_EMPTYtATTRIBUTE_DEFAULTEDtATTRIBUTE_IMPLIEDtATTRIBUTE_REQUIREDtATTRIBUTE_FIXEDRR%R+R/R1(((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyR"os  tNamespaceHandlercBs&eZdZdZdZdZRS(sa Receive callbacks for the start and end of the scope of each namespace declaration. s%http://xml.org/sax/handlers/namespacecCsdS(s Report the start of the scope of a namespace declaration. This event will be reported before the startElement event for the element containing the namespace declaration. All declarations must be properly nested; if there are multiple declarations in a single element, they must end in the opposite order that they began. both parameters are strings N((Rtprefixturi((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytstartNamespaceDeclScopes cCsdS(s Report the end of the scope of a namespace declaration. This event will be reported after the endElement event for the element containing the namespace declaration. Namespace scopes must be properly nested. N((RR;((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytendNamespaceDeclScopes(RRRRR=R>(((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyR:s t ModParsercBs2eZdZdZdZdZdZRS(s< All methods may raise SAXNotSupportedException cCsdS(s8 featureId is a string, state a boolean N((Rt featureIDtstate((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt setFeaturescCsdS(sC handlerID is a string, handler a handler instance N((Rt handlerIDthandler((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyt setHandlerscCsdS(s= propID is a string, value of arbitrary type N((RtpropIDR0((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytsetscCsdS(N((RRF((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pytgets(RRRRBRERGRH(((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyR?s    Niitjava(t ExceptiontSAXNotSupportedExceptioncBseZdZRS(sr Indicate that a SAX2 parser interface does not support a particular feature or handler, or property. (RRR(((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyRKss#http://xml.org/sax/handlers/lexicals$http://xml.org/sax/handlers/dtd-decls%http://xml.org/sax/handlers/namespaces+http://xml.org/sax/properties/namespace-seps&http://xml.org/sax/properties/dom-nodes(http://xml.org/sax/properties/xml-strings&http://xml.org/sax/features/validations5http://xml.org/sax/features/external-general-entitiess7http://xml.org/sax/features/external-parameter-entitiess&http://xml.org/sax/features/namespacess*http://xml.org/sax/features/normalize-text(((((Rtxml.saxRRt AttributeListRRR"R:tParserR?tsystplatformt exceptionsRJRKt CoreHandlerstCorePropertiest CoreFeatures(((sL/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/ext/reader/Sax2Lib.pyts,- 4