public AtlasTypeDefHeader(AtlasTypeDefHeader other) { super(); if (other == null) { setGuid(null); setName(null); setCategory(null); } else { setGuid(other.getGuid()); setName(other.getName()); setCategory(other.getCategory()); } }
public static List<String> getTypeNames(List<AtlasTypeDefHeader> atlasTypesDefs) { List<String> ret = new ArrayList<String>(); if (CollectionUtils.isNotEmpty(atlasTypesDefs)) { for (AtlasTypeDefHeader atlasTypesDef : atlasTypesDefs) { ret.add(atlasTypesDef.getName()); } } return ret; }
@Override public String toString() { return toString(new StringBuilder()).toString(); }
public static List<AtlasTypeDefHeader> toTypeDefHeader(AtlasTypesDef typesDef) { List<AtlasTypeDefHeader> headerList = new LinkedList<>(); if (CollectionUtils.isNotEmpty(typesDef.getEnumDefs())) { for (AtlasEnumDef enumDef : typesDef.getEnumDefs()) { headerList.add(new AtlasTypeDefHeader(enumDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getStructDefs())) { for (AtlasStructDef structDef : typesDef.getStructDefs()) { headerList.add(new AtlasTypeDefHeader(structDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getClassificationDefs())) { for (AtlasClassificationDef classificationDef : typesDef.getClassificationDefs()) { headerList.add(new AtlasTypeDefHeader(classificationDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getEntityDefs())) { for (AtlasEntityDef entityDef : typesDef.getEntityDefs()) { headerList.add(new AtlasTypeDefHeader(entityDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getRelationshipDefs())) { for (AtlasRelationshipDef relationshipDef : typesDef.getRelationshipDefs()) { headerList.add(new AtlasTypeDefHeader(relationshipDef)); } } return headerList; }
@Override public String toString() { return toString(new StringBuilder()).toString(); }
public static List<AtlasTypeDefHeader> toTypeDefHeader(AtlasTypesDef typesDef) { List<AtlasTypeDefHeader> headerList = new LinkedList<>(); if (CollectionUtils.isNotEmpty(typesDef.getEnumDefs())) { for (AtlasEnumDef enumDef : typesDef.getEnumDefs()) { headerList.add(new AtlasTypeDefHeader(enumDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getStructDefs())) { for (AtlasStructDef structDef : typesDef.getStructDefs()) { headerList.add(new AtlasTypeDefHeader(structDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getClassificationDefs())) { for (AtlasClassificationDef classificationDef : typesDef.getClassificationDefs()) { headerList.add(new AtlasTypeDefHeader(classificationDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getEntityDefs())) { for (AtlasEntityDef entityDef : typesDef.getEntityDefs()) { headerList.add(new AtlasTypeDefHeader(entityDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getRelationshipDefs())) { for (AtlasRelationshipDef relationshipDef : typesDef.getRelationshipDefs()) { headerList.add(new AtlasTypeDefHeader(relationshipDef)); } } return headerList; }
public AtlasTypeDefHeader(AtlasTypeDefHeader other) { super(); if (other == null) { setGuid(null); setName(null); setCategory(null); } else { setGuid(other.getGuid()); setName(other.getName()); setCategory(other.getCategory()); } }