cleaning up a ton of javadoc warnings from gdata. most of these fixes related to either: clarifying packages for @link tags; changing @link or @see tags that pointed at classes/methods that didn't exist (by picking classes with very similar names that do exist); or removing incomplete stub javadocs (that added no information beyond the signature

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@582380 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2007-10-05 20:30:59 +00:00
parent ef03dedeef
commit 243861715b
33 changed files with 47 additions and 134 deletions

View File

@ -521,6 +521,7 @@
doctitle="${Name} ${version} API"
bottom="Copyright © ${year} Apache Software Foundation. All Rights Reserved.">
<tag name="todo" description="To Do:"/>
<tag name="uml.property" description="UML Property:"/>
<!-- TODO: find a dynamic way to do include multiple source roots -->

View File

@ -18,15 +18,8 @@ package org.apache.lucene.gdata.search.analysis;
import org.apache.lucene.gdata.search.config.IndexSchemaField;
/**
*
* @see org.apache.lucene.gdata.search.analysis.TestHTMLStrategy
*/
public class XHtmlStrategy extends HTMLStrategy {
/**
* @param fieldConfig
*/

View File

@ -54,7 +54,7 @@ import org.apache.lucene.store.Directory;
* Inside this class runs an instance of
* {@link org.apache.lucene.gdata.search.index.IndexTask} listening on this
* queue. The analysis of the actual documents happens inside the
* {@link com.sun.corba.se.impl.orbutil.closure.Future} object added to the
* {@link java.util.concurrent.Future} object added to the
* queue. This enables the indexer to do his actual work. Documents will be
* build / analyzed concurrently while already finished tasks can be added to
* the index.
@ -407,7 +407,7 @@ public class GDataIndexer {
/**
* This factory method creates a new GDataIndexer using a instance of
* {@link IndexTask}
* {@link org.apache.lucene.gdata.search.index.IndexTask}
*
* @param config -
* the config to be used to configure the indexer
@ -431,10 +431,12 @@ public class GDataIndexer {
/**
* This factory method creates a new GDataIndexer using a instance of
* {@link TimedIndexTask}. This indexer will automatically commit the index
* {@link org.apache.lucene.gdata.search.index.TimedIndexTask}.
* This indexer will automatically commit the index
* if no modification to the index occur for the given time. The used time
* unit is {@link TimeUnit#SECONDS}. Values less than the default value
* will be ignored. For the default value see {@link TimedIndexTask}.
* will be ignored. For the default value see
* {@link org.apache.lucene.gdata.search.index.TimedIndexTask}.
*
* @param config -
* the config to be used to configure the indexer

View File

@ -29,7 +29,7 @@ public class GDataQueryParser extends QueryParser {
/**
* Creates a new QueryParser instance and sets the default operator to
* {@link Operator#AND}
* {@link org.apache.lucene.queryParser.QueryParser.Operator#AND}
*
* @param field -
* the parser field
@ -43,7 +43,8 @@ public class GDataQueryParser extends QueryParser {
/**
* Creates a new QueryParser instance and sets the default operator to
* {@link Operator#AND}. The parser will use
* {@link org.apache.lucene.queryParser.QueryParser.Operator#AND}.
* The parser will use
* {@link IndexSchema#getDefaultSearchField} as the field and
* {@link IndexSchema#getSchemaAnalyzer()} as the analyzer.
*

View File

@ -61,7 +61,7 @@ import com.google.gdata.util.common.xml.XmlWriter.Namespace;
*
* For this purpose the {@link GDataResponse} class provides the overloaded
* method
* {@link org.apache.lucene.gdata.server.GDataResponse#sendResponse(BaseEntry, ExtensionProfile)}
* {@link org.apache.lucene.gdata.server.GDataResponse#sendResponse}
* which sends the entry e.g feed to the output stream.
* </p>
* <p>

View File

@ -48,7 +48,7 @@ import org.apache.lucene.gdata.server.registry.GDataServerRegistry;
* feed to alter. If the accountname in the token does not match the name of the
* account which belongs to the feed the given role will be used for
* autentication. Authentication using the
* {@link RequestAuthenticator#authenticateAccount(HttpServletRequest, AccountRole)}
* {@link #authenticateAccount(HttpServletRequest, org.apache.lucene.gdata.data.GDataAccount.AccountRole)}
* method, the account name will be ignored, authentication will be based on the
* given <tt>AccountRole</tt>
* </p>

View File

@ -24,28 +24,10 @@ package org.apache.lucene.gdata.storage.lucenestorage;
*/
public interface ConcurrentStorageLock {
/**
* @param key
* @return
*/
public abstract boolean setLock(final String key);
/**
* @param key
* @return
*/
public abstract boolean releaseLock(final String key);
/**
* @return
*/
public abstract boolean releaseThreadLocks();
/**
* @param key
* @return
*/
public abstract boolean isKeyLocked(final String key);
/**
*
*/
public abstract void close();
}

View File

@ -210,12 +210,9 @@ public class StorageEntryWrapper implements Comparable<StorageEntryWrapper>, Ser
/**
* This compare method compares the timestamps of the wrapper instances.
*
* @param arg0 -
* the wrapper to compare
* @par
* @return - 0 if the wrappers timestamp are the same, an integer > 0 if the
* @param arg0 the wrapper to compare
* @return 0 if the wrappers timestamp are the same, an integer > 0 if the
* given wrapper is after this wrapper
*
*/
public int compareTo(StorageEntryWrapper arg0) {
return arg0.timestamp.equals(this.timestamp) ? 0

View File

@ -49,7 +49,6 @@ public class RecoverReader {
}
/**
* @param reader
* @return
* @throws IOException
*/
public List<StorageEntryWrapper> recoverEntries(final BufferedReader reader) throws IOException{

View File

@ -197,7 +197,7 @@ public abstract class AbstractGOMElement implements GOMElement {
/**
* {@inheritDoc}
*
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter,
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter,
* java.lang.String)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter, String aRssName)

View File

@ -129,7 +129,7 @@ public class ArbitraryGOMXml extends AbstractGOMElement {
/**
* {@inheritDoc}
*
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -150,7 +150,7 @@ public class ArbitraryGOMXml extends AbstractGOMElement {
/**
* {@inheritDoc}
*
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -109,26 +109,12 @@ public interface AtomParser {
*/
public static final String INVALID_ELEMENT_VALUE = "The element value '%s' must be an %s";
/**
* @param aValue
*/
public abstract void processElementValue(String aValue);
/**
* @param aQName
* @param aValue
*/
public abstract void processAttribute(QName aQName, String aValue);
/**
*
*/
public abstract void processEndElement();
/**
* @param name
* @return
*/
public abstract AtomParser getChildParser(QName name);
}

View File

@ -37,7 +37,7 @@ public class GOMAuthorImpl extends GOMPersonImpl implements GOMAuthor {
}
/**
* @see org.apache.lucene.gdata.gom.core.GOMPersonImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.core.GOMPersonImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
@Override
public void writeRssOutput(GOMOutputWriter aStreamWriter)

View File

@ -160,7 +160,7 @@ public class GOMCategoryImpl extends AbstractGOMElement implements GOMCategory {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -187,7 +187,7 @@ public class GOMCategoryImpl extends AbstractGOMElement implements GOMCategory {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -150,7 +150,7 @@ public class GOMContentImpl extends GOMTextContructImpl implements GOMContent {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -175,7 +175,7 @@ public class GOMContentImpl extends GOMTextContructImpl implements GOMContent {
}
/**
* @see org.apache.lucene.gdata.gom.core.GOMTextContructImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.core.GOMTextContructImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
@Override
public void writeRssOutput(GOMOutputWriter aStreamWriter)

View File

@ -84,7 +84,7 @@ public abstract class GOMDateConstructImpl extends AbstractGOMElement implements
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -92,7 +92,7 @@ public class GOMDocumentImpl<T extends GOMElement> implements GOMDocument<T> {
}
/**
* @see org.apache.lucene.gdata.gom.GOMDocument#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMDocument#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -112,7 +112,7 @@ public class GOMDocumentImpl<T extends GOMElement> implements GOMDocument<T> {
}
/**
* @see org.apache.lucene.gdata.gom.GOMDocument#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMDocument#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -313,7 +313,7 @@ public class GOMEntryImpl extends AbstractGOMElement implements GOMEntry {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -363,7 +363,7 @@ public class GOMEntryImpl extends AbstractGOMElement implements GOMEntry {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -133,7 +133,7 @@ public class GOMGeneratorImpl extends AbstractGOMElement implements
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -147,7 +147,7 @@ public class GOMGeneratorImpl extends AbstractGOMElement implements
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -39,7 +39,7 @@ public class GOMIconImpl extends AtomUriElement implements GOMIcon {
}
/**
* @see org.apache.lucene.gdata.gom.core.SimpleGOMElementImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.core.SimpleGOMElementImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
@Override
public void writeRssOutput(GOMOutputWriter aStreamWriter)

View File

@ -96,7 +96,7 @@ public class GOMLinkImpl extends AbstractGOMElement implements GOMLink {
}
/**
* @see org.apache.lucene.gdata.gom.GOMLink#setLength(java.lang.String)
* @see org.apache.lucene.gdata.gom.GOMLink#setLength(java.lang.Integer)
*/
public void setLength(Integer aLength) {
length = aLength;
@ -217,7 +217,7 @@ public class GOMLinkImpl extends AbstractGOMElement implements GOMLink {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -245,7 +245,7 @@ public class GOMLinkImpl extends AbstractGOMElement implements GOMLink {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -39,7 +39,7 @@ public class GOMLogoImpl extends AtomUriElement implements GOMLogo {
}
/**
* @see org.apache.lucene.gdata.gom.core.SimpleGOMElementImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.core.SimpleGOMElementImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
@Override
public void writeRssOutput(GOMOutputWriter aStreamWriter)

View File

@ -102,7 +102,7 @@ public class GOMPersonImpl extends AbstractGOMElement implements
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -127,7 +127,7 @@ public class GOMPersonImpl extends AbstractGOMElement implements
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -40,7 +40,7 @@ public class GOMPublishedImpl extends GOMDateConstructImpl implements
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -39,7 +39,7 @@ public class GOMRightsImpl extends GOMTextContructImpl implements GOMRights {
}
/**
* @see org.apache.lucene.gdata.gom.core.GOMTextContructImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.core.GOMTextContructImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
@Override
public void writeRssOutput(GOMOutputWriter aStreamWriter)

View File

@ -481,7 +481,7 @@ public class GOMSourceImpl extends AbstractGOMElement implements GOMSource {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -533,7 +533,7 @@ public class GOMSourceImpl extends AbstractGOMElement implements GOMSource {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -41,7 +41,7 @@ public class GOMSummaryImpl extends GOMTextContructImpl implements GOMSummary {
}
/**
* @see org.apache.lucene.gdata.gom.core.GOMTextContructImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.core.GOMTextContructImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
@Override
public void writeRssOutput(GOMOutputWriter aStreamWriter)

View File

@ -119,7 +119,7 @@ public abstract class GOMTextContructImpl extends AbstractGOMElement implements
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -144,7 +144,7 @@ public abstract class GOMTextContructImpl extends AbstractGOMElement implements
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -42,7 +42,7 @@ public class GOMUpdatedImpl extends GOMDateConstructImpl implements GOMUpdated {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -73,7 +73,7 @@ public class SimpleGOMElementImpl extends AbstractGOMElement {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {
@ -83,7 +83,7 @@ public class SimpleGOMElementImpl extends AbstractGOMElement {
}
/**
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
* @see org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter)
*/
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException {

View File

@ -83,19 +83,11 @@ public class AtomParserUtils {
}
/**
* @param aMediaType
* @return
*/
public static boolean isAtomMediaType(String aMediaType) {
return (aMediaType == null || aMediaType.length() < 3) ? false
: ATOM_MEDIA_TYPE_PATTERN.matcher(aMediaType).matches();
}
/**
* @param aMediaType
* @return
*/
public static AtomMediaType getAtomMediaType(String aMediaType) {
if (aMediaType == null || !isAtomMediaType(aMediaType))
throw new IllegalArgumentException(
@ -107,12 +99,6 @@ public class AtomParserUtils {
return AtomMediaType.BINARY;
}
/**
* @param xmlBase
* @param atomUri
* @return
* @throws URISyntaxException
*/
public static String getAbsolutAtomURI(String xmlBase, String atomUri)
throws URISyntaxException {
if (atomUri == null)

View File

@ -85,10 +85,6 @@ public class GOMUtils {
}
/**
* @param type
* @return
*/
public static GOMAttribute getAttributeByContentType(ContentType type) {
switch (type) {
case HTML:
@ -102,10 +98,6 @@ public class GOMUtils {
}
/**
* @param type
* @return
*/
public static GOMAttribute getAttributeByContentTypeDefaultNs(
ContentType type) {
if (type == null)
@ -136,40 +128,22 @@ public class GOMUtils {
GOMNamespace.ATOM_NS_PREFIX, aName, aValue);
}
/**
* @param aValue
* @param aName
* @return
*/
public static GOMAttribute buildDefaultNamespaceAttribute(String aValue,
String aName) {
return new GOMAttributeImpl(aName, aValue);
}
/**
* @param aValue
* @param aName
* @return
*/
public static GOMAttribute buildXMLNamespaceAttribute(String aValue,
String aName) {
return new GOMAttributeImpl(GOMNamespace.XML_NS_URI,
GOMNamespace.XML_NS_PREFIX, aName, aValue);
}
/**
* @param aString
* @return
*/
public static boolean isRfc3339DateFormat(String aString) {
Matcher aMatcher = RFC3339_DATE_PATTERN.matcher(aString);
return aMatcher.matches();
}
/**
* @param aString
* @return
*/
public static long parseRfc3339DateFormat(String aString) {
if (aString == null)
throw new IllegalArgumentException(
@ -237,10 +211,6 @@ public class GOMUtils {
return retVal;
}
/**
* @param aMillisecondLong
* @return
*/
public static String buildRfc3339DateFormat(long aMillisecondLong) {
Calendar instance = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
instance.setTimeInMillis(aMillisecondLong);
@ -289,10 +259,6 @@ public class GOMUtils {
return builder.toString();
}
/**
* @param aMillisecondLong
* @return
*/
public static String buildRfc822Date(long aMillisecondLong) {
/*
* Rather implement it for a special case as use SDF. SDF is very

View File

@ -239,7 +239,7 @@ public class GOMStaxWriter implements GOMOutputWriter {
}
/**
* @see org.apache.lucene.gdata.gom.writer.GOMOutputWriter#writeDefaultNamespace(java.lang.String)
* @see XMLStreamWriter#writeDefaultNamespace(java.lang.String)
*/
public void writeDefaultNamespace(String aNsUri) throws XMLStreamException {
this.writer.writeDefaultNamespace(aNsUri);