All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.weld.xml.XmlMetadata Maven / Gradle / Ivy

There is a newer version: 3.0.0.Alpha1
Show newest version
/**
 *
 */
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() + " in " + getFile().toString() + "@" + getLineNumber();
        } else {
            return "<" + qName + " /> in " + getFile().toString() + "@" + getLineNumber();
        }
    }

    public String getQName() {
        return qName;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy