Project JXTA

net.jxta.document
Interface AdvertisementFactory.Instantiator

Enclosing class:
AdvertisementFactory

public static interface AdvertisementFactory.Instantiator

Interface for instantiators of StructuredDocuments


Method Summary
 java.lang.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

public java.lang.String getAdvertisementType()
Returns the identifying type of this Advertisement.
Returns:
String the type of advertisement
Since:
JXTA 1.0

newInstance

public Advertisement newInstance()
Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.
Returns:
The instance of Advertisement.
Since:
JXTA 1.0

newInstance

public 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.
Since:
JXTA 1.0

Project JXTA