All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yworks.yshrink.ant.AttributesSection Maven / Gradle / Ivy

Go to download

The open-source Java obfuscation tool working with Ant and Gradle by yWorks - the diagramming experts

There is a newer version: 4.1.1
Show newest version
package com.yworks.yshrink.ant;

import com.yworks.yguard.common.ant.PatternMatchedSection;

import java.util.Set;
import java.util.HashSet;
import java.util.StringTokenizer;

/**
 * @author Michael Schroeder, yWorks GmbH http://www.yworks.com
 */
public class AttributesSection extends PatternMatchedSection {

  private Set attributes = new HashSet( );

  public Set getAttributes() {
    return attributes;
  }

  public void setName( String attributeStr ) {

    StringTokenizer tok = new StringTokenizer( attributeStr, "," );
    while ( tok.hasMoreElements() ) {
      attributes.add( tok.nextToken().trim() );
    }

  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy