Class AbstractQValueFactory

  • All Implemented Interfaces:
    org.apache.jackrabbit.spi.QValueFactory
    Direct Known Subclasses:
    QValueFactoryImpl

    public abstract class AbstractQValueFactory
    extends Object
    implements org.apache.jackrabbit.spi.QValueFactory
    AbstractQValueFactory...
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String DEFAULT_ENCODING
      the default encoding
      protected static org.apache.jackrabbit.spi.NameFactory NAME_FACTORY  
      protected static org.apache.jackrabbit.spi.PathFactory PATH_FACTORY  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.jackrabbit.spi.QValue[] computeAutoValues​(org.apache.jackrabbit.spi.QPropertyDefinition propertyDefinition)  
      org.apache.jackrabbit.spi.QValue create​(boolean value)  
      org.apache.jackrabbit.spi.QValue create​(double value)  
      org.apache.jackrabbit.spi.QValue create​(long value)  
      org.apache.jackrabbit.spi.QValue create​(String value, int type)  
      org.apache.jackrabbit.spi.QValue create​(BigDecimal value)  
      org.apache.jackrabbit.spi.QValue create​(URI value)  
      org.apache.jackrabbit.spi.QValue create​(Calendar value)  
      org.apache.jackrabbit.spi.QValue create​(org.apache.jackrabbit.spi.Name value)  
      org.apache.jackrabbit.spi.QValue create​(org.apache.jackrabbit.spi.Path value)  
      protected org.apache.jackrabbit.spi.QValue createReference​(String ref, boolean weak)
      Creates a new QValue of type REFERENCE or WEAKREFERENCE.
      protected org.apache.jackrabbit.spi.QValue createString​(String value)
      Creates a new QValue of type STRING.
      • Methods inherited from interface org.apache.jackrabbit.spi.QValueFactory

        create, create, create
    • Field Detail

      • PATH_FACTORY

        protected static final org.apache.jackrabbit.spi.PathFactory PATH_FACTORY
      • NAME_FACTORY

        protected static final org.apache.jackrabbit.spi.NameFactory NAME_FACTORY
    • Constructor Detail

      • AbstractQValueFactory

        public AbstractQValueFactory()
    • Method Detail

      • computeAutoValues

        public org.apache.jackrabbit.spi.QValue[] computeAutoValues​(org.apache.jackrabbit.spi.QPropertyDefinition propertyDefinition)
                                                             throws RepositoryException
        Specified by:
        computeAutoValues in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.computeAutoValues(org.apache.jackrabbit.spi.QPropertyDefinition)
      • create

        public org.apache.jackrabbit.spi.QValue create​(String value,
                                                       int type)
                                                throws RepositoryException
        Specified by:
        create in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.create(String, int)
      • create

        public org.apache.jackrabbit.spi.QValue create​(Calendar value)
                                                throws RepositoryException
        Specified by:
        create in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.create(Calendar)
      • create

        public org.apache.jackrabbit.spi.QValue create​(double value)
                                                throws RepositoryException
        Specified by:
        create in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.create(double)
      • create

        public org.apache.jackrabbit.spi.QValue create​(long value)
                                                throws RepositoryException
        Specified by:
        create in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.create(long)
      • create

        public org.apache.jackrabbit.spi.QValue create​(boolean value)
                                                throws RepositoryException
        Specified by:
        create in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.create(boolean)
      • create

        public org.apache.jackrabbit.spi.QValue create​(org.apache.jackrabbit.spi.Name value)
                                                throws RepositoryException
        Specified by:
        create in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.create(Name)
      • create

        public org.apache.jackrabbit.spi.QValue create​(org.apache.jackrabbit.spi.Path value)
                                                throws RepositoryException
        Specified by:
        create in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.create(Path)
      • create

        public org.apache.jackrabbit.spi.QValue create​(URI value)
                                                throws RepositoryException
        Specified by:
        create in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.create(URI)
      • create

        public org.apache.jackrabbit.spi.QValue create​(BigDecimal value)
                                                throws RepositoryException
        Specified by:
        create in interface org.apache.jackrabbit.spi.QValueFactory
        Throws:
        RepositoryException
        See Also:
        QValueFactory.create(URI)
      • createString

        protected org.apache.jackrabbit.spi.QValue createString​(String value)
        Creates a new QValue of type STRING.
        Parameters:
        value - the string value.
        Returns:
        a new QValue.
      • createReference

        protected org.apache.jackrabbit.spi.QValue createReference​(String ref,
                                                                   boolean weak)
        Creates a new QValue of type REFERENCE or WEAKREFERENCE.
        Parameters:
        ref - the reference value.
        weak - whether the reference is weak.
        Returns:
        a new QValue.