blank() -> isBlank().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3749 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1033,7 +1033,7 @@ public class MisoScenePanel extends VirtualMediaPanel
|
||||
String action = scobj.info.action;
|
||||
|
||||
// if the object has no action, skip it
|
||||
if (StringUtil.blank(action)) {
|
||||
if (StringUtil.isBlank(action)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1165,7 +1165,7 @@ public class MisoScenePanel extends VirtualMediaPanel
|
||||
*/
|
||||
protected boolean skipHitObject (SceneObject scobj)
|
||||
{
|
||||
return StringUtil.blank(scobj.info.action);
|
||||
return StringUtil.isBlank(scobj.info.action);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ObjectActionHandler.java,v 1.3 2004/08/27 02:20:06 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -89,7 +89,7 @@ public class ObjectActionHandler
|
||||
*/
|
||||
public static String getType (String command)
|
||||
{
|
||||
int cidx = StringUtil.blank(command) ? -1 : command.indexOf(':');
|
||||
int cidx = StringUtil.isBlank(command) ? -1 : command.indexOf(':');
|
||||
return (cidx == -1) ? "" : command.substring(0, cidx);
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ public class ObjectActionHandler
|
||||
*/
|
||||
public static String getAction (String command)
|
||||
{
|
||||
int cidx = StringUtil.blank(command) ? -1 : command.indexOf(':');
|
||||
int cidx = StringUtil.isBlank(command) ? -1 : command.indexOf(':');
|
||||
return (cidx == -1) ? command : command.substring(cidx+1);
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ public class ObjectInfo extends SimpleStreamableObject
|
||||
*/
|
||||
public boolean isInteresting ()
|
||||
{
|
||||
return (!StringUtil.blank(action) || priority != 0 ||
|
||||
return (!StringUtil.isBlank(action) || priority != 0 ||
|
||||
sx != 0 || sy != 0 || zations != 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ public class FringeConfigurationParser extends CompiledConfigParser
|
||||
|
||||
for (int ii=0; ii < attrs.getLength(); ii++) {
|
||||
String name = attrs.getLocalName(ii);
|
||||
if (StringUtil.blank(name)) {
|
||||
if (StringUtil.isBlank(name)) {
|
||||
name = attrs.getQName(ii);
|
||||
}
|
||||
String value = attrs.getValue(ii);
|
||||
@@ -139,7 +139,7 @@ public class FringeConfigurationParser extends CompiledConfigParser
|
||||
|
||||
for (int ii=0; ii < attrs.getLength(); ii++) {
|
||||
String name = attrs.getLocalName(ii);
|
||||
if (StringUtil.blank(name)) {
|
||||
if (StringUtil.isBlank(name)) {
|
||||
name = attrs.getQName(ii);
|
||||
}
|
||||
String value = attrs.getValue(ii);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SimpleMisoSceneParser.java,v 1.3 2004/08/27 02:20:09 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -49,7 +49,7 @@ public class SimpleMisoSceneParser
|
||||
SimpleMisoSceneRuleSet set = new SimpleMisoSceneRuleSet();
|
||||
|
||||
// configure our top-level path prefix
|
||||
if (StringUtil.blank(prefix)) {
|
||||
if (StringUtil.isBlank(prefix)) {
|
||||
_prefix = set.getOuterElement();
|
||||
} else {
|
||||
_prefix = prefix + "/" + set.getOuterElement();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SimpleMisoSceneWriter.java,v 1.2 2004/08/27 02:20:09 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -87,7 +87,7 @@ public class SimpleMisoSceneWriter implements NestableWriter
|
||||
attrs.addAttribute("", "x", "", "", String.valueOf(info.x));
|
||||
attrs.addAttribute("", "y", "", "", String.valueOf(info.y));
|
||||
|
||||
if (!StringUtil.blank(info.action)) {
|
||||
if (!StringUtil.isBlank(info.action)) {
|
||||
attrs.addAttribute("", "action", "", "", info.action);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SparseMisoSceneParser.java,v 1.4 2004/08/27 02:20:09 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -50,7 +50,7 @@ public class SparseMisoSceneParser
|
||||
SparseMisoSceneRuleSet set = new SparseMisoSceneRuleSet();
|
||||
|
||||
// configure our top-level path prefix
|
||||
if (StringUtil.blank(prefix)) {
|
||||
if (StringUtil.isBlank(prefix)) {
|
||||
_prefix = set.getOuterElement();
|
||||
} else {
|
||||
_prefix = prefix + "/" + set.getOuterElement();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SparseMisoSceneWriter.java,v 1.4 2004/08/27 02:20:09 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -102,7 +102,7 @@ public class SparseMisoSceneWriter implements NestableWriter
|
||||
attrs.addAttribute("", "x", "", "", String.valueOf(info.x));
|
||||
attrs.addAttribute("", "y", "", "", String.valueOf(info.y));
|
||||
|
||||
if (!StringUtil.blank(info.action)) {
|
||||
if (!StringUtil.isBlank(info.action)) {
|
||||
attrs.addAttribute("", "action", "", "", info.action);
|
||||
}
|
||||
if (info.priority != 0) {
|
||||
|
||||
Reference in New Issue
Block a user