com.sun.syndication.io.impl
クラス DCModuleGenerator

java.lang.Object
  上位を拡張 com.sun.syndication.io.impl.DCModuleGenerator
すべての実装されたインタフェース:
ModuleGenerator

public class DCModuleGenerator
extends java.lang.Object
implements ModuleGenerator

Feed Generator for DublinCore Module.


コンストラクタの概要
DCModuleGenerator()
           
 
メソッドの概要
 void generate(Module module, Element element)
          Populate an element tree with elements for a module.
protected  Element generateSimpleElement(java.lang.String name, java.lang.String value)
          Utility method to generate a single element containing a string.
protected  java.util.List generateSimpleElementList(java.lang.String name, java.util.List value)
          Utility method to generate a list of simple elements.
protected  Element generateSubjectElement(DCSubject subject)
          Utility method to generate an element for a subject.
 java.util.Set getNamespaces()
          Returns a set with all the URIs (JDOM Namespace elements) this module generator uses.
 java.lang.String getNamespaceUri()
          Returns the namespace URI this generator handles.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DCModuleGenerator

public DCModuleGenerator()
メソッドの詳細

getNamespaceUri

public final java.lang.String getNamespaceUri()
インタフェース ModuleGenerator の記述:
Returns the namespace URI this generator handles.

定義:
インタフェース ModuleGenerator 内の getNamespaceUri
戻り値:
the namespace URI.

getNamespaces

public final java.util.Set getNamespaces()
Returns a set with all the URIs (JDOM Namespace elements) this module generator uses.

It is used by the the feed generators to add their namespace definition in the root element of the generated document (forward-missing of Java 5.0 Generics).

定義:
インタフェース ModuleGenerator 内の getNamespaces
戻り値:
a set with all the URIs this module generator uses.

generate

public final void generate(Module module,
                           Element element)
Populate an element tree with elements for a module.

定義:
インタフェース ModuleGenerator 内の generate
パラメータ:
module - the module to populate from.
element - the root element to attach child elements to.

generateSubjectElement

protected final Element generateSubjectElement(DCSubject subject)
Utility method to generate an element for a subject.

パラメータ:
subject - the subject to generate an element for.
戻り値:
the element for the subject.

generateSimpleElement

protected final Element generateSimpleElement(java.lang.String name,
                                              java.lang.String value)
Utility method to generate a single element containing a string.

パラメータ:
name - the name of the elment to generate.
value - the value of the text in the element.
戻り値:
the element generated.

generateSimpleElementList

protected final java.util.List generateSimpleElementList(java.lang.String name,
                                                         java.util.List value)
Utility method to generate a list of simple elements.

パラメータ:
name - the name of the element list to generate.
value - the list of values for the elements.
戻り値:
a list of Elements created.