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.amalto.core.save.context.StorageSaver.java

@Override
public DocumentSaver createSaver() {
    DocumentSaver saver = SaverContextFactory.invokeSaverExtension(new Save());
    switch (storage.getType()) {
    case MASTER:/* ww w .j  a v  a2s .co  m*/
        if (validate) {
            saver = new Validation(saver);
        }
        // Intentionally: no break here.
    case STAGING:
        if (invokeBeforeSaving) {
            saver = new BeforeSaving(saver);
        }
        saver = new ApplyActions(saver); // Apply actions is mandatory
        if (updateReport) {
            saver = new UpdateReport(saver);
        }
        return new Init(new ID(new GenerateActions(new Security(saver))));
    case SYSTEM:
        return new Init(new ID(new GenerateActions(new ApplyActions(saver))));
    default:
        throw new NotImplementedException("No support for storage type '" + storage.getType() + "'."); //$NON-NLS-1$ //$NON-NLS-2$
    }
}

From source file:de.nec.nle.siafu.graphics.controlpanel.OverlaysPanel.java

/**
 * Get the right icon for this overlay type.
 * /*  w w w . j  ava  2  s  .  c  om*/
 * @param ov the overlay for which an icon is needed
 * @return the right icon as an Image
 */
private Image getIcon(final Overlay ov) {
    if (!iconsLoaded) {
        binaryOverlayIcon = new Image(Display.getCurrent(),
                getClass().getResourceAsStream("/misc/binaryOverlayIcon.png"));
        discreteOverlayIcon = new Image(Display.getCurrent(),
                getClass().getResourceAsStream("/misc/discreteOverlayIcon.png"));
        realOverlayIcon = new Image(Display.getCurrent(),
                getClass().getResourceAsStream("/misc/realOverlayIcon.png"));
        iconsLoaded = true;

    }
    if (ov instanceof BinaryOverlay) {
        return binaryOverlayIcon;
    } else if (ov instanceof DiscreteOverlay) {
        return discreteOverlayIcon;

    } else if (ov instanceof RealOverlay) {
        return realOverlayIcon;
    }
    throw new NotImplementedException("You tried to get the icon of an unknown overlay type");
}

From source file:de.uni_hannover.dcsec.siafu.graphics.controlpanel.OverlaysPanel.java

/**
 * Get the right icon for this overlay type.
 * /*from w  ww  .  j  av a  2s  .c om*/
 * @param ov the overlay for which an icon is needed
 * @return the right icon as an Image
 */
private Image getIcon(final Overlay ov) {
    if (!iconsLoaded) {
        binaryOverlayIcon = new Image(Display.getCurrent(),
                getClass().getResourceAsStream("/res/misc/binaryOverlayIcon.png"));
        discreteOverlayIcon = new Image(Display.getCurrent(),
                getClass().getResourceAsStream("/res/misc/discreteOverlayIcon.png"));
        realOverlayIcon = new Image(Display.getCurrent(),
                getClass().getResourceAsStream("/res/misc/realOverlayIcon.png"));
        iconsLoaded = true;

    }
    if (ov instanceof BinaryOverlay) {
        return binaryOverlayIcon;
    } else if (ov instanceof DiscreteOverlay) {
        return discreteOverlayIcon;

    } else if (ov instanceof RealOverlay) {
        return realOverlayIcon;
    }
    throw new NotImplementedException("You tried to get the icon of an unknown overlay type");
}

From source file:com.impetus.kundera.query.QueryImpl.java

@Override
public Query setMaxResults(int maxResult) {
    throw new NotImplementedException("TODO");
}

From source file:com.yolodata.tbana.cascading.splunk.SplunkScheme.java

@Override
public void sinkConfInit(FlowProcess<JobConf> flowProcess, Tap<JobConf, RecordReader, OutputCollector> tap,
        JobConf conf) {/*  w  w  w  .  j  ava  2s  .  co  m*/
    throw new NotImplementedException("Storing to Splunk not implemented");
}

From source file:com.amalto.core.storage.inmemory.InMemoryJoinNodeCreation.java

@Override
public Void visit(BinaryLogicOperator condition) {
    condition.getLeft().accept(this);
    FieldMetadata leftField = fieldMetadata;
    condition.getRight().accept(this);
    FieldMetadata rightField = fieldMetadata;
    // Union and Intersection
    List<FieldMetadata> leftPath = StorageMetadataUtils.path(root.type, leftField);
    List<FieldMetadata> rightPath = StorageMetadataUtils.path(root.type, rightField);
    InMemoryJoinNode lastCommonNode = root;
    for (int i = 0; i < leftPath.size(); i++) {
        if (!rightPath.get(i).equals(leftPath.get(i))) {
            break;
        }//from   w w  w  .  j av  a 2 s  . co m
        InMemoryJoinNode node = new InMemoryJoinNode();
        node.name = leftPath.get(i).getName();
        lastCommonNode = root.children.get(node);
    }
    if (condition.getPredicate() == Predicate.AND) {
        lastCommonNode.merge = InMemoryJoinNode.Merge.INTERSECTION;
    } else if (condition.getPredicate() == Predicate.OR) {
        lastCommonNode.merge = InMemoryJoinNode.Merge.UNION;
    } else {
        throw new NotImplementedException("Not implemented: " + condition.getPredicate());
    }
    return null;
}

From source file:com.cloudera.impala.analysis.StatementBase.java

/**
 * Returns a deep copy of this node including its analysis state. Some members such as
 * tuple and slot descriptors are generally not deep copied to avoid potential
 * confusion of having multiple descriptor instances with the same id, although
 * they should be unique in the descriptor table.
 * TODO for 2.3: Consider also cloning table and slot descriptors for clarity,
 * or otherwise make changes to more provide clearly defined clone() semantics.
 *//*  www.  j a v a2 s. c  o  m*/
@Override
public StatementBase clone() {
    throw new NotImplementedException("Clone() not implemented for " + getClass().getSimpleName());
}

From source file:com.impetus.kundera.client.ThriftClient.java

@Override
public <E> E loadColumns(EntityManagerImpl em, Class<E> clazz, String keyspace, String columnFamily, String key,
        EntityMetadata m) throws Exception {
    throw new NotImplementedException("TODO");
}

From source file:com.feilong.framework.netpay.advance.AbstractPaymentAdvanceAdaptor.java

@Override
public boolean isSupportCloseTrade() {
    throw new NotImplementedException("isSupportCloseTrade is not implemented!");
}

From source file:AIR.Common.Web.Session.ContentLoggingHttpServletRequest.java

@Override
public String[] getParameterValues(String name) {
    // TODO Need to implement parameters
    throw new NotImplementedException(
            "For proper function, parameter parsing must be implemented on ContentLoggingHttpServletRequest");
}