org.openspml.v2.profiles
Class DSMLProfileRegistrar

java.lang.Object
  extended byorg.openspml.v2.profiles.DSMLProfileRegistrar
All Implemented Interfaces:
ObjectFactory.ProfileRegistrar

public class DSMLProfileRegistrar
extends java.lang.Object
implements ObjectFactory.ProfileRegistrar


Field Summary
static java.lang.String PROFILE_ID
           
static java.lang.String PROFILE_URI_STRING
           
 
Constructor Summary
DSMLProfileRegistrar()
           
 
Method Summary
protected  ObjectFactory.MarshallableCreator createDSMLMarshallableCreator()
          If you implemented your own creator for DSML and want to use that implementation; extend this class and override this method.
protected  ObjectFactory.OCEUnmarshaller createDSMLUnmarshaller()
          If you extended DSMLUnmarshaller and want to use that implementation, extend this class too and the new subclass as your Registrar.
 java.lang.String getProfileId()
          We ask that this be unique - namely as we only allow a registration once.
 java.net.URI getProfileURI()
          We need these too.
 void register(ObjectFactory of)
          Generally, this will turn around and add MarshallableCreator(s) to the object factory.
 void unregister(ObjectFactory of)
          Remove the creators from the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROFILE_URI_STRING

public static final java.lang.String PROFILE_URI_STRING
See Also:
Constant Field Values

PROFILE_ID

public static final java.lang.String PROFILE_ID
See Also:
Constant Field Values
Constructor Detail

DSMLProfileRegistrar

public DSMLProfileRegistrar()
Method Detail

createDSMLUnmarshaller

protected ObjectFactory.OCEUnmarshaller createDSMLUnmarshaller()
If you extended DSMLUnmarshaller and want to use that implementation, extend this class too and the new subclass as your Registrar.

Returns:
a new ObjectFactory.OCEUnmarshaller

createDSMLMarshallableCreator

protected ObjectFactory.MarshallableCreator createDSMLMarshallableCreator()
If you implemented your own creator for DSML and want to use that implementation; extend this class and override this method. Use the new subclass as the Registrar.

Returns:
a new DSMLUnmarshaller

getProfileId

public java.lang.String getProfileId()
Description copied from interface: ObjectFactory.ProfileRegistrar
We ask that this be unique - namely as we only allow a registration once. This is the field we use to check if the profile has been registered.

Specified by:
getProfileId in interface ObjectFactory.ProfileRegistrar
Returns:
the profile id - must be unique amongst used registars.

getProfileURI

public java.net.URI getProfileURI()
                           throws Spml2Exception
Description copied from interface: ObjectFactory.ProfileRegistrar
We need these too.

Specified by:
getProfileURI in interface ObjectFactory.ProfileRegistrar
Returns:
A String that has the URI of this profile.
Throws:
Spml2Exception

register

public void register(ObjectFactory of)
Description copied from interface: ObjectFactory.ProfileRegistrar
Generally, this will turn around and add MarshallableCreator(s) to the object factory.

Specified by:
register in interface ObjectFactory.ProfileRegistrar
Parameters:
of - This singleton ;-)

unregister

public void unregister(ObjectFactory of)
Description copied from interface: ObjectFactory.ProfileRegistrar
Remove the creators from the factory. At present, this is not called automatically.

Specified by:
unregister in interface ObjectFactory.ProfileRegistrar
Parameters:
of - This singleton ;-)


Copyright © Sun Microsystems, Inc. All Rights Reserved.