abstractpublic class PolicyModelUnmarshaller (Code)
Abstract class defines interface for policy model unmarshaller implementations that are specific to underlying
persistence layer.
author: Marek Potociar
Constructor Summary
PolicyModelUnmarshaller() Default constructor to ensure we have a common model unmarshaller base, but only our API classes implemented in this
package will be able to extend this abstract class.
Default constructor to ensure we have a common model unmarshaller base, but only our API classes implemented in this
package will be able to extend this abstract class. This is to restrict attempts of extending the class from
a client code.
Factory method that returns policy model unmarshaller able to unmarshal
policy expressions from XML source.
policy model unmarshaller able to unmarshal policy expressions from XML source.
Unmarshalls single policy source model from provided storage reference. Method expects that the storage
cursor to be alread placed on the start of a policy expression. Inner comments and whitespaces are skipped
in processing. Any other cursor position results in a PolicyException being thrown.
Parameters: storage - reference to underlying storage that should be used for model unmarshalling unmarshalled policy source model. If no policies are found, returns null . throws: PolicyException - in case of the unmarshalling problems