com.windowsazure.samples.internal.xml.XmlNamespace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa4azure Show documentation
Show all versions of jpa4azure Show documentation
jpa4azure, implements a subset of the JPA specification using Azure Storage for pesisting beans. see http://jpa4azure.codeplex.com for more information.
The newest version!
package com.windowsazure.samples.internal.xml;
import com.windowsazure.samples.internal.util.Util;
public class XmlNamespace extends XmlElement {
public XmlNamespace(String tag, String uri) {
super(tag, null);
this.uri = uri;
}
public String getRepresentation() {
StringBuilder sb = new StringBuilder();
sb.append("xmlns");
if (! isDefault()) {
sb.append(":" + getTag());
}
sb.append("='" + uri + "'");
return sb.toString();
}
public String getUri() {
return uri;
}
public boolean isDefault() {
return Util.isStringNullOrEmpty(getTag());
}
private String uri;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy