@Test void convertAttrFilterXrefAttr() { AttributeFilter attrFilter = new AttributeFilter().add(XREF_ATTR_NAME, new AttributeFilter().add(REF_ATTR_NAME)); assertEquals( new Fetch().field(XREF_ATTR_NAME, new Fetch().field(REF_ATTR_NAME)), convert(attrFilter, entityType, "en")); }
public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; }
AttributeFilterToFetchConverter { public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; } }
AttributeFilterToFetchConverter { public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; } private  AttributeFilterToFetchConverter(); }
AttributeFilterToFetchConverter { public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; } private  AttributeFilterToFetchConverter(); static Fetch convert(
      AttributeFilter attrFilter, EntityType entityType, String languageCode); static Fetch createDefaultEntityFetch(EntityType entityType, String languageCode); static Fetch createDefaultAttributeFetch(Attribute attr, String languageCode); }
AttributeFilterToFetchConverter { public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; } private  AttributeFilterToFetchConverter(); static Fetch convert(
      AttributeFilter attrFilter, EntityType entityType, String languageCode); static Fetch createDefaultEntityFetch(EntityType entityType, String languageCode); static Fetch createDefaultAttributeFetch(Attribute attr, String languageCode);  }