本文整理匯總了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;
}