Class NewDocumentType

    • Method Detail

      • getHeader

        public com.yahoo.document.DataType getHeader()
      • allHeader

        public com.yahoo.document.StructDataType allHeader()
        Data type of the header fields of this and all inherited document types
        Returns:
        merged StructDataType
      • getValueClass

        public Class<com.yahoo.document.Document> getValueClass()
        Specified by:
        getValueClass in class com.yahoo.document.DataType
      • isValueCompatible

        public boolean isValueCompatible​(com.yahoo.document.datatypes.FieldValue value)
        Specified by:
        isValueCompatible in class com.yahoo.document.DataType
      • getField

        public com.yahoo.document.Field getField​(String name)
        Specified by:
        getField in class com.yahoo.document.StructuredDataType
      • containsField

        public boolean containsField​(String fieldName)
      • getField

        public com.yahoo.document.Field getField​(int id)
        Specified by:
        getField in class com.yahoo.document.StructuredDataType
      • getAllFields

        public Collection<com.yahoo.document.Field> getAllFields()
      • getFields

        public Collection<com.yahoo.document.Field> getFields()
        Specified by:
        getFields in class com.yahoo.document.StructuredDataType
      • createFieldValue

        public com.yahoo.document.Document createFieldValue()
        Specified by:
        createFieldValue in class com.yahoo.document.StructuredDataType
      • getAnnotations

        public Collection<com.yahoo.document.annotation.AnnotationType> getAnnotations()
      • getAllAnnotations

        public Collection<com.yahoo.document.annotation.AnnotationType> getAllAnnotations()
      • getDataTypeRecursive

        public com.yahoo.document.DataType getDataTypeRecursive​(String name)
      • getDataTypeRecursive

        public com.yahoo.document.DataType getDataTypeRecursive​(int id)
      • getAnnotationType

        public com.yahoo.document.annotation.AnnotationType getAnnotationType​(String name)
      • getAnnotationType

        public com.yahoo.document.annotation.AnnotationType getAnnotationType​(int id)
      • add

        public NewDocumentType add​(com.yahoo.document.annotation.AnnotationType type)
      • replace

        public NewDocumentType replace​(com.yahoo.document.DataType type)
      • getFieldSets

        public Set<FieldSet> getFieldSets()
        The field sets defined for this type and its Schema
      • getImportedFieldNames

        public Set<String> getImportedFieldNames()