Class NewDocumentType

  • All Implemented Interfaces:
    DataTypeCollection, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.yahoo.document.DataType>

    public final class NewDocumentType
    extends com.yahoo.document.StructuredDataType
    implements DataTypeCollection
    Author:
    baldersheim
    See Also:
    Serialized Form
    • Method Detail

      • getHeader

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

        public java.util.Collection<NewDocumentType> getInherited()
      • 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 java.lang.Class 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​(java.lang.String name)
        Specified by:
        getField in class com.yahoo.document.StructuredDataType
      • containsField

        public boolean containsField​(java.lang.String fieldName)
      • getField

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

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

        public java.util.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
      • getTypes

        public java.util.Collection<com.yahoo.document.DataType> getTypes()
        Specified by:
        getTypes in interface DataTypeCollection
      • getAnnotations

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

        public java.util.Collection<com.yahoo.document.annotation.AnnotationType> getAllAnnotations()
      • getDataType

        public com.yahoo.document.DataType getDataType​(java.lang.String name)
        Specified by:
        getDataType in interface DataTypeCollection
      • getDataTypeRecursive

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

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

        public com.yahoo.document.annotation.AnnotationType getAnnotationType​(java.lang.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 java.util.Set<FieldSet> getFieldSets()
        The field sets defined for this type and its Search
      • getImportedFieldNames

        public java.util.Set<java.lang.String> getImportedFieldNames()