Skip to content

feat: ESPI 4.0 Schema Compliance - Phase 0.4: Usage Domain Enums Batch 3#108

Merged
dfcoffin merged 1 commit intomainfrom
feature/issue-101-phase-0.4-usage-enums-batch3
Feb 6, 2026
Merged

feat: ESPI 4.0 Schema Compliance - Phase 0.4: Usage Domain Enums Batch 3#108
dfcoffin merged 1 commit intomainfrom
feature/issue-101-phase-0.4-usage-enums-batch3

Conversation

@dfcoffin
Copy link
Contributor

@dfcoffin dfcoffin commented Feb 6, 2026

Summary

Implements third batch of ESPI usage domain enumerations from espi.xsd:

  • ItemKind (10 values) - Billing line item classifications
  • ServiceKind (10 values) - Service types at UsagePoint
  • UnitSymbolKind (124 values) - Base units of measure

Total enum values in batch: 144

Implementation Details

All enums include:

  • Apache License 2.0 header (copyright 2025 Green Button Alliance, Inc.)
  • JAXB/Jakarta XML binding annotations (@XmlType, @XmlEnum, @XmlEnumValue)
  • getValue() and fromValue(int) methods
  • Comprehensive Javadoc from XSD documentation with line numbers
  • Type-safe enum constants with integer values

Testing

  • Unit tests: 638/638 passed ✓
  • Integration tests require Docker (will run in CI/CD)
  • Clean compilation verified
  • No breaking changes

Schema Compliance

Per ESPI 4.0 specification (NAESB REQ.21)

  • ItemKind: espi.xsd lines 1790-1850
  • ServiceKind: espi.xsd lines 3552-3622
  • UnitSymbolKind: espi.xsd lines 3934-4695

Related to #101

🤖 Generated with Claude Code

Implements third batch of ESPI usage domain enumerations from espi.xsd:
- ItemKind (10 values) - Billing line item classifications
- ServiceKind (10 values) - Service types at UsagePoint
- UnitSymbolKind (124 values) - Base units of measure

All enums include:
- Apache License 2.0 header (copyright 2025 Green Button Alliance, Inc.)
- JAXB/Jakarta XML binding annotations (@XmlType, @XmlEnum, @XmlEnumValue)
- getValue() and fromValue(int) methods
- Comprehensive Javadoc from XSD documentation with line numbers
- Type-safe enum constants with integer values

Total enum values in batch: 144
Per ESPI 4.0 specification (NAESB REQ.21)

Unit tests: 638/638 passed

Related to #101

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@dfcoffin dfcoffin merged commit 44ef6d8 into main Feb 6, 2026
5 checks passed
@dfcoffin dfcoffin deleted the feature/issue-101-phase-0.4-usage-enums-batch3 branch February 6, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant