<< lib/java/javax/swing/GroupLayout.Alignment.sleela SLeeLa Java SE/JDK 28 source envelope. Definition: Native SLeeLa source declaration for the Java type javax.swing.GroupLayout.Alignment. The Java class name is retained exactly. The SLeeLa declaration is the source contract; Java behavior is supplied only through the conformance boundary. This is a nested Java type; the file keeps the binary name. Nested types are not yet resolved by the library loader (see JDK28-PROCEDURAL-IMPLEMENTATION.md). >> #sleela 3.0 material; class Alignment { < ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- > << Eleven catalogued attributes with getter/setter pairs, so a GUI, loader, or catalog can read and (where appropriate) override this record. Values are faithful to the subject's real origin where publicly known. >> String metaVersion = "1.0.0"; int metaId = 1298; String metaAuthor = "Oracle / OpenJDK"; String metaDate = "2026-11-10"; String metaCopyright = "GPLv2 with Classpath Exception (OpenJDK)"; String metaTrademark = "Java"; String metaCorporation = "Oracle Corporation"; < metaOrigin: National | | International | Galactic > String metaOrigin = "International"; String metaBirthDate = "2026-11-10"; < metaScienceRating: maturity/robustness on a 1..10 scale > int metaScienceRating = 9; < metaNationalSchedule: a real, citable instrument or "none" > String metaNationalSchedule = "OpenJDK (JDK 28 API)"; String getMetaVersion() { return metaVersion; } void setMetaVersion(String v) { metaVersion = v; } int getMetaId() { return metaId; } void setMetaId(int v) { metaId = v; } String getAuthor() { return metaAuthor; } void setAuthor(String v) { metaAuthor = v; } String getDate() { return metaDate; } void setDate(String v) { metaDate = v; } String getCopyright() { return metaCopyright; } void setCopyright(String v) { metaCopyright = v; } String getTrademark() { return metaTrademark; } void setTrademark(String v) { metaTrademark = v; } String getCorporation() { return metaCorporation; } void setCorporation(String v) { metaCorporation = v; } String getOrigin() { return metaOrigin; } void setOrigin(String v) { metaOrigin = v; } String getBirthDate() { return metaBirthDate; } void setBirthDate(String v) { metaBirthDate = v; } int getScienceRating() { return metaScienceRating; } void setScienceRating(int v) { metaScienceRating = v; } String getNationalSchedule() { return metaNationalSchedule; } void setNationalSchedule(String v) { metaNationalSchedule = v; } String javaType = "javax.swing.GroupLayout.Alignment"; String typeName() { return javaType; } boolean available() { return javaType != ""; } String construct() { return "java.construct:" + javaType; } String invoke(String operation) { return "java.invoke:" + javaType + ":" + operation; } String invokeStatic(String operation) { return "java.static:" + javaType + ":" + operation; } < ---- BEGIN java declarations (generated by tools/jdk_api_declare.py) ---- > << Complete enum: one static final instance per constant (so identity and == hold for values / valueOf / the constants), with the java.lang.Enum behavior. values() and valueOf(name) are static, as in Java: Alignment.valueOf(...), Alignment.values(), and the constants are static final fields. >> static final Alignment LEADING = new Alignment("LEADING", 0); static final Alignment TRAILING = new Alignment("TRAILING", 1); static final Alignment CENTER = new Alignment("CENTER", 2); static final Alignment BASELINE = new Alignment("BASELINE", 3); String enumName; int enumOrdinal; Alignment(String name, int ordinal) { this.enumName = name; this.enumOrdinal = ordinal; } String name() { return this.enumName; } int ordinal() { return this.enumOrdinal; } String toString() { return this.enumName; } int compareTo(Alignment o) { return this.enumOrdinal - o.enumOrdinal; } boolean equals(Any other) { return this == other; } int hashCode() { return this.enumOrdinal * 31 + 17; } public static Alignment[] values() { Alignment[] v = new Alignment[4]; v[0] = LEADING; v[1] = TRAILING; v[2] = CENTER; v[3] = BASELINE; return v; } public static Alignment valueOf(String name) { if (name == null) { throw new NullPointerException("Name is null"); } if (name == "LEADING") { return LEADING; } if (name == "TRAILING") { return TRAILING; } if (name == "CENTER") { return CENTER; } if (name == "BASELINE") { return BASELINE; } throw new IllegalArgumentException("No enum constant javax.swing.GroupLayout.Alignment." + name); } < ---- END java declarations ---- > }