Examples of ChangeType


Examples of org.apache.directory.shared.ldap.model.message.controls.ChangeType

                            {
                                case ADD:
                                case DELETE:
                                case MODDN:
                                case MODIFY:
                                    ChangeType changeType = ChangeType.getChangeType( change );

                                    if ( IS_DEBUG )
                                    {
                                        LOG.debug( "changeType = " + changeType );
                                    }

                                    container.getEntryChangeDecorator().setChangeType( changeType );
                                    break;

                                default:
                                    String msg = I18n.err( I18n.ERR_04044 );
                                    LOG.error( msg );
                                    throw new DecoderException( msg );
                            }

                            // We can have an END transition
                            container.setGrammarEndAllowed( true );
                        }
                        catch ( IntegerDecoderException e )
                        {
                            String msg = I18n.err( I18n.ERR_04044 );
                            LOG.error( msg, e );
                            throw new DecoderException( msg );
                        }
                        catch ( IllegalArgumentException e )
                        {
                            throw new DecoderException( e.getLocalizedMessage() );
                        }
                    }
                } );

        // ============================================================================================
        // Transition from Change Type to Previous Dn
        // ============================================================================================
        // EntryChangeNotification ::= SEQUENCE {
        //     ...
        //     previousDN LDAPDN OPTIONAL,
        //     ...
        //
        // Set the previousDN into the structure. We first check that it's a
        // valid Dn
        super.transitions[EntryChangeStates.CHANGE_TYPE_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
            new GrammarTransition<EntryChangeContainer>( EntryChangeStates.CHANGE_TYPE_STATE,
                EntryChangeStates.PREVIOUS_DN_STATE,
                UniversalTag.OCTET_STRING.getValue(),
                new GrammarAction<EntryChangeContainer>( "Set EntryChangeControl previousDN" )
                {
                    public void action( EntryChangeContainer container ) throws DecoderException
                    {
                        ChangeType changeType = container.getEntryChangeDecorator().getChangeType();

                        if ( changeType != ChangeType.MODDN )
                        {
                            LOG.error( I18n.err( I18n.ERR_04045 ) );
                            throw new DecoderException( I18n.err( I18n.ERR_04046 ) );
View Full Code Here

Examples of org.biojava.utils.ChangeType

    public AnnotationForwarder(Object source, ChangeSupport cs) {
      super(source, cs);
    }

    protected ChangeEvent generateEvent(ChangeEvent ce) {
      ChangeType ct = ce.getType();
      if(ct == Annotation.PROPERTY) {
        return new ChangeEvent(
          getSource(),
          ANNOTATION,
          ct
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.ThreeWayDiffEntry.ChangeType

    else if (gitDirection == Direction.OUTGOING)
      direction = OUTGOING;
    else
      direction = CONFLICTING;

    ChangeType changeType = obj.getDiffEntry().getChangeType();

    if (changeType == ChangeType.MODIFY)
      return direction | CHANGE;
    if (changeType == ChangeType.ADD)
      return direction | ADDITION;
View Full Code Here

Examples of org.eclipse.jgit.diff.DiffEntry.ChangeType

    return false;
  }

  private void formatHeader(ByteArrayOutputStream o, DiffEntry ent)
      throws IOException {
    final ChangeType type = ent.getChangeType();
    final String oldp = ent.getOldPath();
    final String newp = ent.getNewPath();
    final FileMode oldMode = ent.getOldMode();
    final FileMode newMode = ent.getNewMode();
View Full Code Here

Examples of org.eclipse.jgit.diff.DiffEntry.ChangeType

          if (a == null) {
            pm.update(1);
            continue; // was already matched earlier
          }

          ChangeType type;
          if (d.changeType == ChangeType.DELETE) {
            // First use of this source file. Tag it as a rename so we
            // later know it is already been used as a rename, other
            // matches (if any) will claim themselves as copies instead.
            //
View Full Code Here

Examples of org.eclipse.jgit.diff.DiffEntry.ChangeType

    return false;
  }

  private void formatHeader(ByteArrayOutputStream o, DiffEntry ent)
      throws IOException {
    final ChangeType type = ent.getChangeType();
    final String oldp = ent.getOldPath();
    final String newp = ent.getNewPath();
    final FileMode oldMode = ent.getOldMode();
    final FileMode newMode = ent.getNewMode();
View Full Code Here

Examples of org.eclipse.jgit.diff.DiffEntry.ChangeType

    return false;
  }

  private void formatHeader(ByteArrayOutputStream o, DiffEntry ent)
      throws IOException {
    final ChangeType type = ent.getChangeType();
    final String oldp = ent.getOldPath();
    final String newp = ent.getNewPath();
    final FileMode oldMode = ent.getOldMode();
    final FileMode newMode = ent.getNewMode();
View Full Code Here

Examples of org.eclipse.jgit.diff.DiffEntry.ChangeType

          if (a == null) {
            pm.update(1);
            continue; // was already matched earlier
          }

          ChangeType type;
          if (d.changeType == ChangeType.DELETE) {
            // First use of this source file. Tag it as a rename so we
            // later know it is already been used as a rename, other
            // matches (if any) will claim themselves as copies instead.
            //
View Full Code Here

Examples of org.eclipse.jgit.diff.DiffEntry.ChangeType

      if (d == null) {
        pm.update(1);
        continue; // was already matched earlier
      }

      ChangeType type;
      if (s.changeType == ChangeType.DELETE) {
        // First use of this source file. Tag it as a rename so we
        // later know it is already been used as a rename, other
        // matches (if any) will claim themselves as copies instead.
        //
View Full Code Here

Examples of org.eclipse.jgit.diff.DiffEntry.ChangeType

    DataView<ChangeType> legendsView = new DataView<ChangeType>("legend", legendDp) {
      private static final long serialVersionUID = 1L;

      @Override
      public void populateItem(final Item<ChangeType> item) {
        ChangeType entry = item.getModelObject();

        Label changeType = new Label("changeType", "");
        WicketUtils.setChangeTypeCssClass(changeType, entry);
        item.add(changeType);
        int count = stats.get(entry).intValue();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.