public List<Struct> listTraitDefinitions(final String guid) throws AtlasServiceException {
  JSONObject jsonResponse=callAPI(API.GET_ALL_TRAIT_DEFINITIONS,null,guid,TRAIT_DEFINITIONS);
  List<JSONObject> traitDefList=extractResults(jsonResponse,AtlasClient.RESULTS,new ExtractOperation<JSONObject,JSONObject>());
  ArrayList<Struct> traitStructList=new ArrayList<>();
  for (  JSONObject traitDef : traitDefList) {
    Struct traitStruct=InstanceSerialization.fromJsonStruct(traitDef.toString(),true);
    traitStructList.add(traitStruct);
  }
  return traitStructList;
}

public List < Struct > listTraitDefinitions ( final String guid ) throws AtlasServiceException { JSONObject jsonResponse = callAPI ( API . GET_ALL_TRAIT_DEFINITIONS , null , guid , TRAIT_DEFINITIONS ) ; List < JSONObject > traitDefList = extractResults ( jsonResponse , AtlasClient . RESULTS , new ExtractOperation < JSONObject , JSONObject > ( ) ) ; ArrayList < Struct > traitStructList = new ArrayList < > ( ) ; for ( JSONObject traitDef : traitDefList ) { Struct traitStruct = InstanceSerialization . fromJsonStruct ( traitDef . toString ( ) , true ) ; traitStructList . add ( traitStruct ) ; } return traitStructList ; }
get all trait definitions for an entity
