本文整理了Java中org.apache.directory.api.util.Strings.lowerCase()
方法的一些代码示例,展示了Strings.lowerCase()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Strings.lowerCase()
方法的具体详情如下:
包路径:org.apache.directory.api.util.Strings
类名称:Strings
方法名:lowerCase
[英]Converts a String to lower case as per String#toLowerCase().
A null
input String returns null
.
StringUtils.lowerCase(null) = null
StringUtils.lowerCase("") = ""
StringUtils.lowerCase("aBc") = "abc"
[中]根据字符串#toLowerCase()将字符串转换为小写。null
输入字符串返回null
。
StringUtils.lowerCase(null) = null
StringUtils.lowerCase("") = ""
StringUtils.lowerCase("aBc") = "abc"
代码示例来源:origin: org.apache.directory.api/api-all
/**
* Utility method to get the file for a schema directory.
*
* @param schema the schema to get the file for
* @return the file for the specific schema directory
*/
private File getSchemaDirectory( Schema schema )
{
return new File( new File( baseDirectory, SchemaConstants.OU_SCHEMA ), "cn="
+ Strings.lowerCase( schema.getSchemaName() ) );
}
代码示例来源:origin: org.apache.directory.api/api-all
/**
* Utility method to get a regex.Pattern fragment for the path for a schema directory.
*
* @param schema the schema to get the path for
* @return the regex.Pattern fragment for the path for the specified schema directory
*/
private String getSchemaDirectoryString( Schema schema )
{
return "schema" + "/" + "ou=schema" + "/"
+ "cn=" + Strings.lowerCase( schema.getSchemaName() ) + "/";
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-all
/**
* Utility method to get the file for a schema directory.
*
* @param schema the schema to get the file for
* @return the file for the specific schema directory
*/
private File getSchemaDirectory( Schema schema )
{
return new File( new File( baseDirectory, SchemaConstants.OU_SCHEMA ), "cn="
+ Strings.lowerCase( schema.getSchemaName() ) );
}
代码示例来源:origin: org.apache.directory.api/api-ldap-schema-data
/**
* Utility method to get a regex.Pattern fragment for the path for a schema directory.
*
* @param schema the schema to get the path for
* @return the regex.Pattern fragment for the path for the specified schema directory
*/
private String getSchemaDirectoryString( Schema schema )
{
return "schema" + "/" + "ou=schema" + "/"
+ "cn=" + Strings.lowerCase( schema.getSchemaName() ) + "/";
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-all
/**
* Utility method to get a regex.Pattern fragment for the path for a schema directory.
*
* @param schema the schema to get the path for
* @return the regex.Pattern fragment for the path for the specified schema directory
*/
private String getSchemaDirectoryString( Schema schema )
{
return "schema" + "/" + "ou=schema" + "/"
+ "cn=" + Strings.lowerCase( schema.getSchemaName() ) + "/";
}
代码示例来源:origin: org.apache.directory.api/api-ldap-schema-data
/**
* Utility method to get the file for a schema directory.
*
* @param schema the schema to get the file for
* @return the file for the specific schema directory
*/
private File getSchemaDirectory( Schema schema )
{
return new File( new File( baseDirectory, SchemaConstants.OU_SCHEMA ), "cn="
+ Strings.lowerCase( schema.getSchemaName() ) );
}
代码示例来源:origin: org.apache.directory.api/api-all
/**
* Processes the task required in the grammar to the given tag type
*
* @param container the DSML container
* @param tagType the tag type
* @throws XmlPullParserException when an error occurs during the parsing
*/
private static void processTag( Dsmlv2Container container, int tagType ) throws XmlPullParserException
{
XmlPullParser xpp = container.getParser();
String tagName = Strings.lowerCase( xpp.getName() );
GrammarTransition transition = container.getTransition( container.getState(), new Tag( tagName, tagType ) );
if ( transition != null )
{
container.setState( transition.getNextState() );
if ( transition.hasAction() )
{
transition.getAction().action( container );
}
}
else
{
throw new XmlPullParserException( I18n.err( I18n.ERR_03036_MISSING_TAG, new Tag( tagName, tagType ) ), xpp, null );
}
}
代码示例来源:origin: org.apache.directory.api/api-all
/**
* Processes the task required in the grammar to the given tag type
*
* @param container the DSML container
* @param tagType the tag type
* @throws XmlPullParserException when an error occurs during the parsing
*/
private static void processTag( Dsmlv2Container container, int tagType ) throws XmlPullParserException
{
XmlPullParser xpp = container.getParser();
String tagName = Strings.lowerCase( xpp.getName() );
GrammarTransition transition = container.getTransition( container.getState(), new Tag( tagName, tagType ) );
if ( transition != null )
{
container.setState( transition.getNextState() );
if ( transition.hasAction() )
{
transition.getAction().action( container );
}
}
else
{
throw new XmlPullParserException( I18n.err( I18n.ERR_03036_MISSING_TAG, new Tag( tagName, tagType ) ), xpp, null );
}
}
内容来源于网络,如有侵权,请联系作者删除!