Skip to content

Commit

Permalink
make xmlElement.getElementName() public
Browse files Browse the repository at this point in the history
  • Loading branch information
rrayst committed Oct 19, 2022
1 parent fa2e2cf commit 950a21d
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Annotation.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Annotation extends SchemaComponent {
}
}

protected getElementName(){
public getElementName(){
new JQName(SCHEMA_NS, 'annotation')
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Appinfo.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Appinfo extends SchemaComponent {
creator.createAppinfo(this, ctx)
}

protected getElementName(){
public getElementName(){
'appinfo'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class AttributeGroup extends SchemaComponent{
res.flatten()
}

protected getElementName(){
public getElementName(){
'attributeGroup'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class BuiltInSchemaType extends TypeDefinition {
String namespace
QName qname

protected getElementName() {
public getElementName() {
'built-in-schema-type'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ComplexContent extends SchemaComponent {
derivation instanceof Restriction
}

protected getElementName(){
public getElementName(){
new JQName(SCHEMA_NS, 'complexContent')
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/ComplexType.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ComplexType extends TypeDefinition {
}
}

protected getElementName(){
public getElementName(){
'complexType'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Documentation extends SchemaComponent {
creator.createDocumentation(this, ctx)
}

protected getElementName(){
public getElementName(){
'documentation'
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Element.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Element extends Declaration {
log.debug "child [$child] of element [$name] parsed!"
}

protected getElementName(){
public getElementName(){
'element'
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Extension.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import static com.predic8.soamodel.Consts.SCHEMA_NS

class Extension extends Derivation {

protected getElementName(){
public getElementName(){
new JQName(SCHEMA_NS, 'extension')
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Field.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Field extends SchemaComponent {
xpath = token.getAttributeValue( null , 'xpath')
}

protected getElementName(){
public getElementName(){
'field'
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Group.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Group extends SchemaComponent{
}
}

protected getElementName(){
public getElementName(){
// If changed to QName, SchemaDiffGenerator has to be modified.
'group'
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/GroupRef.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class GroupRef extends SchemaComponent{
obj && getClass() == obj.getClass() && ref == obj.ref
}

protected getElementName(){
public getElementName(){
'group'
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Import.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Import extends SchemaComponent {
creator.createImport(this, ctx.clone())
}

protected getElementName(){
public getElementName(){
new JQName(SCHEMA_NS, 'import')
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Include.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Include extends SchemaComponent {
schema.baseDir = origBaseDir
}

protected getElementName(){
public getElementName(){
new JQName(SCHEMA_NS, 'include')
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Restriction.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import static com.predic8.soamodel.Consts.SCHEMA_NS

class Restriction extends Derivation {

protected getElementName(){
public getElementName(){
new JQName(SCHEMA_NS, 'restriction')
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Schema.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class Schema extends SchemaComponent{
}
}

protected getElementName(){
public getElementName(){
'schema'
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/SchemaList.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SchemaList extends SchemaComponent {
simpleType == obj.simpleType )
}

protected getElementName(){
public getElementName(){
new JQName(SCHEMA_NS, 'list')
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Selector.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Selector extends SchemaComponent {
xpath = token.getAttributeValue( null , 'xpath')
}

protected getElementName() {
public getElementName() {
'selector'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SimpleContent extends SchemaComponent {
return extension ?: restriction
}

protected getElementName(){
public getElementName(){
new JQName(SCHEMA_NS, 'simpleContent')
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/SimpleType.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class SimpleType extends TypeDefinition {
list == obj.list )
}

protected getElementName(){
public getElementName(){
'simpleType'
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Union.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Union extends SchemaComponent{
simpleTypes == obj.simpleTypes )
}

protected getElementName(){
public getElementName(){
'union'
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/groovy/com/predic8/schema/Unique.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Unique extends SchemaComponent {
}
}

protected getElementName(){
public getElementName(){
'unique'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class BaseRestriction extends SchemaComponent {
obj && getClass() == obj.getClass() && facets == obj.facets && base == obj.base && childSimpleType == obj.childSimpleType
}

protected getElementName(){
public getElementName(){
new JQName(SCHEMA_NS, 'restriction')
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EnumerationFacet extends Facet {
creator.createEnumerationFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'enumeration'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FractionDigits extends Facet {
creator.createFractionDigits(this, ctx)
}

protected getElementName(){
public getElementName(){
'fractionDigits'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class LengthFacet extends Facet{
creator.createLengthFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'length'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MaxExclusiveFacet extends Facet {
creator.createMaxExclusiveFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'maxExclusive'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MaxInclusiveFacet extends Facet {
creator.createMaxInclusiveFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'maxInclusive'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MaxLengthFacet extends Facet {
creator.createMaxLengthFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'maxLength'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MinExclusiveFacet extends Facet {
creator.createMinExclusiveFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'minExclusive'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MinInclusiveFacet extends Facet {
creator.createMinInclusiveFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'minInclusive'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MinLengthFacet extends Facet {
creator.createMinLengthFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'minLength'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PatternFacet extends Facet {
creator.createPatternFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'pattern'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TotalDigitsFacet extends Facet {
creator.createTotalDigitsFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'totalDigits'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class WhiteSpaceFacet extends Facet{
creator.createWhiteSpaceFacet(this, ctx)
}

protected getElementName(){
public getElementName(){
'whiteSpace'
}

Expand Down

0 comments on commit 950a21d

Please sign in to comment.