/** * 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); }
/** * 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); }