Class ContentImportExpression


  • public class ContentImportExpression
    extends InContentExpression
    Represents an import of a template through a in-content expression.
    Author:
    Holger Eichelberger
    • Field Detail

      • template

        private java.lang.String template
    • Constructor Detail

      • ContentImportExpression

        public ContentImportExpression​(java.lang.String template,
                                       IVersionRestriction restriction)
        Creates the import expression.
        Parameters:
        template - the template name
        restriction - the version restriction expression (may be null)
    • Method Detail

      • getTemplate

        public java.lang.String getTemplate()
        Returns the template name.
        Returns:
        the template name
      • getVersionRestriction

        public IVersionRestriction getVersionRestriction()
        Returns the version restriction.
        Returns:
        the version restriction
      • accept

        public java.lang.Object accept​(IExpressionVisitor visitor)
                                throws VilException
        Description copied from class: Expression
        Visits the expression.
        Specified by:
        accept in class Expression
        Parameters:
        visitor - the visitor
        Returns:
        the result of visiting this expression (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)