 #
 # @class Postprocessor
 #
+# @todo Put references into manipulated object
+#
 class Postprocessor
     @supportedRules = ['definition', 'enumeration', 'index', 'attribute', 'relation', 'link']
 
     #
+    # Returns absolute reference path for class
+    #
+    # @param [String] className name of the class
+    # @param [Object] ctx context for class
+    # @return [String] context path for class
+    #
+    @absoluteReferencePathForClass: (className, ctx) ->
+        "#{ctx.__path}/definitions/#{className}"
+
+    #
     # @param [Object] parser
     #
     constructor: (@parser) ->
+
+    #
+    # Cleans up references
+    #
+    cleanRefs: () ->
+        @typeRefs = []
+        @typeDefs = {}
 
     #
     # Executes jison parser and converts it's result to JSON Schema

    #
    # @param [Object] type reference of type
    # @param [Object] ctx referencing context
    # @return [Object] referencing context
    #
    registerTypeReference: (type, ctx) ->
        ctx

    #
    # Processes property type.

        # Add class to context
        utils.addAsObjectMember(ctx, 'definitions', klass.title, klass)

        # Register type definition for later referencing
        @registerDefinition klass

        # Return context
        ctx

