Skip to content

feat(phase-0.3): ESPI Usage Domain Enums Batch 2#107

Merged
dfcoffin merged 1 commit intomainfrom
feature/issue-101-phase-0.3-usage-enums-batch2
Feb 5, 2026
Merged

feat(phase-0.3): ESPI Usage Domain Enums Batch 2#107
dfcoffin merged 1 commit intomainfrom
feature/issue-101-phase-0.3-usage-enums-batch2

Conversation

@dfcoffin
Copy link
Contributor

@dfcoffin dfcoffin commented Feb 5, 2026

Summary

Generate second batch of 4 ESPI usage domain enumerations from espi.xsd schema.

Enums Created

  • PhaseCodeKind (23 values) - Phase identifiers (ABCN, ABC, AN, BN, CN, etc.)
  • QualityOfReading (14 values) - Reading quality codes (valid, estimated, projected, etc.)
  • TimeAttributeKind (20 values) - Time interval methods (10-min, 15-min, 60-min, fixed blocks, etc.)
  • UnitMultiplierKind (13 values) - SI unit multipliers (pico to tera, powers of 10)

Features

All enums include:

  • ✅ Apache License 2.0 header (2025)
  • ✅ JAXB/Jakarta XML annotations (@XmlEnum, @XmlEnumValue)
  • ✅ Comprehensive Javadoc from XSD schema
  • getValue() method returning int
  • fromValue(int) static factory method
  • ✅ Package: org.greenbuttonalliance.espi.common.domain.usage.enums
  • ✅ Follows same pattern as batch 1

Based On

ESPI 4.0 espi.xsd schema (NAESB REQ.21)

🤖 Generated with Claude Code

Generated 4 ESPI usage domain enumerations:
- PhaseCodeKind (23 values) - Phase identifiers
- QualityOfReading (14 values) - Reading quality codes
- TimeAttributeKind (20 values) - Time interval methods
- UnitMultiplierKind (13 values) - Power of ten multipliers

All enums include:
- Apache License 2.0 (2025)
- JAXB annotations for XML marshalling
- Comprehensive Javadoc from XSD
- getValue() and fromValue() methods

Based on ESPI 4.0 espi.xsd schema.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@dfcoffin dfcoffin merged commit 544ce1f into main Feb 5, 2026
5 checks passed
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