Example usage for org.apache.commons.lang NotImplementedException NotImplementedException

List of usage examples for org.apache.commons.lang NotImplementedException NotImplementedException

Introduction

In this page you can find the example usage for org.apache.commons.lang NotImplementedException NotImplementedException.

Prototype

public NotImplementedException(Class clazz) 

Source Link

Document

Constructs a new NotImplementedException referencing the specified class.

Usage

From source file:com.feilong.taglib.display.breadcrumb.comparator.BreadCrumbEntityComparator.java

@Override
public int compare(BreadCrumbEntity<PK> breadCrumbEntity1, BreadCrumbEntity<PK> breadCrumbEntity2) {
    //TODO// w  ww  . j a  va  2 s.c om
    throw new NotImplementedException("compare is not implemented!");
    //        if (isNullOrEmpty(breadCrumbEntity1)){
    //            throw new NullPointerException("breadCrumbEntity1 can't be null/empty!");
    //        }
    //
    //        if (isNullOrEmpty(breadCrumbEntity2)){
    //            throw new NullPointerException("breadCrumbEntity2 can't be null/empty!");
    //        }
    //
    //        PK id1 = breadCrumbEntity1.getId();
    //        PK id2 = breadCrumbEntity2.getId();
    //
    //        PK parentId1 = breadCrumbEntity1.getParentId();
    //        PK parentId2 = breadCrumbEntity2.getParentId();
    //
    //        if (id1 == parentId2){
    //            return -1;
    //        }
    //        if (parentId1 == id2){
    //            return 1;
    //        }
    //        return 1;
    //
    //        //?, 0 
}

From source file:com.amalto.core.history.action.DateBasedAction.java

public Action getAction() {
    switch (type) {
    case MOST_RECENT:
        return right.getDate().getTime() > left.getDate().getTime() ? right : left;
    case LEAST_RECENT:
        return right.getDate().getTime() < left.getDate().getTime() ? right : left;
    default://from   ww w  .  j av  a 2s  .c  o  m
        throw new NotImplementedException("No support for '" + type + "'.");
    }
}

From source file:ar.com.zauber.commons.web.proxy.impl.dao.behaviour.impl.FalseURLRequestMapperAssertion.java

/** @see URLRequestMapperAssertion#getExpectedResult() */
public final URLResult getExpectedResult() {
    throw new NotImplementedException("won't be implemented");
}

From source file:blue.lapis.pore.impl.block.PoreShulkerBox.java

@Override
public DyeColor getColor() {
    throw new NotImplementedException("Not available in Sponge");
}

From source file:com.amalto.core.server.lifecycle.tomcat.TomcatServer.java

@Override
public boolean hasDataSource(String dataSourceName, String container, StorageType type) {
    boolean isDataSourceDefinitionPresent = dataSourceFactory.hasDataSource(dataSourceName);
    if (isDataSourceDefinitionPresent) {
        DataSourceDefinition dataSource = dataSourceFactory.getDataSource(dataSourceName, container);
        switch (type) {
        case MASTER:
            return dataSource.getMaster() != null;
        case STAGING:
            return dataSource.getStaging() != null;
        default:/*  w ww  . j a v a  2 s .  c om*/
            throw new NotImplementedException("Not supported: " + type);
        }
    }
    return false;
}

From source file:dkpro.similarity.algorithms.api.JCasTextSimilarityMeasureBase.java

@Override
public double getSimilarity(String string1, String string2) throws SimilarityException {
    throw new SimilarityException(
            new NotImplementedException("Use getSimilarity(JCas, JCas) for this measure."));
}

From source file:com.google.gplus.provider.GPlusActivitySerializer.java

@Override
public com.google.api.services.plus.model.Activity serialize(Activity deserialized) {
    throw new NotImplementedException("Not currently implemented");
}

From source file:com.antsdb.saltedfish.sql.vdm.KeyUtil.java

/**
 * /*  www .  java2  s .co m*/
 * @param column
 * @param bytes
 * @param pos
 * @param obj
 * @return number of bytes written
 */
static int write(ColumnMeta column, byte[] bytes, int pos, Object obj) {
    DataType type = column.getDataType();
    if (obj == null) {
        throw new NotImplementedException("null is not supported as part of key for now");
    }
    if (type.getJavaType() == Integer.class) {
        Integer value = 0;
        if (obj != null) {
            value = UberUtil.toObject(Integer.class, obj);
        }
        if (value < 0) {
            throw new NotImplementedException("negtive number is not yet supported");
        }
        bytes[pos + 0] = (byte) (value >> 24);
        bytes[pos + 1] = (byte) (value >> 16);
        bytes[pos + 2] = (byte) (value >> 8);
        bytes[pos + 3] = (byte) (int) value;
        return 4;
    } else if (type.getJavaType() == Long.class) {
        Long value = 0l;
        if (obj != null) {
            value = UberUtil.toObject(Long.class, obj);
        }
        if (value < 0) {
            throw new NotImplementedException("negtive number is not yet supported");
        }
        for (int i = 7; i >= 0; i--) {
            bytes[pos + i] = (byte) (value & 0xffL);
            value >>= 8;
        }
        return 8;
    } else {
        throw new NotImplementedException(type + " is not supported to particiate in index");
    }
}

From source file:com.linkedin.restli.server.multiplexer.SynchronousRequestHandler.java

/**
 * Returning a response from this method leads to 'onSuccess' invocation on the callback. Throwing an exception - 'onError'.
 *///from   w w  w .  j  a va 2s.  c  o m
public RestResponse handleRequestSync(RestRequest request, RequestContext requestContext) {
    throw new NotImplementedException("Please mock me!");
}

From source file:ar.com.zauber.commons.web.proxy.impl.dao.behaviour.impl.FalseURLRequestMapperAssertion.java

/** @see URLRequestMapperAssertion#getTestRequest() */
public final HttpServletRequest getTestRequest() {
    throw new NotImplementedException("won't be implemented");
}