Class XJDFToJDFImpl

    • Constructor Detail

      • XJDFToJDFImpl

        public XJDFToJDFImpl​(JDFDoc template)
        Parameters:
        template - the jdfdoc to fill this into
    • Method Detail

      • setVersion

        public void setVersion​(JDFElement.EnumVersion version)
        Parameters:
        version - the version to set - unused
      • isCreateProduct

        public boolean isCreateProduct()
        Getter for createProduct attribute.
        Returns:
        the createProduct
      • setCreateProduct

        public void setCreateProduct​(boolean createProduct)
        Setter for createProduct attribute.
        Parameters:
        createProduct - the createProduct to set
      • isConvertUnits

        public boolean isConvertUnits()
        Getter for convertUnits attribute.
        Returns:
        the convertUnits
      • setConvertUnits

        public void setConvertUnits​(boolean convertUnits)
        Setter for convertUnits attribute.
        Parameters:
        convertUnits - the convertUnits to set
      • isbConvertTilde

        public boolean isbConvertTilde()
        Getter for bConvertTilde attribute.
        Returns:
        the bConvertTilde
      • reset

        public void reset​(JDFDoc template)
      • resetProduct

        public void resetProduct()
        reset the product so that multiple independent product xjdf elements can be merged
      • convert

        protected JDFDoc convert​(KElement _xjdf)
        Parameters:
        _xjdf -
        Returns:
        the converted jdf
      • postConvert

        protected void postConvert​(JDFNode theNode)
        Parameters:
        theNode -
      • reparse

        protected KElement reparse​(KElement xjdf)
        Parameters:
        xjdf -
        Returns:
      • canConvert

        public static boolean canConvert​(KElement xjdf)
        Parameters:
        xjdf -
        Returns:
        true if the element can be converted
      • createProductRoot

        protected JDFNode createProductRoot()
        make sure we have a product in case we have multiple nodes
        Returns:
      • convertUnits

        protected void convertUnits​(KElement element)
        Parameters:
        element -
      • convertTilde

        protected void convertTilde​(KElement e2)
        Parameters:
        e2 -
      • attributesToSpan

        protected void attributesToSpan​(KElement e)
        Parameters:
        e -
      • attributeToSpan

        protected KElement attributeToSpan​(KElement e,
                                           java.lang.String name)
        Parameters:
        e -
        name -
        Returns:
        the new span element
      • setConvertTilde

        public void setConvertTilde​(boolean b)
        if true tildes are converted to pairs in xjdf 2.0
        Parameters:
        b -
      • setTypeLinks

        public void setTypeLinks​(boolean typeLinks)
        Setter for typeLinks attribute. if true, we will only create links that are appropriate for the respective type or types
        Parameters:
        heuristicLink - the typeLinks to set
      • isTypeLinks

        public boolean isTypeLinks()
        Getter for typeLinks attribute.
        Returns:
        the typeLinks
      • isHeuristicLink

        public boolean isHeuristicLink()
        Returns:
      • setHeuristicLink

        public void setHeuristicLink​(boolean heuristicLink)
        if true, we will find a @Usage for sets with no Usage using fuzzy heuristics
        Parameters:
        heuristicLink -