Class PropertyInfoImpl

    • Constructor Detail

      • PropertyInfoImpl

        public PropertyInfoImpl​(NodeId parentId,
                                Name name,
                                Path path,
                                PropertyId id,
                                int type,
                                boolean isMultiValued,
                                QValue[] values)
        Deprecated.
        Use PropertyInfoImpl(Path, PropertyId, int, boolean, QValue[]) instead. The parentId is not used any more.
        Creates a new property info for the given parameters.
        Parameters:
        parentId - the parent id.
        name - the name of this property.
        path - the path to this property.
        id - the id of this property.
        type - the type of this property.
        isMultiValued - whether this property is multi-valued.
        values - the values.
      • PropertyInfoImpl

        public PropertyInfoImpl​(Path path,
                                PropertyId id,
                                int type,
                                boolean isMultiValued,
                                QValue[] values)
        Creates a new property info for the given parameters.
        Parameters:
        path - the path to this property.
        id - the id of this property.
        type - the type of this property.
        isMultiValued - whether this property is multi-valued.
        values - the values.
    • Method Detail

      • createSerializablePropertyInfo

        public static PropertyInfo createSerializablePropertyInfo​(PropertyInfo propertyInfo,
                                                                  IdFactory idFactory)
        Creates a new serializable property info for the given PropertyInfo.
        Parameters:
        propertyInfo -
      • getType

        public int getType()
        Specified by:
        getType in interface PropertyInfo
        Returns:
        The type of the Property base on this PropertyInfo. Note, that PropertyType.UNDEFINED will never be returned as the value of a Property always has a defined type.
        See Also:
        PropertyType
      • isMultiValued

        public boolean isMultiValued()
        Specified by:
        isMultiValued in interface PropertyInfo
        Returns:
        true if the Property based on this info object is multivalue.
        See Also:
        PropertyDefinition.isMultiple()
      • getValues

        public QValue[] getValues()
        Specified by:
        getValues in interface PropertyInfo
        Returns:
        The values present on this PropertyInfo.