net.jxta.impl.protocol
Class PresenceAdv.Instantiator

java.lang.Object
  |
  +--net.jxta.impl.protocol.PresenceAdv.Instantiator
All Implemented Interfaces:
net.jxta.document.AdvertisementFactory.Instantiator
Enclosing class:
PresenceAdv

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

An Instantiator used by the AdvertisementFactory to instantiate this class in an abstract fashion.


Constructor Summary
PresenceAdv.Instantiator()
           
 
Method Summary
 java.lang.String getAdvertisementType()
          Returns the identifying type of this Advertisement.
 net.jxta.document.Advertisement newInstance()
          Returns a new PresenceAdvertisement implementation instance.
 net.jxta.document.Advertisement newInstance(net.jxta.document.Element root)
          Instantiates a new PresenceAdvertisement implementation instance populated from the given root element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresenceAdv.Instantiator

public PresenceAdv.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:
the XML element name of the advertisement's root element.

newInstance

public net.jxta.document.Advertisement newInstance()
Returns a new PresenceAdvertisement implementation instance.

Specified by:
newInstance in interface net.jxta.document.AdvertisementFactory.Instantiator
Returns:
a new presence advertisement instance.

newInstance

public net.jxta.document.Advertisement newInstance(net.jxta.document.Element root)
Instantiates a new PresenceAdvertisement implementation instance populated from the given root element.

Specified by:
newInstance in interface net.jxta.document.AdvertisementFactory.Instantiator
Parameters:
root - the root of the object tree to use to populate the advertisement object.
Returns:
a new populated presence advertisement instance.