本文整理汇总了Java中net.sf.freecol.common.io.FreeColXMLReader.getArrayAttributeMap方法的典型用法代码示例。如果您正苦于以下问题:Java FreeColXMLReader.getArrayAttributeMap方法的具体用法?Java FreeColXMLReader.getArrayAttributeMap怎么用?Java FreeColXMLReader.getArrayAttributeMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.freecol.common.io.FreeColXMLReader
的用法示例。
在下文中一共展示了FreeColXMLReader.getArrayAttributeMap方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: VacantPlayersMessage
import net.sf.freecol.common.io.FreeColXMLReader; //导入方法依赖的package包/类
/**
* Create a new {@code VacantPlayersMessage} from a stream.
*
* @param game The {@code Game} this message belongs to (null here).
* @param xr The {@code FreeColXMLReader} to read from.
* @exception XMLStreamException if the stream is corrupt.
*/
public VacantPlayersMessage(Game game, FreeColXMLReader xr)
throws XMLStreamException {
super(TAG, xr.getArrayAttributeMap());
}
示例2: getAttributeMap
import net.sf.freecol.common.io.FreeColXMLReader; //导入方法依赖的package包/类
/**
* Get the attributes as a map.
*
* @param xr A {@code FreeColXMLReader} to read from.
* @return A map of the attributes.
*/
private static Map<String, String> getAttributeMap(FreeColXMLReader xr) {
Map<String, String> ret = xr.getArrayAttributeMap();
ret.put(DIVERT_TAG, xr.getAttribute(DIVERT_TAG, (String)null));
return ret;
}
示例3: getAttributeMap
import net.sf.freecol.common.io.FreeColXMLReader; //导入方法依赖的package包/类
/**
* Get a map of attributes from the reader.
*
* @param xr The {@code FreeColXMLReader} to query.
* @return A map of attributes.
*/
private static Map<String, String> getAttributeMap(FreeColXMLReader xr) {
Map<String, String> ret = xr.getArrayAttributeMap();
ret.put(COLONY_TAG, xr.getAttribute(COLONY_TAG, (String)null));
return ret;
}