JXTA

net.jxta.document
Interface AdvertisementFactory.Instantiator

Enclosing class:
AdvertisementFactory

public static interface AdvertisementFactory.Instantiator

Interface for instantiators of Advertisements


Method Summary
 String getAdvertisementType()
          Returns the identifying type of this Advertisement.
 Advertisement newInstance()
          Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.
 Advertisement newInstance(Element root)
          Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.
 

Method Detail

getAdvertisementType

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

Returns:
String the type of advertisement

newInstance

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

Returns:
The instance of Advertisement.

newInstance

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

Parameters:
root - Specifies a portion of a @link StructuredDocument} which will be converted into an Advertisement.
Returns:
The instance of Advertisement.

JXSE