p2pMapReduce.impl.networkModule.jxta
Class NodeAdvertisement.Instantiator

java.lang.Object
  extended by p2pMapReduce.impl.networkModule.jxta.NodeAdvertisement.Instantiator
All Implemented Interfaces:
net.jxta.document.AdvertisementFactory.Instantiator
Enclosing class:
NodeAdvertisement

public static class NodeAdvertisement.Instantiator
extends java.lang.Object
implements net.jxta.document.AdvertisementFactory.Instantiator

Instantiator


Constructor Summary
NodeAdvertisement.Instantiator()
           
 
Method Summary
 java.lang.String getAdvertisementType()
          Returns the identifying type of this Advertisement.
 net.jxta.document.Advertisement newInstance()
          Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.
 net.jxta.document.Advertisement newInstance(net.jxta.document.Element root)
          Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeAdvertisement.Instantiator

public NodeAdvertisement.Instantiator()
Method Detail

getAdvertisementType

public java.lang.String getAdvertisementType()
Returns the identifying type of this Advertisement.

Specified by:
getAdvertisementType in interface net.jxta.document.AdvertisementFactory.Instantiator
Returns:
String the type of advertisement

newInstance

public net.jxta.document.Advertisement newInstance()
Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.

Specified by:
newInstance in interface net.jxta.document.AdvertisementFactory.Instantiator
Returns:
The instance of Advertisement or null if it could not be created.

newInstance

public net.jxta.document.Advertisement newInstance(net.jxta.document.Element root)
Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.

Specified by:
newInstance in interface net.jxta.document.AdvertisementFactory.Instantiator
Parameters:
root - Specifies a portion of a StructuredDocument which will be converted into an Advertisement.
Returns:
The instance of Advertisement or null if it could not be created.