예제 #1
0
파일: Aspect.java 프로젝트: jkat718/pcgen
  /**
   * Instantiates a new aspect.
   *
   * @param key the name of the aspect
   * @param aString the aspect string
   */
  public Aspect(final AspectName key, final String aString) {
    if (key == null) {
      throw new IllegalArgumentException("Key for Aspect cannot be null");
    }
    if (aString == null) {
      throw new IllegalArgumentException("Value for Aspect cannot be null");
    }
    this.key = key;

    parseAspectString(aString);
  }
예제 #2
0
파일: Aspect.java 프로젝트: jkat718/pcgen
  /**
   * Instantiates a new aspect.
   *
   * @param name the name of the aspect
   * @param aString the aspect string
   */
  public Aspect(final String name, final String aString) {
    if (name == null) {
      throw new IllegalArgumentException("Name for Aspect cannot be null");
    }
    if (aString == null) {
      throw new IllegalArgumentException("Value for Aspect cannot be null");
    }
    this.key = AspectName.getConstant(name);

    parseAspectString(aString);
  }