com.ebmwebsourcing.wsstar.resourceproperties.datatypes.api.refinedabstraction
Class RefinedWsrfrpFactory

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.resourceproperties.datatypes.api.refinedabstraction.RefinedWsrfrpFactory
All Implemented Interfaces:
WsrfrpFactory

public class RefinedWsrfrpFactory
extends java.lang.Object
implements WsrfrpFactory

Implementation, following the "Singleton" design pattern, of the WsrfrpFactory factory interface. NOTE : "RefinedWsrfrpFactory" class is the "refined abstraction" part of the "Bridge" design pattern.

Author:
Thierry Déjean - EBM Websourcing

Method Summary
 GetResourcePropertyResponse createGetResourcePropertyResponse()
          create a minimal GetResourcePropertyResponse object, respect to "model implementation"
 InvalidModificationFaultType createInvalidModificationFaultType(java.util.Date timestamp, ResourcePropertyChangeFailureType value)
          create a minimal InvalidModificationFaultType object, respect to "model implementation"
 InvalidResourcePropertyQNameFaultType createInvalidResourcePropertyQNameFaultType(java.util.Date timestamp)
          create a minimal InvalidResourcePropertyQNameFaultType object, respect to "model implementation"
 ResourcePropertyChangeFailureType createResourcePropertyChangeFailureType(boolean value)
          create a minimal ResourcePropertyChangeFailureType object, respect to "model implementation" with mandatory field (according to associated XML Schema)
 ResourcePropertyChangeFailureType.CurrentValue createResourcePropertyChangeFailureTypeCurrentValue(java.util.List<org.w3c.dom.Element> values)
          create a minimal ResourcePropertyChangeFailureType.CurrentValue object, respect to "model implementation" with mandatory field (according to associated XML Schema)
 ResourcePropertyChangeFailureType.RequestedValue createResourcePropertyChangeFailureTypeRequestedValue(java.util.List<org.w3c.dom.Element> values)
          create a minimal ResourcePropertyChangeFailureType.RequestedValue object, respect to "model implementation" with mandatory field (according to associated XML Schema)
 ResourcePropertyValueChangeNotificationType createResourcePropertyValueChangeNotificationType(ResourcePropertyValueChangeNotificationType.NewValues newValues)
          create a minimal ResourcePropertyValueChangeNotificationType object, respect to "model implementation"
 ResourcePropertyValueChangeNotificationType.NewValues createResourcePropertyValueChangeNotificationTypeNewValues(org.w3c.dom.Element valueAsElt)
          create a minimal ResourcePropertyValueChangeNotificationType.NewValues object, respect to "model implementation"
 ResourcePropertyValueChangeNotificationType.OldValues createResourcePropertyValueChangeNotificationTypeOldValues(org.w3c.dom.Element valueAsElt)
          create a minimal ResourcePropertyValueChangeNotificationType.OldValues object, respect to "model implementation"
 UnableToModifyResourcePropertyFaultType createUnableToModifyResourcePropertyFaultType(java.util.Date timestamp, ResourcePropertyChangeFailureType value)
          create a minimal UnableToModifyResourcePropertyFaultType object, respect to "model implementation"
 UpdateResourceProperties createUpdateResourceProperties(UpdateType content)
          create a minimal UpdateResourceProperties object, respect to "model implementation" with mandatory field (according to associated XML Schema)
 UpdateResourcePropertiesRequestFailedFaultType createUpdateResourcePropertiesRequestFailedFaultType(java.util.Date timestamp, ResourcePropertyChangeFailureType value)
          create a minimal UpdateResourcePropertiesRequestFailedFaultType object, respect to "model implementation"
 UpdateResourcePropertiesResponse createUpdateResourcePropertiesResponse()
          create a minimal UpdateResourcePropertiesResponse object, respect to "model implementation" with mandatory field (according to associated XML Schema)
 UpdateType createUpdateType(java.util.List<org.w3c.dom.Element> content)
          create a minimal UpdateType object, respect to "model implementation" with mandatory field (At least one property expected)
static WsrfrpFactory getInstance()
          Get the singleton instance of the class once the model's factory has been initialized.
static WsrfrpFactory getInstance(WsrfrpModelFactory modelFactory)
          Initialize model's factory and get the singleton instance of the class
 WsrfrpModelFactory getModel()
          Get the model's factory implementation used.
 WsrfrpReader getWsrfrpReader()
          Get a instance of WsrfrpReader class , respect to "model implementation"
 WsrfrpWriter getWsrfrpWriter()
          Get a instance of WsrfrpWriter class, respect to "model implementation"
 void setModel(WsrfrpModelFactory model)
          Set the model's factory implementation to used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsrfrpFactory getInstance()
                                 throws WsrfrpException
