FileDocCategorySizeDatePackage
GOMAttributeImpl.javaAPI DocApache Lucene 2.1.03527Wed Feb 14 10:45:58 GMT 2007org.apache.lucene.gdata.gom.core

GOMAttributeImpl

public class GOMAttributeImpl extends Object implements org.apache.lucene.gdata.gom.GOMAttribute
author
Simon Willnauer

Fields Summary
private boolean
hasDefaultNamespace
private QName
qName
private String
localName
private String
uri
private String
prefix
private String
value
Constructors Summary
public GOMAttributeImpl()

		super();
	
public GOMAttributeImpl(String localName, String value)

param
localName
param
value

		this.hasDefaultNamespace = true;
		this.value = value;
		this.localName = localName;
	
public GOMAttributeImpl(String namespaceUri, String namespacePrefix, String localName, String value)

param
namespaceUri
param
namespacePrefix
param
localName
param
value

		this.localName = localName;
		this.uri = namespaceUri;
		this.prefix = namespacePrefix;
		this.value = value;
	
Methods Summary
public java.lang.StringgetLocalName()

see
org.apache.lucene.gdata.gom.GOMXmlEntity#getLocalName()

		return this.localName;
	
public javax.xml.namespace.QNamegetQname()

see
org.apache.lucene.gdata.gom.GOMXmlEntity#getQname()

		if (this.qName == null)
			this.qName = new QName(this.uri, (this.localName == null ? ""
					: this.localName), (this.prefix == null ? "" : this.prefix));
		return this.qName;

	
public java.lang.StringgetTextValue()

see
org.apache.lucene.gdata.gom.GOMXmlEntity#getTextValue()

		return this.value == null ? "" : this.value;
	
public booleanhasDefaultNamespace()

see
org.apache.lucene.gdata.gom.GOMAttribute#hasDefaultNamespace()


		return this.hasDefaultNamespace;
	
voidsetHasDefaultNamespace(boolean aBoolean)

		this.hasDefaultNamespace = aBoolean;
	
public voidsetLocalName(java.lang.String aLocalName)

see
org.apache.lucene.gdata.gom.GOMXmlEntity#setLocalName(java.lang.String)

		if (aLocalName == null)
			return;
		this.qName = null;
		this.localName = aLocalName;

	
public voidsetNamespacePrefix(java.lang.String aString)

see
org.apache.lucene.gdata.gom.GOMXmlEntity#setNamespacePrefix(java.lang.String)

		if (aString == null)
			return;
		this.qName = null;
		this.hasDefaultNamespace = false;
		this.prefix = aString;

	
public voidsetNamespaceUri(java.lang.String aString)

see
org.apache.lucene.gdata.gom.GOMXmlEntity#setNamespaceUri(java.lang.String)

		if (aString == null)
			return;
		this.qName = null;
		this.hasDefaultNamespace = false;
		this.uri = aString;

	
public voidsetTextValue(java.lang.String aTextValue)

see
org.apache.lucene.gdata.gom.GOMXmlEntity#setTextValue(java.lang.String)

		this.value = aTextValue;