org.fcrepo.common.xml.namespace.XMLNSNamespace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fcrepo-common Show documentation
Show all versions of fcrepo-common Show documentation
Common, generally useful utilities
/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.common.xml.namespace;
/**
* The XMLNS XML namespace.
*
*
* Namespace URI : http://www.w3.org/2000/xmlns/
* Preferred Prefix : xmlns
*
*
* @author Chris Wilper
*/
public class XMLNSNamespace
extends XMLNamespace {
//---
// Attributes
//---
/** The xmlns
attribute. */
public final QName XMLNS;
//---
// Singleton instantiation
//---
/** The only instance of this class. */
private static final XMLNSNamespace ONLY_INSTANCE = new XMLNSNamespace();
/**
* Constructs the instance.
*/
private XMLNSNamespace() {
super("http://www.w3.org/2000/xmlns/", "xmlns");
// attributes
XMLNS = new QName(this, "xmlns");
}
/**
* Gets the only instance of this class.
*
* @return the instance.
*/
public static XMLNSNamespace getInstance() {
return ONLY_INSTANCE;
}
}