Get the singleton instance of the class once the model's factory has been initialized.

Returns:
the singleton instance of the class
Throws:
WsrfrpException

getInstance

public static WsrfrpFactory getInstance(WsrfrpModelFactory modelFactory)
Initialize model's factory and get the singleton instance of the class

Parameters:
modelFactory - then model's factory implementation.
Returns:
the singleton instance of the class

getModel

public WsrfrpModelFactory getModel()
Get the model's factory implementation used. In "Bridge" design pattern language it is the "ConcreteImplementor"

Returns:
the model's factory implementation used

setModel

public void setModel(WsrfrpModelFactory model)
Set the model's factory implementation to used. In "Bridge" design pattern language it is the "ConcreteImplementor"

Parameters:
modelFactory - an instance of model's factory implementation

getWsrfrpReader

public WsrfrpReader getWsrfrpReader()
Description copied from interface: WsrfrpFactory
Get a instance of WsrfrpReader class , respect to "model implementation"

Specified by:
getWsrfrpReader in interface WsrfrpFactory
Returns:
an instance of WsrfrpReader class

getWsrfrpWriter

public WsrfrpWriter getWsrfrpWriter()
Description copied from interface: WsrfrpFactory
Get a instance of WsrfrpWriter class, respect to "model implementation"

Specified by:
getWsrfrpWriter in interface WsrfrpFactory
Returns:
an instance of of WsrfrpWriter class

createGetResourcePropertyResponse

public GetResourcePropertyResponse createGetResourcePropertyResponse()
Description copied from interface: WsrfrpFactory
create a minimal GetResourcePropertyResponse object, respect to "model implementation"

Specified by:
createGetResourcePropertyResponse in interface WsrfrpFactory
Returns:
new GetResourcePropertyResponse instance

createInvalidResourcePropertyQNameFaultType

public InvalidResourcePropertyQNameFaultType createInvalidResourcePropertyQNameFaultType(java.util.Date timestamp)
Description copied from interface: WsrfrpFactory
create a minimal InvalidResourcePropertyQNameFaultType object, respect to "model implementation"

Specified by:
createInvalidResourcePropertyQNameFaultType in interface WsrfrpFactory
Parameters:
timestamp - the creation date of the fault
Returns:
new InvalidResourcePropertyQNameFaultType instance

createUpdateType

public UpdateType createUpdateType(java.util.List<org.w3c.dom.Element> content)
                            throws WsrfrpException
Description copied from interface: WsrfrpFactory
create a minimal UpdateType object, respect to "model implementation" with mandatory field (At least one property expected)

Specified by:
createUpdateType in interface WsrfrpFactory
Parameters:
content - the list of properties to update
Returns:
new UpdateType instance
Throws:
WsrfrpException

createUpdateResourceProperties

public UpdateResourceProperties createUpdateResourceProperties(UpdateType content)
Description copied from interface: WsrfrpFactory
create a minimal UpdateResourceProperties object, respect to "model implementation" with mandatory field (according to associated XML Schema)

Specified by:
createUpdateResourceProperties in interface WsrfrpFactory
Parameters:
content - the list of properties to update
Returns:
new UpdateResourceProperties instance

createUpdateResourcePropertiesResponse

public UpdateResourcePropertiesResponse createUpdateResourcePropertiesResponse()
Description copied from interface: WsrfrpFactory
create a minimal UpdateResourcePropertiesResponse object, respect to "model implementation" with mandatory field (according to associated XML Schema)

Specified by:
createUpdateResourcePropertiesResponse in interface WsrfrpFactory
Returns:
new UpdateResourceProperties instance

createResourcePropertyChangeFailureType

public ResourcePropertyChangeFailureType createResourcePropertyChangeFailureType(boolean value)
Description copied from interface: WsrfrpFactory
create a minimal ResourcePropertyChangeFailureType object, respect to "model implementation" with mandatory field (according to associated XML Schema)

Specified by:
createResourcePropertyChangeFailureType in interface WsrfrpFactory
Parameters:
value - value of "isResotored" parameter to set
Returns:
new ResourcePropertyChangeFailureType instance

createResourcePropertyChangeFailureTypeCurrentValue

public ResourcePropertyChangeFailureType.CurrentValue createResourcePropertyChangeFailureTypeCurrentValue(java.util.List<org.w3c.dom.Element> values)
Description copied from interface: WsrfrpFactory
create a minimal ResourcePropertyChangeFailureType.CurrentValue object, respect to "model implementation" with mandatory field (according to associated XML Schema)

