private String createDisplayName ( Target target , Object [ ] customConfigurations ) { HttpPrefixFetchFilter subtreeFecthFilter = getUriPrefixFecthFilter ( customConfigurations ) ; if ( subtreeFecthFilter != null ) { return abbreviateDisplayName ( subtreeFecthFilter . getNormalisedPrefix ( ) ) ; } if ( target . getContext ( ) != null ) { return Constant . messages . getString ( "context.prefixName" , target . getContext ( ) . getName ( ) ) ; } else if ( target . isInScopeOnly ( ) ) { return Constant . messages . getString ( "target.allInScope" ) ; } else if ( target . getStartNode ( ) == null ) { if ( customConfigurations != null ) { for ( Object customConfiguration : customConfigurations ) { if ( customConfiguration instanceof URI ) { return abbreviateDisplayName ( ( ( URI ) customConfiguration ) . toString ( ) ) ; } } } return Constant . messages . getString ( "target.empty" ) ; } return abbreviateDisplayName ( target . getStartNode ( ) . getHierarchicNodeName ( false ) ) ; }
Creates the display name for the given target and optionally the given custom configurations .