/*
 * Copyright 2010-2015 Allette Systems (Australia)
 * http://www.allette.com.au
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.pageseeder.diffx.token;

/**
 * Assign a type of token that can affect processing of the diff.
 *
 * @author Christophe Lauret
 *
 * @version 0.9.0
 * @since 0.9.0
 */
public enum TokenType {

  /**
   * Text only.
   */
  TEXT,

  /**
   * An XML attribute.
   */
  ATTRIBUTE,

  /**
   * An XML element.
   */
  ELEMENT,

  /**
   * The start of an XML element.
   */
  START_ELEMENT,

  /**
   * The end of an XML element.
   */
  END_ELEMENT,

  /**
   * Any other type.
   */
  OTHER;

}

@@ -12,16 +12,20 @@
 ight
+ (c)
  2010-20
 15 A
@@ -24,10 +24,10 @@
 0-20
+2
 1
-5
  All
@@ -53,16 +53,19 @@
 alia)%0A *
+   
  http://
@@ -266,16 +266,17 @@
 se at%0A *
+ 
     http
@@ -1145,10 +1145,111 @@
 OTHER;%0A%0A
+  @Override%0A  public String toString() %7B%0A    return this.name().toLowerCase().replace('_', '-');%0A  %7D%0A
 %7D%0A

Add `toString` to `TokenType`