summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/document/SDDocumentType.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/main/java/com/yahoo/searchdefinition/document/SDDocumentType.java')
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/document/SDDocumentType.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/document/SDDocumentType.java b/config-model/src/main/java/com/yahoo/searchdefinition/document/SDDocumentType.java
index cef9cf3dede..752eb856afa 100644
--- a/config-model/src/main/java/com/yahoo/searchdefinition/document/SDDocumentType.java
+++ b/config-model/src/main/java/com/yahoo/searchdefinition/document/SDDocumentType.java
@@ -196,6 +196,8 @@ public class SDDocumentType implements Cloneable, Serializable {
public Collection<SDDocumentType> getInheritedTypes() { return inheritedTypes.values(); }
+ public Map<DataTypeName, SDDocumentType> inheritedTypes() { return inheritedTypes; }
+
protected void validateId(Schema schema) {
if (schema == null) return;
if (schema.getDocument(getName()) == null) return;
@@ -298,6 +300,8 @@ public class SDDocumentType implements Cloneable, Serializable {
return docType.getFieldCount();
}
+
+
@Override
public String toString() {
return "SD document type '" + docType.getName() + "'";