Skip to content

Commit

Permalink
Baseline and package renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Nov 10, 2024
1 parent 2696b66 commit 49ae136
Show file tree
Hide file tree
Showing 36 changed files with 1,691 additions and 1,691 deletions.
32 changes: 0 additions & 32 deletions repository/BaselineOfOPXMI/BaselineOfOPXMI.class.st

This file was deleted.

1 change: 0 additions & 1 deletion repository/BaselineOfOPXMI/package.st

This file was deleted.

32 changes: 32 additions & 0 deletions repository/BaselineOfOpenPonkXMI/BaselineOfOpenPonkXMI.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"
Baseline for https://github.com/OpenPonk/xmi
"
Class {
#name : 'BaselineOfOpenPonkXMI',
#superclass : 'BaselineOf',
#category : 'BaselineOfOpenPonkXMI',
#package : 'BaselineOfOpenPonkXMI'
}

{ #category : 'baselines' }
BaselineOfOpenPonkXMI >> baseline: spec [

<baseline>
spec for: #common do: [
spec
baseline: 'OpenPonkXMLDOMVisitor'
with: [
spec repository: 'github://OpenPonk/xml-dom-visitor' ].
spec baseline: 'XMLWriter' with: [
spec
loads: #( 'Core' );
repository:
'github://pharo-contributions/XML-XMLWriter:v3.1.x' ].
spec
package: 'OpenPonk-XMI'
with: [ spec requires: #( 'OpenPonkXMLDOMVisitor' 'XMLWriter' ) ].
spec
package: 'OpenPonk-XMI-Inspection'
with: [ spec requires: #( 'OpenPonk-XMI' ) ].
spec group: 'default' with: #( 'OpenPonk-XMI' 'OpenPonk-XMI-Inspection' ) ]
]
1 change: 1 addition & 0 deletions repository/BaselineOfOpenPonkXMI/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : 'BaselineOfOpenPonkXMI' }
1 change: 0 additions & 1 deletion repository/OP-XMI-GTExtensions/package.st

This file was deleted.

1 change: 0 additions & 1 deletion repository/OP-XMI/package.st

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'OPXMIElement' }

{ #category : '*OP-XMI-GTExtensions' }
OPXMIElement >> writeXMLOn: aWriter [
aWriter tag: self xmiName
]
Extension { #name : 'OPXMIElement' }

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIElement >> writeXMLOn: aWriter [
aWriter tag: self xmiName
]
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Extension { #name : 'OPXMIInfoItems' }

{ #category : '*OP-XMI-GTExtensions' }
OPXMIInfoItems >> treeViewLabelText [
^ self asHighlightedTextWrittenWith: [ :writer | self writeTreeViewLabelXMLOn: writer ]
]

{ #category : '*OP-XMI-GTExtensions' }
OPXMIInfoItems >> writeTreeViewLabelXMLOn: aWriter [
self writeXMLOn: aWriter
]

{ #category : '*OP-XMI-GTExtensions' }
OPXMIInfoItems >> writeXMLOn: aWriter [
]
Extension { #name : 'OPXMIInfoItems' }

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIInfoItems >> treeViewLabelText [
^ self asHighlightedTextWrittenWith: [ :writer | self writeTreeViewLabelXMLOn: writer ]
]

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIInfoItems >> writeTreeViewLabelXMLOn: aWriter [
self writeXMLOn: aWriter
]

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIInfoItems >> writeXMLOn: aWriter [
]
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
Extension { #name : 'OPXMIObjectElement' }

{ #category : '*OP-XMI-GTExtensions' }
OPXMIObjectElement >> inspectionProperties [

"<inspectorPresentationOrder: 5 title: 'Tree'>"
^ SpTreePresenter new
roots: { self };
children: [ :each |
each isObjectElement
ifTrue: [ each containedItems ]
ifFalse: [
each isReferenceItem
ifTrue: [ each referencedElements ]
ifFalse: [ #( ) ] ] ];
display: [ :each | each treeViewLabelText ];
yourself
]

{ #category : '*OP-XMI-GTExtensions' }
OPXMIObjectElement >> writeXMLOn: aWriter [
aWriter
tag: self xmiName
attributes:
({#xmi:id -> self xmiId.
#xmi:type -> self xmiType} select: [:pair | pair value isNotNil])
]
Extension { #name : 'OPXMIObjectElement' }

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIObjectElement >> inspectionProperties [

"<inspectorPresentationOrder: 5 title: 'Tree'>"
^ SpTreePresenter new
roots: { self };
children: [ :each |
each isObjectElement
ifTrue: [ each containedItems ]
ifFalse: [
each isReferenceItem
ifTrue: [ each referencedElements ]
ifFalse: [ #( ) ] ] ];
display: [ :each | each treeViewLabelText ];
yourself
]

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIObjectElement >> writeXMLOn: aWriter [
aWriter
tag: self xmiName
attributes:
({#xmi:id -> self xmiId.
#xmi:type -> self xmiType} select: [:pair | pair value isNotNil])
]
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Extension { #name : 'OPXMIReferenceAttribute' }

{ #category : '*OP-XMI-GTExtensions' }
OPXMIReferenceAttribute >> writeXMLOn: aWriter [
aWriter
tag: self xmiName
with: [ self referencedElements do: [ :each | each writeXMLOn: aWriter ] ]
]
Extension { #name : 'OPXMIReferenceAttribute' }

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIReferenceAttribute >> writeXMLOn: aWriter [
aWriter
tag: self xmiName
with: [ self referencedElements do: [ :each | each writeXMLOn: aWriter ] ]
]
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Extension { #name : 'OPXMIReferenceElement' }

{ #category : '*OP-XMI-GTExtensions' }
OPXMIReferenceElement >> writeXMLOn: aWriter [
href
ifNil: [ aWriter tag: self xmiName ]
ifNotNil: [ aWriter tag: self xmiName attributes: {#href -> href} ]
]
Extension { #name : 'OPXMIReferenceElement' }

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIReferenceElement >> writeXMLOn: aWriter [
href
ifNil: [ aWriter tag: self xmiName ]
ifNotNil: [ aWriter tag: self xmiName attributes: {#href -> href} ]
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'OPXMIValueAttribute' }

{ #category : '*OP-XMI-GTExtensions' }
OPXMIValueAttribute >> writeXMLOn: aWriter [
aWriter tag: self xmiName with: self value
]
Extension { #name : 'OPXMIValueAttribute' }

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIValueAttribute >> writeXMLOn: aWriter [
aWriter tag: self xmiName with: self value
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'OPXMIValueElement' }

{ #category : '*OP-XMI-GTExtensions' }
OPXMIValueElement >> writeXMLOn: aWriter [
aWriter tag: self xmiName with: self value
]
Extension { #name : 'OPXMIValueElement' }

{ #category : '*OpenPonk-XMI-Inspection' }
OPXMIValueElement >> writeXMLOn: aWriter [
aWriter tag: self xmiName with: self value
]
1 change: 1 addition & 0 deletions repository/OpenPonk-XMI-Inspection/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : 'OpenPonk-XMI-Inspection' }
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
Class {
#name : 'OPXMIAttribute',
#superclass : 'OPXMIInfoItems',
#instVars : [
'xmiName'
],
#category : 'OP-XMI-DOM',
#package : 'OP-XMI',
#tag : 'DOM'
}

{ #category : 'testing' }
OPXMIAttribute class >> isAbstract [
^ self = OPXMIAttribute
]

{ #category : 'testing' }
OPXMIAttribute >> isAttribute [
^ true
]

{ #category : 'accessing' }
OPXMIAttribute >> xmiName [
^ xmiName
]

{ #category : 'accessing' }
OPXMIAttribute >> xmiName: aString [
xmiName := aString
]
Class {
#name : 'OPXMIAttribute',
#superclass : 'OPXMIInfoItems',
#instVars : [
'xmiName'
],
#category : 'OpenPonk-XMI-DOM',
#package : 'OpenPonk-XMI',
#tag : 'DOM'
}

{ #category : 'testing' }
OPXMIAttribute class >> isAbstract [
^ self = OPXMIAttribute
]

{ #category : 'testing' }
OPXMIAttribute >> isAttribute [
^ true
]

{ #category : 'accessing' }
OPXMIAttribute >> xmiName [
^ xmiName
]

{ #category : 'accessing' }
OPXMIAttribute >> xmiName: aString [
xmiName := aString
]
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
Class {
#name : 'OPXMIElement',
#superclass : 'OPXMIInfoItems',
#instVars : [
'xmiName'
],
#category : 'OP-XMI-DOM',
#package : 'OP-XMI',
#tag : 'DOM'
}

{ #category : 'testing' }
OPXMIElement class >> isAbstract [
^ self = OPXMIElement
]

{ #category : 'testing' }
OPXMIElement >> isElement [
^ true
]

{ #category : 'accessing' }
OPXMIElement >> xmiName [
^ xmiName
]

{ #category : 'accessing' }
OPXMIElement >> xmiName: aString [
xmiName := aString
]
Class {
#name : 'OPXMIElement',
#superclass : 'OPXMIInfoItems',
#instVars : [
'xmiName'
],
#category : 'OpenPonk-XMI-DOM',
#package : 'OpenPonk-XMI',
#tag : 'DOM'
}

{ #category : 'testing' }
OPXMIElement class >> isAbstract [
^ self = OPXMIElement
]

{ #category : 'testing' }
OPXMIElement >> isElement [
^ true
]

{ #category : 'accessing' }
OPXMIElement >> xmiName [
^ xmiName
]

{ #category : 'accessing' }
OPXMIElement >> xmiName: aString [
xmiName := aString
]
Loading

0 comments on commit 49ae136

Please sign in to comment.