core/stx_goodies_xmlsuite_core.st
changeset 300 b6d834208d33
parent 296 ea3dbc023c80
child 301 1bfe4ecc6c10
equal deleted inserted replaced
299:f06c5eba524d 300:b6d834208d33
     1 "{ Package: 'stx:goodies/xmlsuite/core' }"
     1 "{ Package: 'stx:goodies/xmlsuite/core' }"
       
     2 
       
     3 "{ NameSpace: Smalltalk }"
     2 
     4 
     3 LibraryDefinition subclass:#stx_goodies_xmlsuite_core
     5 LibraryDefinition subclass:#stx_goodies_xmlsuite_core
     4 	instanceVariableNames:''
     6 	instanceVariableNames:''
     5 	classVariableNames:''
     7 	classVariableNames:''
     6 	poolDictionaries:''
     8 	poolDictionaries:''
    25     "Created: / 20-06-2009 / 16:50:18 / Jan Vrany <vranyj1@fel.cvut.cz>"
    27     "Created: / 20-06-2009 / 16:50:18 / Jan Vrany <vranyj1@fel.cvut.cz>"
    26     "Modified: / 10-01-2010 / 11:07:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    28     "Modified: / 10-01-2010 / 11:07:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    27 !
    29 !
    28 
    30 
    29 mandatoryPreRequisites
    31 mandatoryPreRequisites
    30     "list all required mandatory packages.
    32     "list packages which are mandatory as a prerequisite.
    31      Packages are mandatory, if they contain superclasses of the package's classes
    33      This are packages containing superclasses of my classes and classes which
    32      or classes which are extended by this package.
    34      are extended by myself.
    33      This list can be maintained manually or (better) generated and
    35      They are mandatory, because we need these packages as a prerequisite for loading and compiling.
    34      updated by scanning the superclass hierarchies
    36      This method is generated automatically,
    35      (the browser has a menu function for that)
    37      by searching along the inheritance chain of all of my classes."
    36      However, often too much is found, and you may want to explicitely
    38 
    37      exclude individual packages in the #excludedFromPreRequisites method."
    39     ^ #(
    38 
    40         #'stx:libbasic'    "ArrayedCollection - extended"
    39     ^ #(
    41         #'stx:libview2'    "ApplicationModel - superclass of XMLv2::DOM3Inspector"
    40         #'stx:libbasic'    "Error - superclass of XMLv2::ParseError "
    42         #'stx:libwidg2'    "AbstractHierarchicalItem - superclass of XMLv2::DOM3Inspector::DOM3NodeItem"
    41         #'stx:libview2'    "Model - superclass of XMLv2::DOM3Inspector "
       
    42         #'stx:libwidg2'    "HierarchicalItem - superclass of XMLv2::DOM3Inspector::DOM3NodeItem "
       
    43     )
       
    44 !
       
    45 
       
    46 preRequisites
       
    47     "list all required packages.
       
    48      This list can be maintained manually or (better) generated and
       
    49      updated by scanning the superclass hierarchies and looking for
       
    50      global variable accesses. (the browser has a menu function for that)
       
    51      Howevery, often too much is found, and you may want to explicitely
       
    52      exclude individual packages in the #excludedFromPrerequisites method."
       
    53 
       
    54     ^ #(
       
    55         #'stx:goodies/xml/vw'
       
    56         #'stx:libbasic'    "Autoload - superclass of XMLv2::NodeNameTests "
       
    57         #'stx:libbasic2'    "URI - referenced by XMLv2::InputSource>>getSystemId "
       
    58         #'stx:libcomp'
       
    59         #'stx:libtool'    "InspectorView - referenced by XMLv2::DOM3Inspector>>domNodeInspectorView "
       
    60         #'stx:libview'    "Color - referenced by XMLv2::IndentingAndHighlightingXMLWriter class>>commentColor "
       
    61         #'stx:libview2'    "ApplicationModel - superclass of XMLv2::DOM3Inspector "
       
    62         #'stx:libwidg2'    "HierarchicalItem - superclass of XMLv2::DOM3Inspector::DOM3NodeItem "
       
    63     )
    43     )
    64 !
    44 !
    65 
    45 
    66 referencedPreRequisites
    46 referencedPreRequisites
    67     "list all packages containing classes referenced by the packages's members.
    47     "list packages which are a prerequisite, because they contain
    68      This list can be maintained manually or (better) generated and
    48      classes which are referenced by my classes.
    69      updated by looking for global variable accesses
    49      We do not need these packages as a prerequisite for compiling or loading,
    70      (the browser has a menu function for that)
    50      however, a class from it may be referenced during execution and having it
    71      However, often too much is found, and you may want to explicitely
    51      unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
    72      exclude individual packages in the #excludedFromPreRequisites method."
    52      includes explicit checks for the package being present.
    73 
    53      This method is generated automatically,
    74     ^ #(
    54      by searching all classes (and their packages) which are referenced by my classes."
    75         #'stx:libbasic2'    "Random - referenced by XMLv2::XMLGenerator>>generateElement: "
    55 
    76         #'stx:libtool'    "InspectorView - referenced by XMLv2::DOM3Inspector>>domNodeInspectorView "
    56     ^ #(
    77         #'stx:libview'    "Color - referenced by XMLv2::IndentingAndHighlightingXMLWriter class>>normalColor "
    57         #'stx:libbasic2'    "Random - referenced by XMLv2::XMLGenerator>>generateAttributeValue"
       
    58         #'stx:libtool'    "InspectorView - referenced by XMLv2::DOM3Inspector>>domNodeInspectorView"
       
    59         #'stx:libview'    "Color - referenced by XMLv2::IndentingAndHighlightingXMLWriter class>>attributeValueColor"
    78     )
    60     )
    79 !
    61 !
    80 
    62 
    81 subProjects
    63 subProjects
    82     "list packages which are known as subprojects.
    64     "list packages which are known as subprojects.
    86 
    68 
    87     ^ #(
    69     ^ #(
    88     )
    70     )
    89 ! !
    71 ! !
    90 
    72 
       
    73 !stx_goodies_xmlsuite_core class methodsFor:'description - compilation'!
       
    74 
       
    75 additionalLinkLibraries_bc_dot_mak
       
    76     "allows for additional static libraries to be added to the bc.mak file.
       
    77      Subclasses may redefine this"
       
    78 
       
    79     "backward compatibilty with old projects"
       
    80 
       
    81     ^'"expat-2.0.1/bcb5/release/libexpats_mtd.lib"'
       
    82 
       
    83     "Created: / 09-01-2010 / 14:01:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    84 !
       
    85 
       
    86 additionalLinkLibraries_make_dot_proto
       
    87     "allows for additional static libraries to be added to the make.proto file."
       
    88 
       
    89     ^ 'expat-2.0.1/build/lib/libexpat.a'
       
    90 
       
    91     "Created: / 22-08-2006 / 23:53:33 / cg"
       
    92 !
       
    93 
       
    94 additionalRules_bc_dot_mak
       
    95     "obsolete - kept for compatibility with old project files"
       
    96     
       
    97     ^ '
       
    98 expat-2.0.1/bcb5/release/libexpats_mtd.lib:
       
    99         cd expat-2.0.1/bcb5
       
   100         $(MAKE)
       
   101         cd ..\..\..
       
   102 '
       
   103 
       
   104     "Created: / 09-01-2010 / 14:03:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   105     "Modified: / 22-04-2013 / 16:38:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   106 !
       
   107 
       
   108 additionalRules_make_dot_proto
       
   109     "allows for additional rules to be added to the make.proto file."
       
   110 
       
   111     ^ '
       
   112 expat-2.0.1/build/lib/libexpat.a:
       
   113         mkdir expat-2.0.1/build && cd expat-2.0.1/build && CC=$(CC) CFLAGS="$(CCCONFOPT) -fPIC" ../configure --prefix=$$PWD
       
   114         $(MAKE) -C expat-2.0.1/build
       
   115         $(MAKE) -C expat-2.0.1/build install
       
   116 '
       
   117 
       
   118     "Created: / 22-08-2006 / 23:59:16 / cg"
       
   119     "Modified: / 22-04-2013 / 16:38:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   120 !
       
   121 
       
   122 additionalTargets_bc_dot_mak
       
   123     "obsolete - kept for compatibility with old project files"
       
   124     
       
   125     ^ 'expat-2.0.1/bcb5/release/libexpats_mtd.lib'
       
   126 
       
   127     "Created: / 09-01-2010 / 14:02:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   128 !
       
   129 
       
   130 additionalTargets_make_dot_proto
       
   131     "allows for additional targets to be added to the make.proto file."
       
   132 
       
   133     ^ 'expat-2.0.1/build/lib/libexpat.a'
       
   134 
       
   135     "Created: / 22-08-2006 / 23:53:33 / cg"
       
   136 !
       
   137 
       
   138 localIncludes
       
   139     "allow for the specification of additional include directories"
       
   140 
       
   141     ^ '-Iexpat-2.0.1/lib'
       
   142 
       
   143     "Created: / 09-01-2010 / 14:03:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   144 ! !
       
   145 
    91 !stx_goodies_xmlsuite_core class methodsFor:'description - contents'!
   146 !stx_goodies_xmlsuite_core class methodsFor:'description - contents'!
    92 
   147 
    93 classNamesAndAttributes
   148 classNamesAndAttributes
    94     "lists the classes which are to be included in the project.
   149     "lists the classes which are to be included in the project.
    95      Each entry in the list may be: a single class-name (symbol),
   150      Each entry in the list may be: a single class-name (symbol),
    96      or an array-literal consisting of class name and attributes.
   151      or an array-literal consisting of class name and attributes.
    97      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
   152      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
    98 
   153 
    99     ^ #(
   154     ^ #(
   100         "<className> or (<className> attributes...) in load order"
   155         "<className> or (<className> attributes...) in load order"
   101         (#'XMLv2::AbstractDOM3TestCase' autoload)
       
   102         #'XMLv2::AbstractSAX2Handler'
   156         #'XMLv2::AbstractSAX2Handler'
   103         (#'XMLv2::AbstractW3CDOM3TestCase' autoload)
       
   104         #'XMLv2::DOM3Inspector'
   157         #'XMLv2::DOM3Inspector'
   105         #'XMLv2::DOM3NodeDumper'
   158         #'XMLv2::DOM3NodeDumper'
   106         (#'XMLv2::DOM3Tests' autoload)
       
   107         (#'XMLv2::DOMBuilder' autoload)
       
   108         #'XMLv2::DOMConfiguration'
   159         #'XMLv2::DOMConfiguration'
   109         #'XMLv2::DOMError'
   160         #'XMLv2::DOMError'
   110         #'XMLv2::DOMErrorHandler'
   161         #'XMLv2::DOMErrorHandler'
   111         #'XMLv2::DOMErrorMonitor'
   162         #'XMLv2::DOMErrorMonitor'
   112         #'XMLv2::DOMImplementation'
   163         #'XMLv2::DOMImplementation'
   113         #'XMLv2::DOMImplementationRegistry'
   164         #'XMLv2::DOMImplementationRegistry'
   114         (#'XMLv2::EncodingTests' autoload)
       
   115         #'XMLv2::InputSource'
   165         #'XMLv2::InputSource'
   116         (#'XMLv2::JamesClarkCanonicalXMLWriterTestResource' autoload)
       
   117         (#'XMLv2::JamesClarkCanonicalXMLWriterTests' autoload)
       
   118         (#'XMLv2::JamesClarkXMLTests' autoload)
       
   119         #'XMLv2::NameList'
   166         #'XMLv2::NameList'
   120         #'XMLv2::Node'
   167         #'XMLv2::Node'
   121         #'XMLv2::NodeList'
   168         #'XMLv2::NodeList'
   122         #'XMLv2::NodeName'
   169         #'XMLv2::NodeName'
   123         (#'XMLv2::NodeNameTests' autoload)
       
   124         (#'XMLv2::OASISXMLTests' autoload)
       
   125         #'XMLv2::ParseError'
   170         #'XMLv2::ParseError'
   126         #'XMLv2::Parser'
   171         #'XMLv2::Parser'
   127         #'XMLv2::SAXError'
   172         #'XMLv2::SAXError'
   128         #'XMLv2::TypeInfo'
   173         #'XMLv2::TypeInfo'
   129         #'XMLv2::UserDataHandler'
   174         #'XMLv2::UserDataHandler'
   130         (#'XMLv2::W3XMLTestSuiteResource' autoload)
       
   131         #'XMLv2::XMLBuilder'
   175         #'XMLv2::XMLBuilder'
   132         (#'XMLv2::XMLBuilderTests' autoload)
       
   133         #'XMLv2::XMLEventRecorder'
   176         #'XMLv2::XMLEventRecorder'
   134         #'XMLv2::XMLReader'
   177         #'XMLv2::XMLReader'
   135         #'XMLv2::XMLReaderImplementationQuery'
   178         #'XMLv2::XMLReaderImplementationQuery'
   136         (#'XMLv2::XMLReaderTests' autoload)
       
   137         #'XMLv2::XMLWriter'
   179         #'XMLv2::XMLWriter'
   138         (#'XMLv2::XMLWriterTests' autoload)
       
   139         #'stx_goodies_xmlsuite_core'
   180         #'stx_goodies_xmlsuite_core'
   140         #'XMLv2::Attr'
   181         #'XMLv2::Attr'
   141         #'XMLv2::CharacterData'
   182         #'XMLv2::CharacterData'
   142         (#'XMLv2::CincomDOMXMLReader' autoload)
       
   143         (#'XMLv2::CincomImplementation' autoload)
       
   144         #'XMLv2::ContentHandler'
   183         #'XMLv2::ContentHandler'
   145         #'XMLv2::DOM3XMLReader'
   184         #'XMLv2::DOM3XMLReader'
   146         #'XMLv2::DOMException'
   185         #'XMLv2::DOMException'
   147         #'XMLv2::DTDHandler'
   186         #'XMLv2::DTDHandler'
   148         #'XMLv2::Document'
   187         #'XMLv2::Document'
   151         #'XMLv2::Element'
   190         #'XMLv2::Element'
   152         #'XMLv2::Entity'
   191         #'XMLv2::Entity'
   153         #'XMLv2::EntityReference'
   192         #'XMLv2::EntityReference'
   154         #'XMLv2::EntityResolver'
   193         #'XMLv2::EntityResolver'
   155         #'XMLv2::ErrorHandler'
   194         #'XMLv2::ErrorHandler'
       
   195         #'XMLv2::ExpatXMLReader'
   156         #'XMLv2::IndentingXMLWriter'
   196         #'XMLv2::IndentingXMLWriter'
   157         (#'XMLv2::JamesClarkCanonicalXMLWriter' autoload)
       
   158         #'XMLv2::NamedNodeMap'
   197         #'XMLv2::NamedNodeMap'
   159         (#'XMLv2::NodeTests' autoload)
       
   160         #'XMLv2::Notation'
   198         #'XMLv2::Notation'
   161         #'XMLv2::ProcessingInstruction'
   199         #'XMLv2::ProcessingInstruction'
   162         #'XMLv2::SAXParseError'
   200         #'XMLv2::SAXParseError'
   163         (#'XMLv2::W3CDOM3CoreTests' autoload)
       
   164         #'XMLv2::XMLGenerator'
   201         #'XMLv2::XMLGenerator'
   165         #'XMLv2::XMLSuiteDOM3Implementation'
   202         #'XMLv2::XMLSuiteDOM3Implementation'
   166         #'XMLv2::Attributes'
   203         #'XMLv2::Attributes'
   167         #'XMLv2::CDATASection'
   204         #'XMLv2::CDATASection'
   168         #'XMLv2::Comment'
   205         #'XMLv2::Comment'
   169         #'XMLv2::DOM3Builder'
   206         #'XMLv2::DOM3Builder'
   170         #'XMLv2::IndentingAndHighlightingXMLWriter'
   207         #'XMLv2::IndentingAndHighlightingXMLWriter'
       
   208         #'XMLv2::Text'
       
   209         (#'XMLv2::AbstractDOM3TestCase' autoload)
       
   210         (#'XMLv2::AbstractW3CDOM3TestCase' autoload)
       
   211         (#'XMLv2::DOM3Tests' autoload)
       
   212         (#'XMLv2::DOMBuilder' autoload)
       
   213         (#'XMLv2::EncodingTests' autoload)
       
   214         (#'XMLv2::JamesClarkCanonicalXMLWriterTestResource' autoload)
       
   215         (#'XMLv2::JamesClarkCanonicalXMLWriterTests' autoload)
       
   216         (#'XMLv2::JamesClarkXMLTests' autoload)
       
   217         (#'XMLv2::NodeNameTests' autoload)
       
   218         (#'XMLv2::OASISXMLTests' autoload)
       
   219         (#'XMLv2::W3XMLTestSuiteResource' autoload)
       
   220         (#'XMLv2::XMLBuilderTests' autoload)
       
   221         (#'XMLv2::XMLReaderTests' autoload)
       
   222         (#'XMLv2::XMLWriterTests' autoload)
       
   223         (#'XMLv2::CincomDOMXMLReader' autoload)
       
   224         (#'XMLv2::CincomImplementation' autoload)
       
   225         (#'XMLv2::JamesClarkCanonicalXMLWriter' autoload)
       
   226         (#'XMLv2::NodeTests' autoload)
       
   227         (#'XMLv2::W3CDOM3CoreTests' autoload)
   171         (#'XMLv2::OldXMLWriter' autoload)
   228         (#'XMLv2::OldXMLWriter' autoload)
   172         #'XMLv2::Text'
       
   173         (#'XMLv2::XMLSyntaxHighlightingWriter' autoload)
   229         (#'XMLv2::XMLSyntaxHighlightingWriter' autoload)
   174     )
   230     )
   175 !
   231 !
   176 
   232 
   177 extensionMethodNames
   233 extensionMethodNames
   178     "lists the extension methods which are to be included in the project.
   234     "list class/selector pairs of extensions.
   179      Entries are 2-element array literals, consisting of class-name and selector."
   235      A correponding method with real names must be present in my concrete subclasses"
   180 
   236 
   181     ^ #(
   237     ^ #(
   182         Character isInXMLCharSpec:
   238         Character isInXMLCharSpec:
   183         Character isXMLBaseChar
   239         Character isXMLBaseChar
   184         Character isXMLChar
   240         Character isXMLChar
   245 
   301 
   246 version
   302 version
   247     ^'$Id$'
   303     ^'$Id$'
   248 !
   304 !
   249 
   305 
       
   306 version_HG
       
   307     ^ '$Changeset: <not expanded> $'
       
   308 !
       
   309 
   250 version_SVN
   310 version_SVN
   251     ^ '$Id$'
   311     ^ '$Id$'
   252 ! !
   312 ! !
   253 
   313