Specified by:
createResourcePropertyChangeFailureTypeCurrentValue in interface WsrfrpFactory
Parameters:
values - currents values of requested property
Returns:
new ResourcePropertyChangeFailureType.CurrentValue instance

createResourcePropertyChangeFailureTypeRequestedValue

public ResourcePropertyChangeFailureType.RequestedValue createResourcePropertyChangeFailureTypeRequestedValue(java.util.List<org.w3c.dom.Element> values)
Description copied from interface: WsrfrpFactory
create a minimal ResourcePropertyChangeFailureType.RequestedValue object, respect to "model implementation" with mandatory field (according to associated XML Schema)

Specified by:
createResourcePropertyChangeFailureTypeRequestedValue in interface WsrfrpFactory
Parameters:
values - requested values of requested property
Returns:
new ResourcePropertyChangeFailureType.RequestedValue instance

createInvalidModificationFaultType

public InvalidModificationFaultType createInvalidModificationFaultType(java.util.Date timestamp,
                                                                       ResourcePropertyChangeFailureType value)
Description copied from interface: WsrfrpFactory
create a minimal InvalidModificationFaultType object, respect to "model implementation"

Specified by:
createInvalidModificationFaultType in interface WsrfrpFactory
Parameters:
timestamp - the creation date of the fault
value - state of requested resource property changes
Returns:
new InvalidModificationFaultType instance

createUnableToModifyResourcePropertyFaultType

public UnableToModifyResourcePropertyFaultType createUnableToModifyResourcePropertyFaultType(java.util.Date timestamp,
                                                                                             ResourcePropertyChangeFailureType value)
Description copied from interface: WsrfrpFactory
create a minimal UnableToModifyResourcePropertyFaultType object, respect to "model implementation"

Specified by:
createUnableToModifyResourcePropertyFaultType in interface WsrfrpFactory
Parameters:
timestamp - the creation date of the fault
value - state of requested resource property changes
Returns:
new UnableToModifyResourcePropertyFaultType instance

createUpdateResourcePropertiesRequestFailedFaultType

public UpdateResourcePropertiesRequestFailedFaultType createUpdateResourcePropertiesRequestFailedFaultType(java.util.Date timestamp,
                                                                                                           ResourcePropertyChangeFailureType value)
Description copied from interface: WsrfrpFactory
create a minimal UpdateResourcePropertiesRequestFailedFaultType object, respect to "model implementation"

Specified by:
createUpdateResourcePropertiesRequestFailedFaultType in interface WsrfrpFactory
Parameters:
timestamp - the creation date of the fault
value - state of requested resource property changes
Returns:
new UpdateResourcePropertiesRequestFailedFaultType instance

createResourcePropertyValueChangeNotificationType

public ResourcePropertyValueChangeNotificationType createResourcePropertyValueChangeNotificationType(ResourcePropertyValueChangeNotificationType.NewValues newValues)
Description copied from interface: WsrfrpFactory
create a minimal ResourcePropertyValueChangeNotificationType object, respect to "model implementation"

Specified by:
createResourcePropertyValueChangeNotificationType in interface WsrfrpFactory
Parameters:
newValues - new RP's values
Returns:
new ResourcePropertyValueChangeNotificationType instance

createResourcePropertyValueChangeNotificationTypeNewValues

public ResourcePropertyValueChangeNotificationType.NewValues createResourcePropertyValueChangeNotificationTypeNewValues(org.w3c.dom.Element valueAsElt)
Description copied from interface: WsrfrpFactory
create a minimal ResourcePropertyValueChangeNotificationType.NewValues object, respect to "model implementation"

Specified by:
createResourcePropertyValueChangeNotificationTypeNewValues in interface WsrfrpFactory
Returns:
new ResourcePropertyValueChangeNotificationType.NewValues instance

createResourcePropertyValueChangeNotificationTypeOldValues

public ResourcePropertyValueChangeNotificationType.OldValues createResourcePropertyValueChangeNotificationTypeOldValues(org.w3c.dom.Element valueAsElt)
Description copied from interface: WsrfrpFactory
create a minimal ResourcePropertyValueChangeNotificationType.OldValues object, respect to "model implementation"

Specified by:
createResourcePropertyValueChangeNotificationTypeOldValues in interface WsrfrpFactory
Returns:
new ResourcePropertyValueChangeNotificationType.OldValues instance


Copyright © 2010-2011 eBM Websourcing. All Rights Reserved.