org.jboss.osgi.metadata.internal
Class NativeCodeAttributeListValueCreator
java.lang.Object
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
|
Field Summary |
protected org.jboss.logging.Logger |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.jboss.logging.Logger log
NativeCodeAttributeListValueCreator
public NativeCodeAttributeListValueCreator()
parseAttribute
protected void parseAttribute(String attribute,
List<ParameterizedAttribute> list,
boolean trace)
- Use appropriate JavaCC parsing util.
- Parameters:
attribute - string value to parselist - data holder listtrace - 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. All Rights Reserved.