org.jboss.osgi.metadata.internal
Class NativeCodeAttributeListValueCreator

java.lang.Object
  extended by org.jboss.osgi.metadata.internal.NativeCodeAttributeListValueCreator
All Implemented Interfaces:
ValueCreator<List<ParameterizedAttribute>>

public class NativeCodeAttributeListValueCreator
extends Object

Create path attribute list from string attribute for Native Code manifest header. The Native Code header is specific in that it allows duplicate attributes.

Author:
David Bosschaert

Constructor Summary
NativeCodeAttributeListValueCreator()
           
 
Method Summary
 T createValue(String attribute)
          Create value from string attribute.
protected  void parseAttribute(String attribute, List<ParameterizedAttribute> list, boolean trace)
          Use appropriate JavaCC parsing util.
 List<ParameterizedAttribute> useString(String attribute)
          Use this method on non-null trimmed string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeCodeAttributeListValueCreator

public NativeCodeAttributeListValueCreator()
Method Detail

parseAttribute

protected void parseAttribute(String attribute,
                              List<ParameterizedAttribute> list,
                              boolean trace)
Use appropriate JavaCC parsing util.

Parameters:
attribute - string value to parse
list - data holder list
trace - log trace

useString

public List<ParameterizedAttribute> useString(String attribute)
Use this method on non-null trimmed string.

Parameters:
attribute - non-null trimmed string
Returns:
expected value

createValue

public T createValue(String attribute)
Description copied from interface: ValueCreator
Create value from string attribute.

Specified by:
createValue in interface ValueCreator<T>
Parameters:
attribute - string to get value from
Returns:
value


Copyright © 2012 JBoss by Red Hat. All Rights Reserved.