com.sun.enterprise.tools
Class InhabitantsDescriptor
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
com.sun.enterprise.tools.InhabitantsDescriptor
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,String>
public class InhabitantsDescriptor
- extends HashMap<String,String>
Inhabitants descriptor as a map from the class name to its line.
- Author:
- Kohsuke Kawaguchi, Jeff Trent
- See Also:
InhabitantFileBasedParser
,
Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, size, values |
InhabitantsDescriptor
public InhabitantsDescriptor()
InhabitantsDescriptor
public InhabitantsDescriptor(File f)
throws IOException
- Throws:
IOException
enableDateOutput
public void enableDateOutput(boolean enabled)
enableCommentOutput
public void enableCommentOutput(boolean enabled)
setComment
public void setComment(String comment)
appendComment
public void appendComment(String comment)
load
public void load(File f)
throws IOException
- Loads an existing file.
- Throws:
IOException
put
public String put(String key,
String value)
- Specified by:
put
in interface Map<String,String>
- Overrides:
put
in class HashMap<String,String>
putAll
public String putAll(String service,
Collection<String> contracts,
Collection<String> annotations,
String name,
Object metaObj)
remove
public String remove(Object key)
- Specified by:
remove
in interface Map<String,String>
- Overrides:
remove
in class HashMap<String,String>
write
public void write(File outputDir,
Messager messager,
String habitatName)
- Writes the descriptor to a file.
write
public void write(File out)
throws IOException
- Throws:
IOException
write
public void write(PrintWriter w)
toString
public String toString()
- Overrides:
toString
in class AbstractMap<String,String>
Copyright © 2013 Oracle Corporation. All Rights Reserved.