Class NewDocumentType

java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DataType
com.yahoo.document.StructuredDataType
com.yahoo.documentmodel.NewDocumentType
All Implemented Interfaces:
DataTypeCollection, Cloneable, Comparable<com.yahoo.document.DataType>

public final class NewDocumentType extends com.yahoo.document.StructuredDataType implements DataTypeCollection
Author:
baldersheim
  • Constructor Details

  • Method Details

    • getFullName

      public NewDocumentType.Name getFullName()
    • getContentStruct

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

      public Collection<NewDocumentType> getInherited()
    • getInherited

      public NewDocumentType getInherited(NewDocumentType.Name inherited)
    • 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
    • inherit

      public void inherit(NewDocumentType inherited)
    • inherits

      public boolean inherits(NewDocumentType superType)
    • 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
    • getTypes

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

      public DataTypeCollection getAllTypes()
    • getAnnotations

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

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

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

      public com.yahoo.document.DataType getDataType(int id)
      Specified by:
      getDataType in interface DataTypeCollection
    • 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)
    • add

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

      public NewDocumentType add(com.yahoo.document.DataType 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
    • getDocumentReferences

      public Set<NewDocumentType.Name> getDocumentReferences()
    • getImportedFieldNames

      public Set<String> getImportedFieldNames()
    • getReferenceDataType

      public NewDocumentReferenceDataType getReferenceDataType()