Top Description Fields Constructors Methods
com.rometools.rome.feed.module

public abstract Class ModuleImpl

extends Object
implements Module
Class Inheritance
All Implemented Interfaces
com.rometools.rome.feed.module.Module, java.io.Serializable, com.rometools.rome.feed.CopyFrom, java.lang.Cloneable
Known Direct Subclasses
com.rometools.rome.feed.module.SyModuleImpl, com.rometools.rome.feed.module.DCModuleImpl
Imports
java.util.Collections, com.rometools.rome.feed.impl.CloneableBean, .EqualsBean, .ToStringBean

Base class for modules describing Metadata of feeds, default implementations. Examples of such modules are the Dublin Core and Syndication modules.

Field Summary

Modifier and TypeField and Description
private final Class<?>
private static final long
private final String

Constructor Summary

AccessConstructor and Description
protected
ModuleImpl(final Class<?> beanClass, final String
URI of the module.
uri
)

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a clone of the object.
clone
()

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.module.Module.clone.

Creates a deep 'bean' clone of the object.
public boolean

Returns:

true if 'this' object is equal to the 'other' object.
equals
(final Object
he reference object with which to compare.
other
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
public String

Returns:

URI of the module.
getUri
()

Implements com.rometools.rome.feed.module.Module.getUri.

Returns the URI of the module.
public int

Returns:

the hashcode of the bean object.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.
public String

Returns:

String representation for the object.
toString
()

Overrides java.lang.Object.toString.

Returns the String representation for the object.
Inherited from java.lang.Object:
finalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

beanClassback to summary
private final Class<?> beanClass
serialVersionUIDback to summary
private static final long serialVersionUID
uriback to summary
private final String uri

Constructor Detail

ModuleImplback to summary
protected ModuleImpl(final Class<?> beanClass, final String uri)
Parameters
uri:String

URI of the module.

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.module.Module.clone.

Creates a deep 'bean' clone of the object.

Returns:Object

a clone of the object.

Annotations
@Override
Exceptions
CloneNotSupportedException:
thrown if an element of the object cannot be cloned.
equalsback to summary
public boolean equals(final Object other)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Parameters
other:Object

he reference object with which to compare.

Returns:boolean

true if 'this' object is equal to the 'other' object.

Annotations
@Override
getUriback to summary
public String getUri()

Implements com.rometools.rome.feed.module.Module.getUri.

Returns the URI of the module.

Returns:String

URI of the module.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Returns:int

the hashcode of the bean object.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the String representation for the object.

Returns:String

String representation for the object.

Annotations
@Override