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

SimpleGOMElementImpl

public class SimpleGOMElementImpl extends AbstractGOMElement
author
Simon Willnauer

Fields Summary
public static final String
ELEMENT_OS_ITEMS_PER_PAGE
public static final String
ELEMENT_OS_START_INDEX
private SimpleValidator
validator
Constructors Summary
public SimpleGOMElementImpl(String aLocalName, org.apache.lucene.gdata.gom.GOMNamespace aNamespace)


	 	 
	     
		super();
		if (aLocalName == null)
			throw new IllegalArgumentException("localname must not be null");
		if (aNamespace == null)
			throw new IllegalArgumentException("Namespace must not be null");
		this.localName = aLocalName;
		this.qname = new QName(aNamespace.getNamespaceUri(), this.localName,
				aNamespace.getNamespacePrefix());
	
SimpleGOMElementImpl()

		// for subclasses
	
Methods Summary
public voidprocessElementValue(java.lang.String aValue)

see
org.apache.lucene.gdata.gom.core.AbstractGOMElement#processElementValue(java.lang.String)

		if (this.textValue != null)
			throw new GDataParseException(String.format(
					AtomParser.DUPLICATE_ELEMENT_VALUE, this.localName));
		this.textValue = aValue;
	
public voidprocessEndElement()

see
org.apache.lucene.gdata.gom.core.AbstractGOMElement#processEndElement()

		if (this.validator != null)
			this.validator.validate(this.textValue);

	
public voidsetValidator(org.apache.lucene.gdata.gom.core.SimpleGOMElementImpl$SimpleValidator aValidator)

param
aValidator The validator to set.

		validator = aValidator;
	
public voidwriteAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)

see
org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)

		aStreamWriter.writeSimpleXMLElement(this.qname,
				getXmlNamespaceAttributes(), this.textValue);

	
public voidwriteRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)

see
org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)

		writeAtomOutput(aStreamWriter);