Class SourceModel

All Implemented Interfaces:
Cloneable

public class SourceModel extends PolicySourceModel
This class is a root of unmarshalled policy source structure. Each instance of the class contains factory method to create new com.sun.xml.ws.policy.sourcemodel.ModelNode instances associated with the actual model instance.
Author:
Fabian Ritzmann
  • Method Details

    • createSourceModel

      public static PolicySourceModel createSourceModel(NamespaceVersion nsVersion)
      Factory method that creates new policy source model instance.
      Parameters:
      nsVersion - The policy version
      Returns:
      Newly created policy source model instance.
    • createSourceModel

      public static PolicySourceModel createSourceModel(NamespaceVersion nsVersion, String policyId, String policyName)
      Factory method that creates new policy source model instance and initializes it according to parameters provided.
      Parameters:
      nsVersion - The policy version
      policyId - local policy identifier - relative URI. May be null.
      policyName - global policy identifier - absolute policy expression URI. May be null.
      Returns:
      Newly created policy source model instance with its name and id properly set.