You are here

hasAspect

public boolean hasAspect(String aspectName) determines if the node has the specified aspect.

Parameters

String aspectName
The name of the aspect whose presence is to be checked for.

Returns

Returns a boolean. True if the node has the specified aspect, false otherwise.

Example


    Node node = getTestNode(session, "ClimbingVolcanoes.JPG");
    
    Log.d(TAG, "hasAspect(P:cm:titled): " + node.hasAspect("P:cm:titled"));        

      

Would return output such as the following:

    hasAspect(P:cm:titled): true