org.jboss.weld.xml.XmlMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weld-servlet-shaded Show documentation
Show all versions of weld-servlet-shaded Show documentation
This jar bundles all the bits of Weld and CDI required for running in a Servlet container.
/**
*
*/
package org.jboss.weld.xml;
import org.jboss.weld.metadata.FileMetadata;
import java.net.URL;
public class XmlMetadata extends FileMetadata {
private final String qName;
public XmlMetadata(String qName, T value, URL file, int lineNumber) {
super(value, file, lineNumber);
this.qName = qName;
}
@Override
public String getLocation() {
if (getValue() != null) {
return "<" + qName + ">" + getValue() + "" + qName + "> in " + getFile().toString() + "@" + getLineNumber();
} else {
return "<" + qName + " /> in " + getFile().toString() + "@" + getLineNumber();
}
}
}