org.glassfish.admingui.connector.TOCItemInjector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of payara-micro Show documentation
Show all versions of payara-micro Show documentation
Micro Distribution of the Payara Project for IBM JDK
package org.glassfish.admingui.connector;
import java.util.ArrayList;
import java.util.List;
import org.jvnet.hk2.annotations.Service;
import org.jvnet.hk2.config.ConfigInjector;
import org.jvnet.hk2.config.Dom;
import org.jvnet.hk2.config.InjectionTarget;
@Service(name = "tocitem", metadata = "=collection:org.glassfish.admingui.connector.TOCItem,@expand=required,@expand=datatype:java.lang.String,@expand=leaf,@target=required,@target=datatype:java.lang.String,@target=leaf,@text=required,@text=datatype:java.lang.String,@text=leaf,target=org.glassfish.admingui.connector.TOCItem")
@InjectionTarget(org.glassfish.admingui.connector.TOCItem.class)
public class TOCItemInjector
extends ConfigInjector
{
public void inject(Dom dom, org.glassfish.admingui.connector.TOCItem target) {
element_setTOCItems(dom, target);
attribute_setExpand(dom, target);
attribute_setTarget(dom, target);
attribute_setText(dom, target);
}
public void injectAttribute(Dom dom, String name, org.glassfish.admingui.connector.TOCItem target) {
if ("expand".equals(name)) {
attribute_setExpand(dom, target);
}
if ("target".equals(name)) {
attribute_setTarget(dom, target);
}
if ("text".equals(name)) {
attribute_setText(dom, target);
}
}
public void injectElement(Dom dom, String name, org.glassfish.admingui.connector.TOCItem target) {
if ("tocitem".equals(name)) {
element_setTOCItems(dom, target);
}
}
public void element_setTOCItems(Dom dom, org.glassfish.admingui.connector.TOCItem target) {
List v1 = dom.nodeElements("tocitem");
if (v1 == null) {
return ;
}
List v2 = new ArrayList(v1 .size());
for (Dom v3 : v1) {
v2 .add(((org.glassfish.admingui.connector.TOCItem) v3 .get()));
}
target.setTOCItems(v2);
}
public void attribute_setExpand(Dom dom, org.glassfish.admingui.connector.TOCItem target) {
String v1 = dom.attribute("expand");
target.setExpand(asBoolean(v1));
}
public void attribute_setTarget(Dom dom, org.glassfish.admingui.connector.TOCItem target) {
String v1 = dom.attribute("target");
target.setTarget(v1);
}
public void attribute_setText(Dom dom, org.glassfish.admingui.connector.TOCItem target) {
String v1 = dom.attribute("text");
target.setText(v1);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy