com.sun.xml.bind.v2.model.impl.EnumConstantImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxb-impl Show documentation
Show all versions of jaxb-impl Show documentation
Old JAXB Runtime module. Contains sources required for runtime processing.
/*
* Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.bind.v2.model.impl;
import com.sun.xml.bind.v2.model.core.EnumConstant;
import com.sun.xml.bind.v2.model.core.EnumLeafInfo;
/**
* @author Kohsuke Kawaguchi
*/
class EnumConstantImpl implements EnumConstant {
protected final String lexical;
protected final EnumLeafInfoImpl owner;
protected final String name;
/**
* All the constants of the {@link EnumConstantImpl} is linked in one list.
*/
protected final EnumConstantImpl next;
public EnumConstantImpl(EnumLeafInfoImpl owner, String name, String lexical, EnumConstantImpl next) {
this.lexical = lexical;
this.owner = owner;
this.name = name;
this.next = next;
}
public EnumLeafInfo getEnclosingClass() {
return owner;
}
public final String getLexicalValue() {
return lexical;
}
public final String getName() {
return name;
}
}