public boolean validateLocationMode(LocationMode mode) {
        switch (mode) {
            case PRIMARY_ONLY:
                return this.primaryUri != null;

            case SECONDARY_ONLY:
                return this.secondaryUri != null;

            default:
                return (this.primaryUri != null) && (this.secondaryUri != null);
        }
    }
public boolean validateLocationMode(LocationMode mode) {
        switch (mode) {
            case PRIMARY_ONLY:
                return this.primaryUri != null;

            case SECONDARY_ONLY:
                return this.secondaryUri != null;

            default:
                return (this.primaryUri != null) && (this.secondaryUri != null);
        }
    }
public boolean validateLocationMode ( LocationMode mode ) { switch ( mode ) { case PRIMARY_ONLY : return this . primaryUri != null ; case SECONDARY_ONLY : return this . secondaryUri != null ; default : return ( this . primaryUri != null ) && ( this . secondaryUri != null ) ; } }
Validate that a URI exists for the specified <code>{@link LocationMode}</code>.

@param mode
The <code>LocationMode</code> to validate.

@return
<code>true</code> if a URI exists for the specified mode; otherwise <code>false</code>.
Validate that a URI exists for the specified <code > { @link LocationMode } < / code > .