id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
56,100
ModeShape/modeshape
deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/BinaryStorage.java
BinaryStorage.defaultConfig
static BinaryStorage defaultConfig() { // By default binaries are not stored on disk EditableDocument binaries = Schematic.newDocument(); binaries.set(RepositoryConfiguration.FieldName.TYPE, RepositoryConfiguration.FieldValue.BINARY_STORAGE_TYPE_TRANSIENT); return new BinaryStorage(binar...
java
static BinaryStorage defaultConfig() { // By default binaries are not stored on disk EditableDocument binaries = Schematic.newDocument(); binaries.set(RepositoryConfiguration.FieldName.TYPE, RepositoryConfiguration.FieldValue.BINARY_STORAGE_TYPE_TRANSIENT); return new BinaryStorage(binar...
[ "static", "BinaryStorage", "defaultConfig", "(", ")", "{", "// By default binaries are not stored on disk", "EditableDocument", "binaries", "=", "Schematic", ".", "newDocument", "(", ")", ";", "binaries", ".", "set", "(", "RepositoryConfiguration", ".", "FieldName", "."...
Creates a default storage configuration, which will be used whenever no specific binary store is configured. @return a {@link org.modeshape.jboss.service.BinaryStorage} instance, never {@code null}
[ "Creates", "a", "default", "storage", "configuration", "which", "will", "be", "used", "whenever", "no", "specific", "binary", "store", "is", "configured", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/BinaryStorage.java#L41-L46
56,101
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/i18n/I18n.java
I18n.localize
private static void localize( final Class<?> i18nClass, final Locale locale ) { assert i18nClass != null; assert locale != null; // Create a class-to-problem map for this locale if one doesn't exist, else get the existing one. Map<Class<?>, Set<String>> ...
java
private static void localize( final Class<?> i18nClass, final Locale locale ) { assert i18nClass != null; assert locale != null; // Create a class-to-problem map for this locale if one doesn't exist, else get the existing one. Map<Class<?>, Set<String>> ...
[ "private", "static", "void", "localize", "(", "final", "Class", "<", "?", ">", "i18nClass", ",", "final", "Locale", "locale", ")", "{", "assert", "i18nClass", "!=", "null", ";", "assert", "locale", "!=", "null", ";", "// Create a class-to-problem map for this lo...
Synchronized on the supplied internalization class. @param i18nClass The internalization class being localized @param locale The locale to which the supplied internationalization class should be localized.
[ "Synchronized", "on", "the", "supplied", "internalization", "class", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/i18n/I18n.java#L184-L261
56,102
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/i18n/I18n.java
I18n.text
@Override public String text( Locale locale, Object... arguments ) { try { String rawText = rawText(locale == null ? Locale.getDefault() : locale); return StringUtil.createString(rawText, arguments); } catch (IllegalArgumentException err) { ...
java
@Override public String text( Locale locale, Object... arguments ) { try { String rawText = rawText(locale == null ? Locale.getDefault() : locale); return StringUtil.createString(rawText, arguments); } catch (IllegalArgumentException err) { ...
[ "@", "Override", "public", "String", "text", "(", "Locale", "locale", ",", "Object", "...", "arguments", ")", "{", "try", "{", "String", "rawText", "=", "rawText", "(", "locale", "==", "null", "?", "Locale", ".", "getDefault", "(", ")", ":", "locale", ...
Get the localized text for the supplied locale, replacing the parameters in the text with those supplied. @param locale the locale, or <code>null</code> if the {@link Locale#getDefault() current (default) locale} should be used @param arguments the arguments for the parameter replacement; may be <code>null</code> or e...
[ "Get", "the", "localized", "text", "for", "the", "supplied", "locale", "replacing", "the", "parameters", "in", "the", "text", "with", "those", "supplied", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/i18n/I18n.java#L407-L420
56,103
ModeShape/modeshape
web/modeshape-webdav/src/main/java/org/modeshape/webdav/methods/AbstractMethod.java
AbstractMethod.getDocumentBuilder
protected DocumentBuilder getDocumentBuilder() throws ServletException { DocumentBuilder documentBuilder = null; DocumentBuilderFactory documentBuilderFactory = null; try { documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceA...
java
protected DocumentBuilder getDocumentBuilder() throws ServletException { DocumentBuilder documentBuilder = null; DocumentBuilderFactory documentBuilderFactory = null; try { documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceA...
[ "protected", "DocumentBuilder", "getDocumentBuilder", "(", ")", "throws", "ServletException", "{", "DocumentBuilder", "documentBuilder", "=", "null", ";", "DocumentBuilderFactory", "documentBuilderFactory", "=", "null", ";", "try", "{", "documentBuilderFactory", "=", "Doc...
Return JAXP document builder instance. @return the builder @throws ServletException
[ "Return", "JAXP", "document", "builder", "instance", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-webdav/src/main/java/org/modeshape/webdav/methods/AbstractMethod.java#L191-L202
56,104
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/spi/index/provider/IndexUsage.java
IndexUsage.indexAppliesTo
public boolean indexAppliesTo( JoinCondition condition ) { if (condition instanceof ChildNodeJoinCondition) { return indexAppliesTo((ChildNodeJoinCondition)condition); } if (condition instanceof DescendantNodeJoinCondition) { return indexAppliesTo((DescendantNodeJoinCondi...
java
public boolean indexAppliesTo( JoinCondition condition ) { if (condition instanceof ChildNodeJoinCondition) { return indexAppliesTo((ChildNodeJoinCondition)condition); } if (condition instanceof DescendantNodeJoinCondition) { return indexAppliesTo((DescendantNodeJoinCondi...
[ "public", "boolean", "indexAppliesTo", "(", "JoinCondition", "condition", ")", "{", "if", "(", "condition", "instanceof", "ChildNodeJoinCondition", ")", "{", "return", "indexAppliesTo", "(", "(", "ChildNodeJoinCondition", ")", "condition", ")", ";", "}", "if", "("...
Determine if this index can be used to evaluate the given join condition. @param condition the condition; may not be null @return true if it can be used to evaluate the join condition, or false otherwise
[ "Determine", "if", "this", "index", "can", "be", "used", "to", "evaluate", "the", "given", "join", "condition", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/spi/index/provider/IndexUsage.java#L87-L101
56,105
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/spi/index/provider/IndexUsage.java
IndexUsage.indexAppliesTo
public boolean indexAppliesTo( Constraint constraint ) { if (constraint instanceof Comparison) { return indexAppliesTo((Comparison)constraint); } if (constraint instanceof And) { return indexAppliesTo((And)constraint); } if (constraint instanceof Or) { ...
java
public boolean indexAppliesTo( Constraint constraint ) { if (constraint instanceof Comparison) { return indexAppliesTo((Comparison)constraint); } if (constraint instanceof And) { return indexAppliesTo((And)constraint); } if (constraint instanceof Or) { ...
[ "public", "boolean", "indexAppliesTo", "(", "Constraint", "constraint", ")", "{", "if", "(", "constraint", "instanceof", "Comparison", ")", "{", "return", "indexAppliesTo", "(", "(", "Comparison", ")", "constraint", ")", ";", "}", "if", "(", "constraint", "ins...
Determine if this index can be used to evaluate the given constraint. @param constraint the constraint; may not be null @return true if it can be used to evaluate the constraint, or false otherwise
[ "Determine", "if", "this", "index", "can", "be", "used", "to", "evaluate", "the", "given", "constraint", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/spi/index/provider/IndexUsage.java#L133-L162
56,106
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/PrivilegeImpl.java
PrivilegeImpl.aggregate
private void aggregate(ArrayList<Privilege> list, Privilege p) { list.add(p); if (p.isAggregate()) { for (Privilege ap : p.getDeclaredAggregatePrivileges()) { aggregate(list, ap); } } }
java
private void aggregate(ArrayList<Privilege> list, Privilege p) { list.add(p); if (p.isAggregate()) { for (Privilege ap : p.getDeclaredAggregatePrivileges()) { aggregate(list, ap); } } }
[ "private", "void", "aggregate", "(", "ArrayList", "<", "Privilege", ">", "list", ",", "Privilege", "p", ")", "{", "list", ".", "add", "(", "p", ")", ";", "if", "(", "p", ".", "isAggregate", "(", ")", ")", "{", "for", "(", "Privilege", "ap", ":", ...
Recursively aggregates privileges for the given privilege. @param list list which holds all aggregate privileges. @param p the given privilege
[ "Recursively", "aggregates", "privileges", "for", "the", "given", "privilege", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/PrivilegeImpl.java#L125-L132
56,107
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/PrivilegeImpl.java
PrivilegeImpl.contains
public boolean contains(Privilege p) { if (p.getName().equalsIgnoreCase(this.getName())) { return true; } Privilege[] list = getAggregatePrivileges(); for (Privilege privilege : list) { if (privilege.getName().equalsIgnoreCase(p.getName())) { ...
java
public boolean contains(Privilege p) { if (p.getName().equalsIgnoreCase(this.getName())) { return true; } Privilege[] list = getAggregatePrivileges(); for (Privilege privilege : list) { if (privilege.getName().equalsIgnoreCase(p.getName())) { ...
[ "public", "boolean", "contains", "(", "Privilege", "p", ")", "{", "if", "(", "p", ".", "getName", "(", ")", ".", "equalsIgnoreCase", "(", "this", ".", "getName", "(", ")", ")", ")", "{", "return", "true", ";", "}", "Privilege", "[", "]", "list", "=...
Tests given privilege. @param p the given privilege. @return true if this privilege equals or aggregates given privilege.
[ "Tests", "given", "privilege", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/PrivilegeImpl.java#L141-L154
56,108
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/JcrSession.java
JcrSession.save
void save( AbstractJcrNode node ) throws RepositoryException { // first check the node is valid from a cache perspective Set<NodeKey> keysToBeSaved = null; try { if (node.isNew()) { // expected by TCK throw new RepositoryException(JcrI18n.unableToSaveN...
java
void save( AbstractJcrNode node ) throws RepositoryException { // first check the node is valid from a cache perspective Set<NodeKey> keysToBeSaved = null; try { if (node.isNew()) { // expected by TCK throw new RepositoryException(JcrI18n.unableToSaveN...
[ "void", "save", "(", "AbstractJcrNode", "node", ")", "throws", "RepositoryException", "{", "// first check the node is valid from a cache perspective", "Set", "<", "NodeKey", ">", "keysToBeSaved", "=", "null", ";", "try", "{", "if", "(", "node", ".", "isNew", "(", ...
Save a subset of the changes made within this session. @param node the node at or below which the changes are to be saved; may not be null @throws RepositoryException if there is a problem saving the changes @see AbstractJcrNode#save()
[ "Save", "a", "subset", "of", "the", "changes", "made", "within", "this", "session", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/JcrSession.java#L1231-L1293
56,109
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/JcrSession.java
JcrSession.hasRole
static boolean hasRole( SecurityContext context, String roleName, String repositoryName, String workspaceName ) { if (context.hasRole(roleName)) return true; roleName = roleName + "." + repositoryName; if (contex...
java
static boolean hasRole( SecurityContext context, String roleName, String repositoryName, String workspaceName ) { if (context.hasRole(roleName)) return true; roleName = roleName + "." + repositoryName; if (contex...
[ "static", "boolean", "hasRole", "(", "SecurityContext", "context", ",", "String", "roleName", ",", "String", "repositoryName", ",", "String", "workspaceName", ")", "{", "if", "(", "context", ".", "hasRole", "(", "roleName", ")", ")", "return", "true", ";", "...
Returns whether the authenticated user has the given role. @param context the security context @param roleName the name of the role to check @param repositoryName the name of the repository @param workspaceName the workspace under which the user must have the role. This may be different from the current workspace. @re...
[ "Returns", "whether", "the", "authenticated", "user", "has", "the", "given", "role", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/JcrSession.java#L1503-L1512
56,110
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/JcrSession.java
JcrSession.isForeignKey
public static boolean isForeignKey( NodeKey key, NodeKey rootKey ) { if (key == null) { return false; } String nodeWorkspaceKey = key.getWorkspaceKey(); boolean sameWorkspace = rootKey.getWorkspaceKey().equals(nodeWorkspaceKey); ...
java
public static boolean isForeignKey( NodeKey key, NodeKey rootKey ) { if (key == null) { return false; } String nodeWorkspaceKey = key.getWorkspaceKey(); boolean sameWorkspace = rootKey.getWorkspaceKey().equals(nodeWorkspaceKey); ...
[ "public", "static", "boolean", "isForeignKey", "(", "NodeKey", "key", ",", "NodeKey", "rootKey", ")", "{", "if", "(", "key", "==", "null", ")", "{", "return", "false", ";", "}", "String", "nodeWorkspaceKey", "=", "key", ".", "getWorkspaceKey", "(", ")", ...
Checks if the node given key is foreign by comparing the source key & workspace key against the same keys from this session's root. This method is used for reference resolving. @param key the node key; may be null @param rootKey the key of the root node in the workspace; may not be null @return true if the node key is...
[ "Checks", "if", "the", "node", "given", "key", "is", "foreign", "by", "comparing", "the", "source", "key", "&", "workspace", "key", "against", "the", "same", "keys", "from", "this", "session", "s", "root", ".", "This", "method", "is", "used", "for", "ref...
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/JcrSession.java#L1982-L1992
56,111
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/JcrSession.java
JcrSession.nodeIdentifier
public static String nodeIdentifier( NodeKey key, NodeKey rootKey ) { return isForeignKey(key, rootKey) ? key.toString() : key.getIdentifier(); }
java
public static String nodeIdentifier( NodeKey key, NodeKey rootKey ) { return isForeignKey(key, rootKey) ? key.toString() : key.getIdentifier(); }
[ "public", "static", "String", "nodeIdentifier", "(", "NodeKey", "key", ",", "NodeKey", "rootKey", ")", "{", "return", "isForeignKey", "(", "key", ",", "rootKey", ")", "?", "key", ".", "toString", "(", ")", ":", "key", ".", "getIdentifier", "(", ")", ";",...
Returns a string representing a node's identifier, based on whether the node is foreign or not. @param key the node key; may be null @param rootKey the key of the root node in the workspace; may not be null @return the identifier for the node; never null @see javax.jcr.Node#getIdentifier()
[ "Returns", "a", "string", "representing", "a", "node", "s", "identifier", "based", "on", "whether", "the", "node", "is", "foreign", "or", "not", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/JcrSession.java#L2002-L2005
56,112
ModeShape/modeshape
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/DdlTokenStream.java
DdlTokenStream.computeNextStatementStartKeywordCount
public int computeNextStatementStartKeywordCount() { int result = 0; if (isNextKeyWord()) { for (String[] nextStmtStart : registeredStatementStartPhrases) { if (this.matches(nextStmtStart)) { return nextStmtStart.length; } } ...
java
public int computeNextStatementStartKeywordCount() { int result = 0; if (isNextKeyWord()) { for (String[] nextStmtStart : registeredStatementStartPhrases) { if (this.matches(nextStmtStart)) { return nextStmtStart.length; } } ...
[ "public", "int", "computeNextStatementStartKeywordCount", "(", ")", "{", "int", "result", "=", "0", ";", "if", "(", "isNextKeyWord", "(", ")", ")", "{", "for", "(", "String", "[", "]", "nextStmtStart", ":", "registeredStatementStartPhrases", ")", "{", "if", ...
Method to determine if next tokens match a registered statement start phrase. @return number of keywords in matched registered statement start phrase or zero if not matched
[ "Method", "to", "determine", "if", "next", "tokens", "match", "a", "registered", "statement", "start", "phrase", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/DdlTokenStream.java#L189-L201
56,113
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parse
protected void parse( String content ) { Tokenizer tokenizer = new CndTokenizer(false, true); TokenStream tokens = new TokenStream(content, tokenizer, false); tokens.start(); while (tokens.hasNext()) { // Keep reading while we can recognize one of the two types of statements ...
java
protected void parse( String content ) { Tokenizer tokenizer = new CndTokenizer(false, true); TokenStream tokens = new TokenStream(content, tokenizer, false); tokens.start(); while (tokens.hasNext()) { // Keep reading while we can recognize one of the two types of statements ...
[ "protected", "void", "parse", "(", "String", "content", ")", "{", "Tokenizer", "tokenizer", "=", "new", "CndTokenizer", "(", "false", ",", "true", ")", ";", "TokenStream", "tokens", "=", "new", "TokenStream", "(", "content", ",", "tokenizer", ",", "false", ...
Parse the CND content. @param content the content @throws ParsingException if there is a problem parsing the content
[ "Parse", "the", "CND", "content", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L196-L213
56,114
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseNamespaceMapping
protected void parseNamespaceMapping( TokenStream tokens ) { tokens.consume('<'); String prefix = removeQuotes(tokens.consume()); tokens.consume('='); String uri = removeQuotes(tokens.consume()); tokens.consume('>'); // Register the namespace ... context.getNamesp...
java
protected void parseNamespaceMapping( TokenStream tokens ) { tokens.consume('<'); String prefix = removeQuotes(tokens.consume()); tokens.consume('='); String uri = removeQuotes(tokens.consume()); tokens.consume('>'); // Register the namespace ... context.getNamesp...
[ "protected", "void", "parseNamespaceMapping", "(", "TokenStream", "tokens", ")", "{", "tokens", ".", "consume", "(", "'", "'", ")", ";", "String", "prefix", "=", "removeQuotes", "(", "tokens", ".", "consume", "(", ")", ")", ";", "tokens", ".", "consume", ...
Parse the namespace mapping statement that is next on the token stream. @param tokens the tokens containing the namespace statement; never null @throws ParsingException if there is a problem parsing the content
[ "Parse", "the", "namespace", "mapping", "statement", "that", "is", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L221-L229
56,115
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseNodeTypeDefinition
protected void parseNodeTypeDefinition( TokenStream tokens ) { // Parse the name, and create the path and a property for the name ... Name name = parseNodeTypeName(tokens); JcrNodeTypeTemplate nodeType = new JcrNodeTypeTemplate(context); try { nodeType.setName(string(name)); ...
java
protected void parseNodeTypeDefinition( TokenStream tokens ) { // Parse the name, and create the path and a property for the name ... Name name = parseNodeTypeName(tokens); JcrNodeTypeTemplate nodeType = new JcrNodeTypeTemplate(context); try { nodeType.setName(string(name)); ...
[ "protected", "void", "parseNodeTypeDefinition", "(", "TokenStream", "tokens", ")", "{", "// Parse the name, and create the path and a property for the name ...", "Name", "name", "=", "parseNodeTypeName", "(", "tokens", ")", ";", "JcrNodeTypeTemplate", "nodeType", "=", "new", ...
Parse the node type definition that is next on the token stream. @param tokens the tokens containing the node type definition; never null @throws ParsingException if there is a problem parsing the content
[ "Parse", "the", "node", "type", "definition", "that", "is", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L237-L262
56,116
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseNodeTypeName
protected Name parseNodeTypeName( TokenStream tokens ) { tokens.consume('['); Name name = parseName(tokens); tokens.consume(']'); return name; }
java
protected Name parseNodeTypeName( TokenStream tokens ) { tokens.consume('['); Name name = parseName(tokens); tokens.consume(']'); return name; }
[ "protected", "Name", "parseNodeTypeName", "(", "TokenStream", "tokens", ")", "{", "tokens", ".", "consume", "(", "'", "'", ")", ";", "Name", "name", "=", "parseName", "(", "tokens", ")", ";", "tokens", ".", "consume", "(", "'", "'", ")", ";", "return",...
Parse a node type name that appears next on the token stream. @param tokens the tokens containing the node type name; never null @return the node type name @throws ParsingException if there is a problem parsing the content
[ "Parse", "a", "node", "type", "name", "that", "appears", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L271-L276
56,117
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseSupertypes
protected List<Name> parseSupertypes( TokenStream tokens ) { if (tokens.canConsume('>')) { // There is at least one supertype ... return parseNameList(tokens); } return Collections.emptyList(); }
java
protected List<Name> parseSupertypes( TokenStream tokens ) { if (tokens.canConsume('>')) { // There is at least one supertype ... return parseNameList(tokens); } return Collections.emptyList(); }
[ "protected", "List", "<", "Name", ">", "parseSupertypes", "(", "TokenStream", "tokens", ")", "{", "if", "(", "tokens", ".", "canConsume", "(", "'", "'", ")", ")", "{", "// There is at least one supertype ...", "return", "parseNameList", "(", "tokens", ")", ";"...
Parse an optional list of supertypes if they appear next on the token stream. @param tokens the tokens containing the supertype names; never null @return the list of supertype names; never null, but possibly empty @throws ParsingException if there is a problem parsing the content
[ "Parse", "an", "optional", "list", "of", "supertypes", "if", "they", "appear", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L285-L291
56,118
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseStringList
protected List<String> parseStringList( TokenStream tokens ) { List<String> strings = new ArrayList<String>(); if (tokens.canConsume('?')) { // This list is variant ... strings.add("?"); } else { // Read names until we see a ',' do { ...
java
protected List<String> parseStringList( TokenStream tokens ) { List<String> strings = new ArrayList<String>(); if (tokens.canConsume('?')) { // This list is variant ... strings.add("?"); } else { // Read names until we see a ',' do { ...
[ "protected", "List", "<", "String", ">", "parseStringList", "(", "TokenStream", "tokens", ")", "{", "List", "<", "String", ">", "strings", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "if", "(", "tokens", ".", "canConsume", "(", "'", "'"...
Parse a list of strings, separated by commas. Any quotes surrounding the strings are removed. @param tokens the tokens containing the comma-separated strings; never null @return the list of string values; never null, but possibly empty @throws ParsingException if there is a problem parsing the content
[ "Parse", "a", "list", "of", "strings", "separated", "by", "commas", ".", "Any", "quotes", "surrounding", "the", "strings", "are", "removed", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L300-L312
56,119
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseNameList
protected List<Name> parseNameList( TokenStream tokens ) { List<Name> names = new ArrayList<Name>(); if (!tokens.canConsume('?')) { // Read names until we see a ',' do { names.add(parseName(tokens)); } while (tokens.canConsume(',')); } ...
java
protected List<Name> parseNameList( TokenStream tokens ) { List<Name> names = new ArrayList<Name>(); if (!tokens.canConsume('?')) { // Read names until we see a ',' do { names.add(parseName(tokens)); } while (tokens.canConsume(',')); } ...
[ "protected", "List", "<", "Name", ">", "parseNameList", "(", "TokenStream", "tokens", ")", "{", "List", "<", "Name", ">", "names", "=", "new", "ArrayList", "<", "Name", ">", "(", ")", ";", "if", "(", "!", "tokens", ".", "canConsume", "(", "'", "'", ...
Parse a list of names, separated by commas. Any quotes surrounding the names are removed. @param tokens the tokens containing the comma-separated strings; never null @return the list of string values; never null, but possibly empty @throws ParsingException if there is a problem parsing the content
[ "Parse", "a", "list", "of", "names", "separated", "by", "commas", ".", "Any", "quotes", "surrounding", "the", "names", "are", "removed", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L321-L330
56,120
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parsePropertyOrChildNodeDefinitions
protected void parsePropertyOrChildNodeDefinitions( TokenStream tokens, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { while (true) { // Keep reading while we see a property definition or child node definition ... ...
java
protected void parsePropertyOrChildNodeDefinitions( TokenStream tokens, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { while (true) { // Keep reading while we see a property definition or child node definition ... ...
[ "protected", "void", "parsePropertyOrChildNodeDefinitions", "(", "TokenStream", "tokens", ",", "JcrNodeTypeTemplate", "nodeType", ")", "throws", "ConstraintViolationException", "{", "while", "(", "true", ")", "{", "// Keep reading while we see a property definition or child node ...
Parse a node type's property or child node definitions that appear next on the token stream. @param tokens the tokens containing the definitions; never null @param nodeType the node type being created; never null @throws ParsingException if there is a problem parsing the content @throws ConstraintViolationException no...
[ "Parse", "a", "node", "type", "s", "property", "or", "child", "node", "definitions", "that", "appear", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L396-L409
56,121
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parsePropertyDefinition
protected void parsePropertyDefinition( TokenStream tokens, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { tokens.consume('-'); Name name = parseName(tokens); JcrPropertyDefinitionTemplate propDefn = new JcrPropertyDefinitionTempl...
java
protected void parsePropertyDefinition( TokenStream tokens, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { tokens.consume('-'); Name name = parseName(tokens); JcrPropertyDefinitionTemplate propDefn = new JcrPropertyDefinitionTempl...
[ "protected", "void", "parsePropertyDefinition", "(", "TokenStream", "tokens", ",", "JcrNodeTypeTemplate", "nodeType", ")", "throws", "ConstraintViolationException", "{", "tokens", ".", "consume", "(", "'", "'", ")", ";", "Name", "name", "=", "parseName", "(", "tok...
Parse a node type's property definition from the next tokens on the stream. @param tokens the tokens containing the definition; never null @param nodeType the node type definition; never null @throws ParsingException if there is a problem parsing the content @throws ConstraintViolationException not expected
[ "Parse", "a", "node", "type", "s", "property", "definition", "from", "the", "next", "tokens", "on", "the", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L419-L444
56,122
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parsePropertyType
protected void parsePropertyType( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn, String defaultPropertyType ) { if (tokens.canConsume('(')) { // Parse the (optional) property type ... String property...
java
protected void parsePropertyType( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn, String defaultPropertyType ) { if (tokens.canConsume('(')) { // Parse the (optional) property type ... String property...
[ "protected", "void", "parsePropertyType", "(", "TokenStream", "tokens", ",", "JcrPropertyDefinitionTemplate", "propDefn", ",", "String", "defaultPropertyType", ")", "{", "if", "(", "tokens", ".", "canConsume", "(", "'", "'", ")", ")", "{", "// Parse the (optional) p...
Parse the property type, if a valid one appears next on the token stream. @param tokens the tokens containing the definition; never null @param propDefn the property definition; never null @param defaultPropertyType the default property type if none is actually found @throws ParsingException if there is a problem pars...
[ "Parse", "the", "property", "type", "if", "a", "valid", "one", "appears", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L454-L469
56,123
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseDefaultValues
protected void parseDefaultValues( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn ) { if (tokens.canConsume('=')) { List<String> defaultValues = parseStringList(tokens); if (!defaultValues.isEmpty()) { propDefn.setDefault...
java
protected void parseDefaultValues( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn ) { if (tokens.canConsume('=')) { List<String> defaultValues = parseStringList(tokens); if (!defaultValues.isEmpty()) { propDefn.setDefault...
[ "protected", "void", "parseDefaultValues", "(", "TokenStream", "tokens", ",", "JcrPropertyDefinitionTemplate", "propDefn", ")", "{", "if", "(", "tokens", ".", "canConsume", "(", "'", "'", ")", ")", "{", "List", "<", "String", ">", "defaultValues", "=", "parseS...
Parse the property definition's default value, if they appear next on the token stream. @param tokens the tokens containing the definition; never null @param propDefn the property definition; never null @throws ParsingException if there is a problem parsing the content
[ "Parse", "the", "property", "definition", "s", "default", "value", "if", "they", "appear", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L478-L486
56,124
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseValueConstraints
protected void parseValueConstraints( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn ) { if (tokens.canConsume('<')) { List<String> defaultValues = parseStringList(tokens); if (!defaultValues.isEmpty()) { propDefn.setV...
java
protected void parseValueConstraints( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn ) { if (tokens.canConsume('<')) { List<String> defaultValues = parseStringList(tokens); if (!defaultValues.isEmpty()) { propDefn.setV...
[ "protected", "void", "parseValueConstraints", "(", "TokenStream", "tokens", ",", "JcrPropertyDefinitionTemplate", "propDefn", ")", "{", "if", "(", "tokens", ".", "canConsume", "(", "'", "'", ")", ")", "{", "List", "<", "String", ">", "defaultValues", "=", "par...
Parse the property definition's value constraints, if they appear next on the token stream. @param tokens the tokens containing the definition; never null @param propDefn the property definition; never null @throws ParsingException if there is a problem parsing the content
[ "Parse", "the", "property", "definition", "s", "value", "constraints", "if", "they", "appear", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L495-L503
56,125
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parsePropertyAttributes
protected void parsePropertyAttributes( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { boolean autoCreated = false; boolean mandatory ...
java
protected void parsePropertyAttributes( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { boolean autoCreated = false; boolean mandatory ...
[ "protected", "void", "parsePropertyAttributes", "(", "TokenStream", "tokens", ",", "JcrPropertyDefinitionTemplate", "propDefn", ",", "JcrNodeTypeTemplate", "nodeType", ")", "throws", "ConstraintViolationException", "{", "boolean", "autoCreated", "=", "false", ";", "boolean"...
Parse the property definition's attributes, if they appear next on the token stream. @param tokens the tokens containing the attributes; never null @param propDefn the property definition; never null @param nodeType the node type; never null @throws ParsingException if there is a problem parsing the content @throws Co...
[ "Parse", "the", "property", "definition", "s", "attributes", "if", "they", "appear", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L514-L573
56,126
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseQueryOperators
protected void parseQueryOperators( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn ) { if (tokens.canConsume('?')) { return; } // The query operators are expected to be enclosed in a single quote, so therefore will be a single token...
java
protected void parseQueryOperators( TokenStream tokens, JcrPropertyDefinitionTemplate propDefn ) { if (tokens.canConsume('?')) { return; } // The query operators are expected to be enclosed in a single quote, so therefore will be a single token...
[ "protected", "void", "parseQueryOperators", "(", "TokenStream", "tokens", ",", "JcrPropertyDefinitionTemplate", "propDefn", ")", "{", "if", "(", "tokens", ".", "canConsume", "(", "'", "'", ")", ")", "{", "return", ";", "}", "// The query operators are expected to be...
Parse the property definition's query operators, if they appear next on the token stream. @param tokens the tokens containing the definition; never null @param propDefn the property definition; never null @throws ParsingException if there is a problem parsing the content
[ "Parse", "the", "property", "definition", "s", "query", "operators", "if", "they", "appear", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L582-L602
56,127
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseChildNodeDefinition
protected void parseChildNodeDefinition( TokenStream tokens, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { tokens.consume('+'); Name name = parseName(tokens); JcrNodeDefinitionTemplate childDefn = new JcrNodeDefinitionTemplate(...
java
protected void parseChildNodeDefinition( TokenStream tokens, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { tokens.consume('+'); Name name = parseName(tokens); JcrNodeDefinitionTemplate childDefn = new JcrNodeDefinitionTemplate(...
[ "protected", "void", "parseChildNodeDefinition", "(", "TokenStream", "tokens", ",", "JcrNodeTypeTemplate", "nodeType", ")", "throws", "ConstraintViolationException", "{", "tokens", ".", "consume", "(", "'", "'", ")", ";", "Name", "name", "=", "parseName", "(", "to...
Parse a node type's child node definition from the next tokens on the stream. @param tokens the tokens containing the definition; never null @param nodeType the node type being created; never null @throws ParsingException if there is a problem parsing the content @throws ConstraintViolationException not expected
[ "Parse", "a", "node", "type", "s", "child", "node", "definition", "from", "the", "next", "tokens", "on", "the", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L612-L626
56,128
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseRequiredPrimaryTypes
protected void parseRequiredPrimaryTypes( TokenStream tokens, JcrNodeDefinitionTemplate childDefn ) throws ConstraintViolationException { if (tokens.canConsume('(')) { List<Name> requiredTypes = parseNameList(tokens); if (requiredTypes.isEmpt...
java
protected void parseRequiredPrimaryTypes( TokenStream tokens, JcrNodeDefinitionTemplate childDefn ) throws ConstraintViolationException { if (tokens.canConsume('(')) { List<Name> requiredTypes = parseNameList(tokens); if (requiredTypes.isEmpt...
[ "protected", "void", "parseRequiredPrimaryTypes", "(", "TokenStream", "tokens", ",", "JcrNodeDefinitionTemplate", "childDefn", ")", "throws", "ConstraintViolationException", "{", "if", "(", "tokens", ".", "canConsume", "(", "'", "'", ")", ")", "{", "List", "<", "N...
Parse the child node definition's list of required primary types, if they appear next on the token stream. @param tokens the tokens containing the definition; never null @param childDefn the child node definition; never null @throws ParsingException if there is a problem parsing the content @throws ConstraintViolation...
[ "Parse", "the", "child", "node", "definition", "s", "list", "of", "required", "primary", "types", "if", "they", "appear", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L636-L646
56,129
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseDefaultType
protected void parseDefaultType( TokenStream tokens, JcrNodeDefinitionTemplate childDefn ) throws ConstraintViolationException { if (tokens.canConsume('=')) { if (!tokens.canConsume('?')) { Name defaultType = parseName(tokens); chi...
java
protected void parseDefaultType( TokenStream tokens, JcrNodeDefinitionTemplate childDefn ) throws ConstraintViolationException { if (tokens.canConsume('=')) { if (!tokens.canConsume('?')) { Name defaultType = parseName(tokens); chi...
[ "protected", "void", "parseDefaultType", "(", "TokenStream", "tokens", ",", "JcrNodeDefinitionTemplate", "childDefn", ")", "throws", "ConstraintViolationException", "{", "if", "(", "tokens", ".", "canConsume", "(", "'", "'", ")", ")", "{", "if", "(", "!", "token...
Parse the child node definition's default type, if they appear next on the token stream. @param tokens the tokens containing the definition; never null @param childDefn the child node definition; never null @throws ParsingException if there is a problem parsing the content @throws ConstraintViolationException not expe...
[ "Parse", "the", "child", "node", "definition", "s", "default", "type", "if", "they", "appear", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L656-L664
56,130
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseNodeAttributes
protected void parseNodeAttributes( TokenStream tokens, JcrNodeDefinitionTemplate childDefn, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { boolean autoCreated = false; boolean mandatory = false; ...
java
protected void parseNodeAttributes( TokenStream tokens, JcrNodeDefinitionTemplate childDefn, JcrNodeTypeTemplate nodeType ) throws ConstraintViolationException { boolean autoCreated = false; boolean mandatory = false; ...
[ "protected", "void", "parseNodeAttributes", "(", "TokenStream", "tokens", ",", "JcrNodeDefinitionTemplate", "childDefn", ",", "JcrNodeTypeTemplate", "nodeType", ")", "throws", "ConstraintViolationException", "{", "boolean", "autoCreated", "=", "false", ";", "boolean", "ma...
Parse the child node definition's attributes, if they appear next on the token stream. @param tokens the tokens containing the attributes; never null @param childDefn the child node definition; never null @param nodeType the node type being created; never null @throws ParsingException if there is a problem parsing the...
[ "Parse", "the", "child", "node", "definition", "s", "attributes", "if", "they", "appear", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L675-L728
56,131
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseName
protected Name parseName( TokenStream tokens ) { String value = tokens.consume(); try { return nameFactory.create(removeQuotes(value)); } catch (ValueFormatException e) { if (e.getCause() instanceof NamespaceException) { throw (NamespaceException)e.getCaus...
java
protected Name parseName( TokenStream tokens ) { String value = tokens.consume(); try { return nameFactory.create(removeQuotes(value)); } catch (ValueFormatException e) { if (e.getCause() instanceof NamespaceException) { throw (NamespaceException)e.getCaus...
[ "protected", "Name", "parseName", "(", "TokenStream", "tokens", ")", "{", "String", "value", "=", "tokens", ".", "consume", "(", ")", ";", "try", "{", "return", "nameFactory", ".", "create", "(", "removeQuotes", "(", "value", ")", ")", ";", "}", "catch",...
Parse the name that is expected to be next on the token stream. @param tokens the tokens containing the name; never null @return the name; never null @throws ParsingException if there is a problem parsing the content
[ "Parse", "the", "name", "that", "is", "expected", "to", "be", "next", "on", "the", "token", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L737-L747
56,132
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseVendorExtensions
protected final void parseVendorExtensions( TokenStream tokens, List<Property> properties ) { while (tokens.matches(CndTokenizer.VENDOR_EXTENSION)) { Property extension = parseVendorExtension(tokens.consume()); if (extension != null) proper...
java
protected final void parseVendorExtensions( TokenStream tokens, List<Property> properties ) { while (tokens.matches(CndTokenizer.VENDOR_EXTENSION)) { Property extension = parseVendorExtension(tokens.consume()); if (extension != null) proper...
[ "protected", "final", "void", "parseVendorExtensions", "(", "TokenStream", "tokens", ",", "List", "<", "Property", ">", "properties", ")", "{", "while", "(", "tokens", ".", "matches", "(", "CndTokenizer", ".", "VENDOR_EXTENSION", ")", ")", "{", "Property", "ex...
Parse the vendor extensions that may appear next on the tokenzied stream. @param tokens token stream; may not be null @param properties the list of properties to which any vendor extension properties should be added
[ "Parse", "the", "vendor", "extensions", "that", "may", "appear", "next", "on", "the", "tokenzied", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L760-L766
56,133
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseVendorExtension
protected final Property parseVendorExtension( String vendorExtension ) { if (vendorExtension == null) return null; // Remove the curly braces ... String extension = vendorExtension.replaceFirst("^[{]", "").replaceAll("[}]$", ""); if (extension.trim().length() == 0) return null; ...
java
protected final Property parseVendorExtension( String vendorExtension ) { if (vendorExtension == null) return null; // Remove the curly braces ... String extension = vendorExtension.replaceFirst("^[{]", "").replaceAll("[}]$", ""); if (extension.trim().length() == 0) return null; ...
[ "protected", "final", "Property", "parseVendorExtension", "(", "String", "vendorExtension", ")", "{", "if", "(", "vendorExtension", "==", "null", ")", "return", "null", ";", "// Remove the curly braces ...", "String", "extension", "=", "vendorExtension", ".", "replace...
Parse the vendor extension, including the curly braces in the CND content. @param vendorExtension the vendor extension string @return the property representing the vendor extension, or null if the vendor extension is incomplete
[ "Parse", "the", "vendor", "extension", "including", "the", "curly", "braces", "in", "the", "CND", "content", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L774-L780
56,134
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java
CndImporter.parseVendorExtensionContent
protected final Property parseVendorExtensionContent( String vendorExtension ) { Matcher matcher = VENDOR_PATTERN.matcher(vendorExtension); if (!matcher.find()) return null; String vendorName = removeQuotes(matcher.group(1)); String vendorValue = removeQuotes(matcher.group(3)); a...
java
protected final Property parseVendorExtensionContent( String vendorExtension ) { Matcher matcher = VENDOR_PATTERN.matcher(vendorExtension); if (!matcher.find()) return null; String vendorName = removeQuotes(matcher.group(1)); String vendorValue = removeQuotes(matcher.group(3)); a...
[ "protected", "final", "Property", "parseVendorExtensionContent", "(", "String", "vendorExtension", ")", "{", "Matcher", "matcher", "=", "VENDOR_PATTERN", ".", "matcher", "(", "vendorExtension", ")", ";", "if", "(", "!", "matcher", ".", "find", "(", ")", ")", "...
Parse the content of the vendor extension excluding the curly braces in the CND content. @param vendorExtension the vendor extension string; never null @return the property representing the vendor extension, or null if the vendor extension is incomplete
[ "Parse", "the", "content", "of", "the", "vendor", "extension", "excluding", "the", "curly", "braces", "in", "the", "CND", "content", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/CndImporter.java#L788-L798
56,135
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/cache/RepositoryCache.java
RepositoryCache.createWorkspace
public WorkspaceCache createWorkspace( String name ) { if (!workspaceNames.contains(name)) { if (!configuration.isCreatingWorkspacesAllowed()) { throw new UnsupportedOperationException(JcrI18n.creatingWorkspacesIsNotAllowedInRepository.text(getName())); } // O...
java
public WorkspaceCache createWorkspace( String name ) { if (!workspaceNames.contains(name)) { if (!configuration.isCreatingWorkspacesAllowed()) { throw new UnsupportedOperationException(JcrI18n.creatingWorkspacesIsNotAllowedInRepository.text(getName())); } // O...
[ "public", "WorkspaceCache", "createWorkspace", "(", "String", "name", ")", "{", "if", "(", "!", "workspaceNames", ".", "contains", "(", "name", ")", ")", "{", "if", "(", "!", "configuration", ".", "isCreatingWorkspacesAllowed", "(", ")", ")", "{", "throw", ...
Create a new workspace in this repository, if the repository is appropriately configured. If the repository already contains a workspace with the supplied name, then this method simply returns that workspace. Otherwise, this method attempts to create the named workspace and will return a cache for this newly-created wo...
[ "Create", "a", "new", "workspace", "in", "this", "repository", "if", "the", "repository", "is", "appropriately", "configured", ".", "If", "the", "repository", "already", "contains", "a", "workspace", "with", "the", "supplied", "name", "then", "this", "method", ...
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/RepositoryCache.java#L779-L808
56,136
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/cache/RepositoryCache.java
RepositoryCache.createExternalWorkspace
public WorkspaceCache createExternalWorkspace(String name, Connectors connectors) { String[] tokens = name.split(":"); String sourceName = tokens[0]; String workspaceName = tokens[1]; this.workspaceNames.add(workspaceName); refreshRepositoryMetadata(true); ...
java
public WorkspaceCache createExternalWorkspace(String name, Connectors connectors) { String[] tokens = name.split(":"); String sourceName = tokens[0]; String workspaceName = tokens[1]; this.workspaceNames.add(workspaceName); refreshRepositoryMetadata(true); ...
[ "public", "WorkspaceCache", "createExternalWorkspace", "(", "String", "name", ",", "Connectors", "connectors", ")", "{", "String", "[", "]", "tokens", "=", "name", ".", "split", "(", "\":\"", ")", ";", "String", "sourceName", "=", "tokens", "[", "0", "]", ...
Creates a new workspace in the repository coupled with external document store. @param name the name of the repository @param connectors connectors to the external systems. @return workspace cache for the new workspace.
[ "Creates", "a", "new", "workspace", "in", "the", "repository", "coupled", "with", "external", "document", "store", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/RepositoryCache.java#L891-L927
56,137
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/cache/RepositoryCache.java
RepositoryCache.createSession
public SessionCache createSession(ExecutionContext context, String workspaceName, boolean readOnly) { WorkspaceCache workspaceCache = workspace(workspaceName); if (readOnly) { return new ReadOnlySessionCache(context, workspaceCache); } return new Writa...
java
public SessionCache createSession(ExecutionContext context, String workspaceName, boolean readOnly) { WorkspaceCache workspaceCache = workspace(workspaceName); if (readOnly) { return new ReadOnlySessionCache(context, workspaceCache); } return new Writa...
[ "public", "SessionCache", "createSession", "(", "ExecutionContext", "context", ",", "String", "workspaceName", ",", "boolean", "readOnly", ")", "{", "WorkspaceCache", "workspaceCache", "=", "workspace", "(", "workspaceName", ")", ";", "if", "(", "readOnly", ")", "...
Create a session for the workspace with the given name, using the supplied ExecutionContext for the session. @param context the context for the new session; may not be null @param workspaceName the name of the workspace; may not be null @param readOnly true if the session is to be read-only @return the new session tha...
[ "Create", "a", "session", "for", "the", "workspace", "with", "the", "given", "name", "using", "the", "supplied", "ExecutionContext", "for", "the", "session", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/RepositoryCache.java#L938-L946
56,138
ModeShape/modeshape
sequencers/modeshape-sequencer-text/src/main/java/org/modeshape/sequencer/text/FixedWidthTextSequencer.java
FixedWidthTextSequencer.setColumnStartPositions
public void setColumnStartPositions( String commaDelimitedColumnStartPositions ) { CheckArg.isNotNull(commaDelimitedColumnStartPositions, "commaDelimitedColumnStartPositions"); String[] stringStartPositions = commaDelimitedColumnStartPositions.split(","); int[] columnStartPositions = new int[st...
java
public void setColumnStartPositions( String commaDelimitedColumnStartPositions ) { CheckArg.isNotNull(commaDelimitedColumnStartPositions, "commaDelimitedColumnStartPositions"); String[] stringStartPositions = commaDelimitedColumnStartPositions.split(","); int[] columnStartPositions = new int[st...
[ "public", "void", "setColumnStartPositions", "(", "String", "commaDelimitedColumnStartPositions", ")", "{", "CheckArg", ".", "isNotNull", "(", "commaDelimitedColumnStartPositions", ",", "\"commaDelimitedColumnStartPositions\"", ")", ";", "String", "[", "]", "stringStartPositi...
Set the column start positions from a list of column start positions concatenated into a single, comma-delimited string. @param commaDelimitedColumnStartPositions a list of column start positions concatenated into a single, comma-delimited string; may not be null @see #setColumnStartPositions(int[])
[ "Set", "the", "column", "start", "positions", "from", "a", "list", "of", "column", "start", "positions", "concatenated", "into", "a", "single", "comma", "-", "delimited", "string", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-text/src/main/java/org/modeshape/sequencer/text/FixedWidthTextSequencer.java#L70-L81
56,139
ModeShape/modeshape
web/modeshape-web-jcr-webdav/src/main/java/org/modeshape/web/jcr/webdav/DefaultContentMapper.java
DefaultContentMapper.setFor
private static Set<String> setFor( String... elements ) { Set<String> set = new HashSet<String>(elements.length); set.addAll(Arrays.asList(elements)); return set; }
java
private static Set<String> setFor( String... elements ) { Set<String> set = new HashSet<String>(elements.length); set.addAll(Arrays.asList(elements)); return set; }
[ "private", "static", "Set", "<", "String", ">", "setFor", "(", "String", "...", "elements", ")", "{", "Set", "<", "String", ">", "set", "=", "new", "HashSet", "<", "String", ">", "(", "elements", ".", "length", ")", ";", "set", ".", "addAll", "(", ...
Returns an unmodifiable set containing the elements passed in to this method @param elements a set of elements; may not be null @return an unmodifiable set containing all of the elements in {@code elements}; never null
[ "Returns", "an", "unmodifiable", "set", "containing", "the", "elements", "passed", "in", "to", "this", "method" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-jcr-webdav/src/main/java/org/modeshape/web/jcr/webdav/DefaultContentMapper.java#L95-L100
56,140
ModeShape/modeshape
deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java
RepositoryService.changeField
public void changeField( MappedAttributeDefinition defn, ModelNode newValue ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = repositoryName(); // Get a snapshot of the current configuration ... ...
java
public void changeField( MappedAttributeDefinition defn, ModelNode newValue ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = repositoryName(); // Get a snapshot of the current configuration ... ...
[ "public", "void", "changeField", "(", "MappedAttributeDefinition", "defn", ",", "ModelNode", "newValue", ")", "throws", "RepositoryException", ",", "OperationFailedException", "{", "ModeShapeEngine", "engine", "=", "getEngine", "(", ")", ";", "String", "repositoryName",...
Immediately change and apply the specified field in the current repository configuration to the new value. @param defn the attribute definition for the value; may not be null @param newValue the new string value @throws RepositoryException if there is a problem obtaining the repository configuration or applying the ch...
[ "Immediately", "change", "and", "apply", "the", "specified", "field", "in", "the", "current", "repository", "configuration", "to", "the", "new", "value", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java#L249-L276
56,141
ModeShape/modeshape
deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java
RepositoryService.changeIndexProviderField
public void changeIndexProviderField( MappedAttributeDefinition defn, ModelNode newValue, String indexProviderName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String rep...
java
public void changeIndexProviderField( MappedAttributeDefinition defn, ModelNode newValue, String indexProviderName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String rep...
[ "public", "void", "changeIndexProviderField", "(", "MappedAttributeDefinition", "defn", ",", "ModelNode", "newValue", ",", "String", "indexProviderName", ")", "throws", "RepositoryException", ",", "OperationFailedException", "{", "ModeShapeEngine", "engine", "=", "getEngine...
Immediately change and apply the specified index provider field in the current repository configuration to the new value. @param defn the attribute definition for the value; may not be null @param newValue the new string value @param indexProviderName the name of the index provider @throws RepositoryException if there...
[ "Immediately", "change", "and", "apply", "the", "specified", "index", "provider", "field", "in", "the", "current", "repository", "configuration", "to", "the", "new", "value", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java#L287-L325
56,142
ModeShape/modeshape
deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java
RepositoryService.changeSequencerField
public void changeSequencerField( MappedAttributeDefinition defn, ModelNode newValue, String sequencerName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = re...
java
public void changeSequencerField( MappedAttributeDefinition defn, ModelNode newValue, String sequencerName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = re...
[ "public", "void", "changeSequencerField", "(", "MappedAttributeDefinition", "defn", ",", "ModelNode", "newValue", ",", "String", "sequencerName", ")", "throws", "RepositoryException", ",", "OperationFailedException", "{", "ModeShapeEngine", "engine", "=", "getEngine", "("...
Immediately change and apply the specified sequencer field in the current repository configuration to the new value. @param defn the attribute definition for the value; may not be null @param newValue the new string value @param sequencerName the name of the sequencer @throws RepositoryException if there is a problem ...
[ "Immediately", "change", "and", "apply", "the", "specified", "sequencer", "field", "in", "the", "current", "repository", "configuration", "to", "the", "new", "value", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java#L385-L424
56,143
ModeShape/modeshape
deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java
RepositoryService.changePersistenceField
public void changePersistenceField(MappedAttributeDefinition defn, ModelNode newValue) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = repositoryName(); // Get a snapshot of the current c...
java
public void changePersistenceField(MappedAttributeDefinition defn, ModelNode newValue) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = repositoryName(); // Get a snapshot of the current c...
[ "public", "void", "changePersistenceField", "(", "MappedAttributeDefinition", "defn", ",", "ModelNode", "newValue", ")", "throws", "RepositoryException", ",", "OperationFailedException", "{", "ModeShapeEngine", "engine", "=", "getEngine", "(", ")", ";", "String", "repos...
Immediately change and apply the specified persistence field to the repository configuration @param defn the attribute definition for the value; may not be null @param newValue the new string value @throws RepositoryException if there is a problem obtaining the repository configuration or applying the change @throws O...
[ "Immediately", "change", "and", "apply", "the", "specified", "persistence", "field", "to", "the", "repository", "configuration" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java#L434-L458
56,144
ModeShape/modeshape
deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java
RepositoryService.changeSourceField
public void changeSourceField( MappedAttributeDefinition defn, ModelNode newValue, String sourceName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = repositoryName...
java
public void changeSourceField( MappedAttributeDefinition defn, ModelNode newValue, String sourceName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = repositoryName...
[ "public", "void", "changeSourceField", "(", "MappedAttributeDefinition", "defn", ",", "ModelNode", "newValue", ",", "String", "sourceName", ")", "throws", "RepositoryException", ",", "OperationFailedException", "{", "ModeShapeEngine", "engine", "=", "getEngine", "(", ")...
Immediately change and apply the specified external source field in the current repository configuration to the new value. @param defn the attribute definition for the value; may not be null @param newValue the new string value @param sourceName the name of the source @throws RepositoryException if there is a problem ...
[ "Immediately", "change", "and", "apply", "the", "specified", "external", "source", "field", "in", "the", "current", "repository", "configuration", "to", "the", "new", "value", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java#L469-L498
56,145
ModeShape/modeshape
deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java
RepositoryService.changeTextExtractorField
public void changeTextExtractorField( MappedAttributeDefinition defn, ModelNode newValue, String extractorName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String reposit...
java
public void changeTextExtractorField( MappedAttributeDefinition defn, ModelNode newValue, String extractorName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String reposit...
[ "public", "void", "changeTextExtractorField", "(", "MappedAttributeDefinition", "defn", ",", "ModelNode", "newValue", ",", "String", "extractorName", ")", "throws", "RepositoryException", ",", "OperationFailedException", "{", "ModeShapeEngine", "engine", "=", "getEngine", ...
Immediately change and apply the specified extractor field in the current repository configuration to the new value. @param defn the attribute definition for the value; may not be null @param newValue the new string value @param extractorName the name of the sequencer @throws RepositoryException if there is a problem ...
[ "Immediately", "change", "and", "apply", "the", "specified", "extractor", "field", "in", "the", "current", "repository", "configuration", "to", "the", "new", "value", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java#L509-L544
56,146
ModeShape/modeshape
deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java
RepositoryService.changeAuthenticatorField
public void changeAuthenticatorField( MappedAttributeDefinition defn, ModelNode newValue, String authenticatorName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String rep...
java
public void changeAuthenticatorField( MappedAttributeDefinition defn, ModelNode newValue, String authenticatorName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String rep...
[ "public", "void", "changeAuthenticatorField", "(", "MappedAttributeDefinition", "defn", ",", "ModelNode", "newValue", ",", "String", "authenticatorName", ")", "throws", "RepositoryException", ",", "OperationFailedException", "{", "ModeShapeEngine", "engine", "=", "getEngine...
Immediately change and apply the specified authenticator field in the current repository configuration to the new value. @param defn the attribute definition for the value; may not be null @param newValue the new string value @param authenticatorName the name of the authenticator @throws RepositoryException if there i...
[ "Immediately", "change", "and", "apply", "the", "specified", "authenticator", "field", "in", "the", "current", "repository", "configuration", "to", "the", "new", "value", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java#L555-L610
56,147
ModeShape/modeshape
web/modeshape-webdav/src/main/java/org/modeshape/webdav/locking/LockedObject.java
LockedObject.checkLocks
public boolean checkLocks( boolean exclusive, int depth ) { if (checkParents(exclusive) && checkChildren(exclusive, depth)) { return true; } return false; }
java
public boolean checkLocks( boolean exclusive, int depth ) { if (checkParents(exclusive) && checkChildren(exclusive, depth)) { return true; } return false; }
[ "public", "boolean", "checkLocks", "(", "boolean", "exclusive", ",", "int", "depth", ")", "{", "if", "(", "checkParents", "(", "exclusive", ")", "&&", "checkChildren", "(", "exclusive", ",", "depth", ")", ")", "{", "return", "true", ";", "}", "return", "...
checks if a lock of the given exclusivity can be placed, only considering children up to "depth" @param exclusive wheather the new lock should be exclusive @param depth the depth to which should be checked @return true if the lock can be placed
[ "checks", "if", "a", "lock", "of", "the", "given", "exclusivity", "can", "be", "placed", "only", "considering", "children", "up", "to", "depth" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-webdav/src/main/java/org/modeshape/webdav/locking/LockedObject.java#L251-L257
56,148
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java
Predicate.and
public Predicate<T> and( final Predicate<T> other ) { if (other == null || other == this) return this; return new Predicate<T>() { @Override public boolean test( T input ) { return Predicate.this.test(input) && other.test(input); } }; }
java
public Predicate<T> and( final Predicate<T> other ) { if (other == null || other == this) return this; return new Predicate<T>() { @Override public boolean test( T input ) { return Predicate.this.test(input) && other.test(input); } }; }
[ "public", "Predicate", "<", "T", ">", "and", "(", "final", "Predicate", "<", "T", ">", "other", ")", "{", "if", "(", "other", "==", "null", "||", "other", "==", "this", ")", "return", "this", ";", "return", "new", "Predicate", "<", "T", ">", "(", ...
Obtain a new predicate that performs the logical AND of this predicate and the supplied predicate. @param other the other predicate @return the composed predicate; never null
[ "Obtain", "a", "new", "predicate", "that", "performs", "the", "logical", "AND", "of", "this", "predicate", "and", "the", "supplied", "predicate", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java#L37-L45
56,149
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java
Predicate.or
public Predicate<T> or( final Predicate<T> other ) { if (other == null || other == this) return this; return new Predicate<T>() { @Override public boolean test( T input ) { return Predicate.this.test(input) || other.test(input); } }; }
java
public Predicate<T> or( final Predicate<T> other ) { if (other == null || other == this) return this; return new Predicate<T>() { @Override public boolean test( T input ) { return Predicate.this.test(input) || other.test(input); } }; }
[ "public", "Predicate", "<", "T", ">", "or", "(", "final", "Predicate", "<", "T", ">", "other", ")", "{", "if", "(", "other", "==", "null", "||", "other", "==", "this", ")", "return", "this", ";", "return", "new", "Predicate", "<", "T", ">", "(", ...
Obtain a new predicate that performs the logical OR of this predicate and the supplied predicate. @param other the other predicate @return the composed predicate; never null
[ "Obtain", "a", "new", "predicate", "that", "performs", "the", "logical", "OR", "of", "this", "predicate", "and", "the", "supplied", "predicate", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java#L53-L61
56,150
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java
Predicate.negate
public Predicate<T> negate() { return new Predicate<T>() { @Override public boolean test( T input ) { return !Predicate.this.test(input); } @Override public Predicate<T> negate() { return Predicate.this; } ...
java
public Predicate<T> negate() { return new Predicate<T>() { @Override public boolean test( T input ) { return !Predicate.this.test(input); } @Override public Predicate<T> negate() { return Predicate.this; } ...
[ "public", "Predicate", "<", "T", ">", "negate", "(", ")", "{", "return", "new", "Predicate", "<", "T", ">", "(", ")", "{", "@", "Override", "public", "boolean", "test", "(", "T", "input", ")", "{", "return", "!", "Predicate", ".", "this", ".", "tes...
Obtain a new predicate that performs the logical NOT of this predicate. @return the composed predicate; never null
[ "Obtain", "a", "new", "predicate", "that", "performs", "the", "logical", "NOT", "of", "this", "predicate", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java#L68-L80
56,151
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java
Predicate.never
public static <T> Predicate<T> never() { return new Predicate<T>() { @Override public boolean test( T input ) { return false; } }; }
java
public static <T> Predicate<T> never() { return new Predicate<T>() { @Override public boolean test( T input ) { return false; } }; }
[ "public", "static", "<", "T", ">", "Predicate", "<", "T", ">", "never", "(", ")", "{", "return", "new", "Predicate", "<", "T", ">", "(", ")", "{", "@", "Override", "public", "boolean", "test", "(", "T", "input", ")", "{", "return", "false", ";", ...
Return a predicate that is never satisfied. @return the predicate; never null
[ "Return", "a", "predicate", "that", "is", "never", "satisfied", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java#L87-L94
56,152
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java
Predicate.always
public static <T> Predicate<T> always() { return new Predicate<T>() { @Override public boolean test( T input ) { return true; } }; }
java
public static <T> Predicate<T> always() { return new Predicate<T>() { @Override public boolean test( T input ) { return true; } }; }
[ "public", "static", "<", "T", ">", "Predicate", "<", "T", ">", "always", "(", ")", "{", "return", "new", "Predicate", "<", "T", ">", "(", ")", "{", "@", "Override", "public", "boolean", "test", "(", "T", "input", ")", "{", "return", "true", ";", ...
Return a predicate that is always satisfied. @return the predicate; never null
[ "Return", "a", "predicate", "that", "is", "always", "satisfied", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/function/Predicate.java#L101-L108
56,153
ModeShape/modeshape
web/modeshape-web-jcr-rest/src/main/java/org/modeshape/web/jcr/rest/RestHelper.java
RestHelper.urlFrom
public static String urlFrom( String baseUrl, String... pathSegments ) { StringBuilder urlBuilder = new StringBuilder(baseUrl); if (urlBuilder.charAt(urlBuilder.length() - 1) == '/') { urlBuilder.deleteCharAt(urlBuilder.length() - 1); } for (...
java
public static String urlFrom( String baseUrl, String... pathSegments ) { StringBuilder urlBuilder = new StringBuilder(baseUrl); if (urlBuilder.charAt(urlBuilder.length() - 1) == '/') { urlBuilder.deleteCharAt(urlBuilder.length() - 1); } for (...
[ "public", "static", "String", "urlFrom", "(", "String", "baseUrl", ",", "String", "...", "pathSegments", ")", "{", "StringBuilder", "urlBuilder", "=", "new", "StringBuilder", "(", "baseUrl", ")", ";", "if", "(", "urlBuilder", ".", "charAt", "(", "urlBuilder", ...
Creates an url using base url and appending optional segments. @param baseUrl a {@code non-null} string which will act as a base. @param pathSegments an option array of segments @return a string representing an absolute-url
[ "Creates", "an", "url", "using", "base", "url", "and", "appending", "optional", "segments", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-jcr-rest/src/main/java/org/modeshape/web/jcr/rest/RestHelper.java#L101-L118
56,154
ModeShape/modeshape
web/modeshape-web-jcr-rest/src/main/java/org/modeshape/web/jcr/rest/RestHelper.java
RestHelper.jsonValueToJCRValue
public static Value jsonValueToJCRValue( Object value, ValueFactory valueFactory ) { if (value == null) { return null; } // try the datatypes that can be handled by Jettison if (value instanceof Integer || value instanceof Long) {...
java
public static Value jsonValueToJCRValue( Object value, ValueFactory valueFactory ) { if (value == null) { return null; } // try the datatypes that can be handled by Jettison if (value instanceof Integer || value instanceof Long) {...
[ "public", "static", "Value", "jsonValueToJCRValue", "(", "Object", "value", ",", "ValueFactory", "valueFactory", ")", "{", "if", "(", "value", "==", "null", ")", "{", "return", "null", ";", "}", "// try the datatypes that can be handled by Jettison", "if", "(", "v...
Converts an object value coming from a JSON object, to a JCR value by attempting to convert it to a valid data type. @param value a generic value, may be {@code null} @param valueFactory a {@link ValueFactory} instance which is used to perform the conversion @return either a {@link Value} or {@code null} if the object...
[ "Converts", "an", "object", "value", "coming", "from", "a", "JSON", "object", "to", "a", "JCR", "value", "by", "attempting", "to", "convert", "it", "to", "a", "valid", "data", "type", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-jcr-rest/src/main/java/org/modeshape/web/jcr/rest/RestHelper.java#L127-L157
56,155
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/value/BinaryKey.java
BinaryKey.isProperlyFormattedKey
public static boolean isProperlyFormattedKey( String hexadecimalStr ) { if (hexadecimalStr == null) return false; // Length is expected to be the same as the digest ... final int length = hexadecimalStr.length(); if (length != ALGORITHM.getHexadecimalStringLength()) return false; ...
java
public static boolean isProperlyFormattedKey( String hexadecimalStr ) { if (hexadecimalStr == null) return false; // Length is expected to be the same as the digest ... final int length = hexadecimalStr.length(); if (length != ALGORITHM.getHexadecimalStringLength()) return false; ...
[ "public", "static", "boolean", "isProperlyFormattedKey", "(", "String", "hexadecimalStr", ")", "{", "if", "(", "hexadecimalStr", "==", "null", ")", "return", "false", ";", "// Length is expected to be the same as the digest ...", "final", "int", "length", "=", "hexadeci...
Determine if the supplied hexadecimal string is potentially a binary key by checking the format of the string. @param hexadecimalStr the hexadecimal string; may be null @return true if the supplied string is a properly formatted hexadecimal representation of a binary key, or false otherwise
[ "Determine", "if", "the", "supplied", "hexadecimal", "string", "is", "potentially", "a", "binary", "key", "by", "checking", "the", "format", "of", "the", "string", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/value/BinaryKey.java#L48-L55
56,156
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/JcrRepository.java
JcrRepository.shutdown
Future<Boolean> shutdown() { // Create a simple executor that will do the backgrounding for us ... final ExecutorService executor = Executors.newSingleThreadExecutor(new NamedThreadFactory("modeshape-repository-stop")); try { // Submit a runnable to terminate all sessions ... ...
java
Future<Boolean> shutdown() { // Create a simple executor that will do the backgrounding for us ... final ExecutorService executor = Executors.newSingleThreadExecutor(new NamedThreadFactory("modeshape-repository-stop")); try { // Submit a runnable to terminate all sessions ... ...
[ "Future", "<", "Boolean", ">", "shutdown", "(", ")", "{", "// Create a simple executor that will do the backgrounding for us ...", "final", "ExecutorService", "executor", "=", "Executors", ".", "newSingleThreadExecutor", "(", "new", "NamedThreadFactory", "(", "\"modeshape-rep...
Terminate all active sessions. @return a future representing the asynchronous session termination process.
[ "Terminate", "all", "active", "sessions", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/JcrRepository.java#L310-L320
56,157
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/BackupUploadServlet.java
BackupUploadServlet.getParameter
private String getParameter(List<FileItem> items, String name) { for (FileItem i : items) { if (i.isFormField() && i.getFieldName().equals(name)) { return i.getString(); } } return null; }
java
private String getParameter(List<FileItem> items, String name) { for (FileItem i : items) { if (i.isFormField() && i.getFieldName().equals(name)) { return i.getString(); } } return null; }
[ "private", "String", "getParameter", "(", "List", "<", "FileItem", ">", "items", ",", "String", "name", ")", "{", "for", "(", "FileItem", "i", ":", "items", ")", "{", "if", "(", "i", ".", "isFormField", "(", ")", "&&", "i", ".", "getFieldName", "(", ...
Extracts value of the parameter with given name. @param items @param name @return parameter value or null.
[ "Extracts", "value", "of", "the", "parameter", "with", "given", "name", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/BackupUploadServlet.java#L105-L112
56,158
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/BackupUploadServlet.java
BackupUploadServlet.getStream
private InputStream getStream(List<FileItem> items) throws IOException { for (FileItem i : items) { if (!i.isFormField() && i.getFieldName().equals(CONTENT_PARAMETER)) { return i.getInputStream(); } } return null; }
java
private InputStream getStream(List<FileItem> items) throws IOException { for (FileItem i : items) { if (!i.isFormField() && i.getFieldName().equals(CONTENT_PARAMETER)) { return i.getInputStream(); } } return null; }
[ "private", "InputStream", "getStream", "(", "List", "<", "FileItem", ">", "items", ")", "throws", "IOException", "{", "for", "(", "FileItem", "i", ":", "items", ")", "{", "if", "(", "!", "i", ".", "isFormField", "(", ")", "&&", "i", ".", "getFieldName"...
Gets uploaded file as stream. @param items @return the stream @throws IOException
[ "Gets", "uploaded", "file", "as", "stream", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/BackupUploadServlet.java#L121-L128
56,159
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNotLessThan
public static void isNotLessThan( int argument, int notLessThanValue, String name ) { if (argument < notLessThanValue) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeLessThan.text(name, argument, notLessThan...
java
public static void isNotLessThan( int argument, int notLessThanValue, String name ) { if (argument < notLessThanValue) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeLessThan.text(name, argument, notLessThan...
[ "public", "static", "void", "isNotLessThan", "(", "int", "argument", ",", "int", "notLessThanValue", ",", "String", "name", ")", "{", "if", "(", "argument", "<", "notLessThanValue", ")", "{", "throw", "new", "IllegalArgumentException", "(", "CommonI18n", ".", ...
Check that the argument is not less than the supplied value @param argument The argument @param notLessThanValue the value that is to be used to check the value @param name The name of the argument @throws IllegalArgumentException If argument greater than or equal to the supplied vlaue
[ "Check", "that", "the", "argument", "is", "not", "less", "than", "the", "supplied", "value" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L41-L47
56,160
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNotGreaterThan
public static void isNotGreaterThan( int argument, int notGreaterThanValue, String name ) { if (argument > notGreaterThanValue) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeGreaterThan.text(name, arg...
java
public static void isNotGreaterThan( int argument, int notGreaterThanValue, String name ) { if (argument > notGreaterThanValue) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeGreaterThan.text(name, arg...
[ "public", "static", "void", "isNotGreaterThan", "(", "int", "argument", ",", "int", "notGreaterThanValue", ",", "String", "name", ")", "{", "if", "(", "argument", ">", "notGreaterThanValue", ")", "{", "throw", "new", "IllegalArgumentException", "(", "CommonI18n", ...
Check that the argument is not greater than the supplied value @param argument The argument @param notGreaterThanValue the value that is to be used to check the value @param name The name of the argument @throws IllegalArgumentException If argument is less than or equal to the supplied value
[ "Check", "that", "the", "argument", "is", "not", "greater", "than", "the", "supplied", "value" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L57-L63
56,161
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isGreaterThan
public static void isGreaterThan( int argument, int greaterThanValue, String name ) { if (argument <= greaterThanValue) { throw new IllegalArgumentException(CommonI18n.argumentMustBeGreaterThan.text(name, argument, greaterTh...
java
public static void isGreaterThan( int argument, int greaterThanValue, String name ) { if (argument <= greaterThanValue) { throw new IllegalArgumentException(CommonI18n.argumentMustBeGreaterThan.text(name, argument, greaterTh...
[ "public", "static", "void", "isGreaterThan", "(", "int", "argument", ",", "int", "greaterThanValue", ",", "String", "name", ")", "{", "if", "(", "argument", "<=", "greaterThanValue", ")", "{", "throw", "new", "IllegalArgumentException", "(", "CommonI18n", ".", ...
Check that the argument is greater than the supplied value @param argument The argument @param greaterThanValue the value that is to be used to check the value @param name The name of the argument @throws IllegalArgumentException If argument is not greater than the supplied value
[ "Check", "that", "the", "argument", "is", "greater", "than", "the", "supplied", "value" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L73-L79
56,162
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isLessThan
public static void isLessThan( int argument, int lessThanValue, String name ) { if (argument >= lessThanValue) { throw new IllegalArgumentException(CommonI18n.argumentMustBeLessThan.text(name, argument, lessThanValue)); } ...
java
public static void isLessThan( int argument, int lessThanValue, String name ) { if (argument >= lessThanValue) { throw new IllegalArgumentException(CommonI18n.argumentMustBeLessThan.text(name, argument, lessThanValue)); } ...
[ "public", "static", "void", "isLessThan", "(", "int", "argument", ",", "int", "lessThanValue", ",", "String", "name", ")", "{", "if", "(", "argument", ">=", "lessThanValue", ")", "{", "throw", "new", "IllegalArgumentException", "(", "CommonI18n", ".", "argumen...
Check that the argument is less than the supplied value @param argument The argument @param lessThanValue the value that is to be used to check the value @param name The name of the argument @throws IllegalArgumentException If argument is not less than the supplied value
[ "Check", "that", "the", "argument", "is", "less", "than", "the", "supplied", "value" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L105-L111
56,163
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isGreaterThanOrEqualTo
public static void isGreaterThanOrEqualTo( int argument, int greaterThanOrEqualToValue, String name ) { if (argument < greaterThanOrEqualToValue) { throw new IllegalArgumentException(CommonI18n.argumentMust...
java
public static void isGreaterThanOrEqualTo( int argument, int greaterThanOrEqualToValue, String name ) { if (argument < greaterThanOrEqualToValue) { throw new IllegalArgumentException(CommonI18n.argumentMust...
[ "public", "static", "void", "isGreaterThanOrEqualTo", "(", "int", "argument", ",", "int", "greaterThanOrEqualToValue", ",", "String", "name", ")", "{", "if", "(", "argument", "<", "greaterThanOrEqualToValue", ")", "{", "throw", "new", "IllegalArgumentException", "("...
Check that the argument is greater than or equal to the supplied value @param argument The argument @param greaterThanOrEqualToValue the value that is to be used to check the value @param name The name of the argument @throws IllegalArgumentException If argument is not greater than or equal to the supplied value
[ "Check", "that", "the", "argument", "is", "greater", "than", "or", "equal", "to", "the", "supplied", "value" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L121-L128
56,164
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isLessThanOrEqualTo
public static void isLessThanOrEqualTo( int argument, int lessThanOrEqualToValue, String name ) { if (argument > lessThanOrEqualToValue) { throw new IllegalArgumentException(CommonI18n.argumentMustBeLessThanOrEqu...
java
public static void isLessThanOrEqualTo( int argument, int lessThanOrEqualToValue, String name ) { if (argument > lessThanOrEqualToValue) { throw new IllegalArgumentException(CommonI18n.argumentMustBeLessThanOrEqu...
[ "public", "static", "void", "isLessThanOrEqualTo", "(", "int", "argument", ",", "int", "lessThanOrEqualToValue", ",", "String", "name", ")", "{", "if", "(", "argument", ">", "lessThanOrEqualToValue", ")", "{", "throw", "new", "IllegalArgumentException", "(", "Comm...
Check that the argument is less than or equal to the supplied value @param argument The argument @param lessThanOrEqualToValue the value that is to be used to check the value @param name The name of the argument @throws IllegalArgumentException If argument is not less than or equal to the supplied value
[ "Check", "that", "the", "argument", "is", "less", "than", "or", "equal", "to", "the", "supplied", "value" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L138-L145
56,165
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isPowerOfTwo
public static void isPowerOfTwo( int argument, String name ) { if (Integer.bitCount(argument) != 1) { throw new IllegalArgumentException(CommonI18n.argumentMustBePowerOfTwo.text(name, argument)); } }
java
public static void isPowerOfTwo( int argument, String name ) { if (Integer.bitCount(argument) != 1) { throw new IllegalArgumentException(CommonI18n.argumentMustBePowerOfTwo.text(name, argument)); } }
[ "public", "static", "void", "isPowerOfTwo", "(", "int", "argument", ",", "String", "name", ")", "{", "if", "(", "Integer", ".", "bitCount", "(", "argument", ")", "!=", "1", ")", "{", "throw", "new", "IllegalArgumentException", "(", "CommonI18n", ".", "argu...
Check that the argument is a power of 2. @param argument The argument @param name The name of the argument @throws IllegalArgumentException If argument is not a power of 2
[ "Check", "that", "the", "argument", "is", "a", "power", "of", "2", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L210-L215
56,166
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNotNan
public static void isNotNan( double argument, String name ) { if (Double.isNaN(argument)) { throw new IllegalArgumentException(CommonI18n.argumentMustBeNumber.text(name)); } }
java
public static void isNotNan( double argument, String name ) { if (Double.isNaN(argument)) { throw new IllegalArgumentException(CommonI18n.argumentMustBeNumber.text(name)); } }
[ "public", "static", "void", "isNotNan", "(", "double", "argument", ",", "String", "name", ")", "{", "if", "(", "Double", ".", "isNaN", "(", "argument", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "CommonI18n", ".", "argumentMustBeNumber", ...
Check that the argument is not NaN. @param argument The argument @param name The name of the argument @throws IllegalArgumentException If argument is NaN
[ "Check", "that", "the", "argument", "is", "not", "NaN", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L340-L345
56,167
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNotZeroLength
public static void isNotZeroLength( String argument, String name ) { isNotNull(argument, name); if (argument.length() <= 0) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeNullOrZeroLength.text(name)); } }
java
public static void isNotZeroLength( String argument, String name ) { isNotNull(argument, name); if (argument.length() <= 0) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeNullOrZeroLength.text(name)); } }
[ "public", "static", "void", "isNotZeroLength", "(", "String", "argument", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "argument", ".", "length", "(", ")", "<=", "0", ")", "{", "throw", "new", "Illega...
Check that the string is non-null and has length > 0 @param argument The argument @param name The name of the argument @throws IllegalArgumentException If value is null or length == 0
[ "Check", "that", "the", "string", "is", "non", "-", "null", "and", "has", "length", ">", "0" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L356-L362
56,168
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNotEmpty
public static void isNotEmpty( String argument, String name ) { isNotZeroLength(argument, name); if (argument != null && argument.trim().length() == 0) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeNullOrZeroLengthOrEmpty.text(name)); ...
java
public static void isNotEmpty( String argument, String name ) { isNotZeroLength(argument, name); if (argument != null && argument.trim().length() == 0) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeNullOrZeroLengthOrEmpty.text(name)); ...
[ "public", "static", "void", "isNotEmpty", "(", "String", "argument", ",", "String", "name", ")", "{", "isNotZeroLength", "(", "argument", ",", "name", ")", ";", "if", "(", "argument", "!=", "null", "&&", "argument", ".", "trim", "(", ")", ".", "length", ...
Check that the string is not empty, is not null, and does not contain only whitespace. @param argument String @param name The name of the argument @throws IllegalArgumentException If string is null or empty
[ "Check", "that", "the", "string", "is", "not", "empty", "is", "not", "null", "and", "does", "not", "contain", "only", "whitespace", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L371-L377
56,169
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNotNull
public static void isNotNull( Object argument, String name ) { if (argument == null) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeNull.text(name)); } }
java
public static void isNotNull( Object argument, String name ) { if (argument == null) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeNull.text(name)); } }
[ "public", "static", "void", "isNotNull", "(", "Object", "argument", ",", "String", "name", ")", "{", "if", "(", "argument", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "CommonI18n", ".", "argumentMayNotBeNull", ".", "text", "(", ...
Check that the specified argument is non-null @param argument The argument @param name The name of the argument @throws IllegalArgumentException If argument is null
[ "Check", "that", "the", "specified", "argument", "is", "non", "-", "null" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L388-L393
56,170
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNull
public static void isNull( Object argument, String name ) { if (argument != null) { throw new IllegalArgumentException(CommonI18n.argumentMustBeNull.text(name)); } }
java
public static void isNull( Object argument, String name ) { if (argument != null) { throw new IllegalArgumentException(CommonI18n.argumentMustBeNull.text(name)); } }
[ "public", "static", "void", "isNull", "(", "Object", "argument", ",", "String", "name", ")", "{", "if", "(", "argument", "!=", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "CommonI18n", ".", "argumentMustBeNull", ".", "text", "(", "name...
Check that the argument is null @param argument The argument @param name The name of the argument @throws IllegalArgumentException If value is non-null
[ "Check", "that", "the", "argument", "is", "null" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L417-L422
56,171
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isInstanceOf
public static void isInstanceOf( Object argument, Class<?> expectedClass, String name ) { isNotNull(argument, name); if (!expectedClass.isInstance(argument)) { throw new IllegalArgumentException(CommonI18n.argumentMust...
java
public static void isInstanceOf( Object argument, Class<?> expectedClass, String name ) { isNotNull(argument, name); if (!expectedClass.isInstance(argument)) { throw new IllegalArgumentException(CommonI18n.argumentMust...
[ "public", "static", "void", "isInstanceOf", "(", "Object", "argument", ",", "Class", "<", "?", ">", "expectedClass", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "!", "expectedClass", ".", "isInstance", ...
Check that the object is an instance of the specified Class @param argument Value @param expectedClass Class @param name The name of the argument @throws IllegalArgumentException If value is null
[ "Check", "that", "the", "object", "is", "an", "instance", "of", "the", "specified", "Class" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L432-L440
56,172
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.getInstanceOf
public static <C> C getInstanceOf( Object argument, Class<C> expectedClass, String name ) { isInstanceOf(argument, expectedClass, name); return expectedClass.cast(argument); }
java
public static <C> C getInstanceOf( Object argument, Class<C> expectedClass, String name ) { isInstanceOf(argument, expectedClass, name); return expectedClass.cast(argument); }
[ "public", "static", "<", "C", ">", "C", "getInstanceOf", "(", "Object", "argument", ",", "Class", "<", "C", ">", "expectedClass", ",", "String", "name", ")", "{", "isInstanceOf", "(", "argument", ",", "expectedClass", ",", "name", ")", ";", "return", "ex...
due to cast in return
[ "due", "to", "cast", "in", "return" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L453-L458
56,173
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNotEmpty
public static void isNotEmpty( Iterator<?> argument, String name ) { isNotNull(argument, name); if (!argument.hasNext()) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeEmpty.text(name)); } }
java
public static void isNotEmpty( Iterator<?> argument, String name ) { isNotNull(argument, name); if (!argument.hasNext()) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeEmpty.text(name)); } }
[ "public", "static", "void", "isNotEmpty", "(", "Iterator", "<", "?", ">", "argument", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "!", "argument", ".", "hasNext", "(", ")", ")", "{", "throw", "new"...
Checks that the iterator is not empty, and throws an exception if it is. @param argument the iterator to check @param name The name of the argument @throws IllegalArgumentException If iterator is empty (i.e., iterator.hasNext() returns false)
[ "Checks", "that", "the", "iterator", "is", "not", "empty", "and", "throws", "an", "exception", "if", "it", "is", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L569-L575
56,174
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNotEmpty
public static void isNotEmpty( Collection<?> argument, String name ) { isNotNull(argument, name); if (argument.isEmpty()) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeEmpty.text(name)); } }
java
public static void isNotEmpty( Collection<?> argument, String name ) { isNotNull(argument, name); if (argument.isEmpty()) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeEmpty.text(name)); } }
[ "public", "static", "void", "isNotEmpty", "(", "Collection", "<", "?", ">", "argument", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "argument", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "...
Check that the collection is not empty @param argument Collection @param name The name of the argument @throws IllegalArgumentException If collection is null or empty
[ "Check", "that", "the", "collection", "is", "not", "empty" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L586-L592
56,175
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isEmpty
public static void isEmpty( Object[] argument, String name ) { isNotNull(argument, name); if (argument.length > 0) { throw new IllegalArgumentException(CommonI18n.argumentMustBeEmpty.text(name)); } }
java
public static void isEmpty( Object[] argument, String name ) { isNotNull(argument, name); if (argument.length > 0) { throw new IllegalArgumentException(CommonI18n.argumentMustBeEmpty.text(name)); } }
[ "public", "static", "void", "isEmpty", "(", "Object", "[", "]", "argument", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "argument", ".", "length", ">", "0", ")", "{", "throw", "new", "IllegalArgument...
Check that the array is empty @param argument Array @param name The name of the argument @throws IllegalArgumentException If array is not empty
[ "Check", "that", "the", "array", "is", "empty" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L616-L622
56,176
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.isNotEmpty
public static void isNotEmpty( Object[] argument, String name ) { isNotNull(argument, name); if (argument.length == 0) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeEmpty.text(name)); } }
java
public static void isNotEmpty( Object[] argument, String name ) { isNotNull(argument, name); if (argument.length == 0) { throw new IllegalArgumentException(CommonI18n.argumentMayNotBeEmpty.text(name)); } }
[ "public", "static", "void", "isNotEmpty", "(", "Object", "[", "]", "argument", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "argument", ".", "length", "==", "0", ")", "{", "throw", "new", "IllegalArgu...
Check that the array is not empty @param argument Array @param name The name of the argument @throws IllegalArgumentException If array is null or empty
[ "Check", "that", "the", "array", "is", "not", "empty" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L631-L637
56,177
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.contains
public static void contains( Collection<?> argument, Object value, String name ) { isNotNull(argument, name); if (!argument.contains(value)) { throw new IllegalArgumentException(CommonI18n.argumentDidNotContainObject.text(name...
java
public static void contains( Collection<?> argument, Object value, String name ) { isNotNull(argument, name); if (!argument.contains(value)) { throw new IllegalArgumentException(CommonI18n.argumentDidNotContainObject.text(name...
[ "public", "static", "void", "contains", "(", "Collection", "<", "?", ">", "argument", ",", "Object", "value", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "!", "argument", ".", "contains", "(", "value...
Check that the collection contains the value @param argument Collection to check @param value Value to check for, may be null @param name The name of the argument @throws IllegalArgumentException If collection is null or doesn't contain value
[ "Check", "that", "the", "collection", "contains", "the", "value" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L651-L658
56,178
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.containsKey
public static void containsKey( Map<?, ?> argument, Object key, String name ) { isNotNull(argument, name); if (!argument.containsKey(key)) { throw new IllegalArgumentException(CommonI18n.argumentDidNotContainKey.text(nam...
java
public static void containsKey( Map<?, ?> argument, Object key, String name ) { isNotNull(argument, name); if (!argument.containsKey(key)) { throw new IllegalArgumentException(CommonI18n.argumentDidNotContainKey.text(nam...
[ "public", "static", "void", "containsKey", "(", "Map", "<", "?", ",", "?", ">", "argument", ",", "Object", "key", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "!", "argument", ".", "containsKey", "(...
Check that the map contains the key @param argument Map to check @param key Key to check for, may be null @param name The name of the argument @throws IllegalArgumentException If map is null or doesn't contain key
[ "Check", "that", "the", "map", "contains", "the", "key" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L668-L675
56,179
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.containsNoNulls
public static void containsNoNulls( Iterable<?> argument, String name ) { isNotNull(argument, name); int i = 0; for (Object object : argument) { if (object == null) { throw new IllegalArgumentException(CommonI18n.argumentMayNotC...
java
public static void containsNoNulls( Iterable<?> argument, String name ) { isNotNull(argument, name); int i = 0; for (Object object : argument) { if (object == null) { throw new IllegalArgumentException(CommonI18n.argumentMayNotC...
[ "public", "static", "void", "containsNoNulls", "(", "Iterable", "<", "?", ">", "argument", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "int", "i", "=", "0", ";", "for", "(", "Object", "object", ":", "argument",...
Check that the collection is not null and contains no nulls @param argument Array @param name The name of the argument @throws IllegalArgumentException If array is null or has null values
[ "Check", "that", "the", "collection", "is", "not", "null", "and", "contains", "no", "nulls" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L684-L694
56,180
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.hasSizeOfAtLeast
public static void hasSizeOfAtLeast( Collection<?> argument, int minimumSize, String name ) { isNotNull(argument, name); if (argument.size() < minimumSize) { throw new IllegalArgumentException(CommonI18n.argume...
java
public static void hasSizeOfAtLeast( Collection<?> argument, int minimumSize, String name ) { isNotNull(argument, name); if (argument.size() < minimumSize) { throw new IllegalArgumentException(CommonI18n.argume...
[ "public", "static", "void", "hasSizeOfAtLeast", "(", "Collection", "<", "?", ">", "argument", ",", "int", "minimumSize", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "argument", ".", "size", "(", ")", ...
Check that the collection contains at least the supplied number of elements @param argument Collection @param minimumSize the minimum size @param name The name of the argument @throws IllegalArgumentException If collection has a size smaller than the supplied value
[ "Check", "that", "the", "collection", "contains", "at", "least", "the", "supplied", "number", "of", "elements" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L723-L732
56,181
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.hasSizeOfAtMost
public static void hasSizeOfAtMost( Collection<?> argument, int maximumSize, String name ) { isNotNull(argument, name); if (argument.size() > maximumSize) { throw new IllegalArgumentException(CommonI18n.argumentM...
java
public static void hasSizeOfAtMost( Collection<?> argument, int maximumSize, String name ) { isNotNull(argument, name); if (argument.size() > maximumSize) { throw new IllegalArgumentException(CommonI18n.argumentM...
[ "public", "static", "void", "hasSizeOfAtMost", "(", "Collection", "<", "?", ">", "argument", ",", "int", "maximumSize", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "argument", ".", "size", "(", ")", ...
Check that the collection contains no more than the supplied number of elements @param argument Collection @param maximumSize the maximum size @param name The name of the argument @throws IllegalArgumentException If collection has a size smaller than the supplied value
[ "Check", "that", "the", "collection", "contains", "no", "more", "than", "the", "supplied", "number", "of", "elements" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L742-L751
56,182
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.hasSizeOfAtLeast
public static void hasSizeOfAtLeast( Object[] argument, int minimumSize, String name ) { isNotNull(argument, name); if (argument.length < minimumSize) { throw new IllegalArgumentException(CommonI18n.argumentMus...
java
public static void hasSizeOfAtLeast( Object[] argument, int minimumSize, String name ) { isNotNull(argument, name); if (argument.length < minimumSize) { throw new IllegalArgumentException(CommonI18n.argumentMus...
[ "public", "static", "void", "hasSizeOfAtLeast", "(", "Object", "[", "]", "argument", ",", "int", "minimumSize", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "argument", ".", "length", "<", "minimumSize", ...
Check that the array contains at least the supplied number of elements @param argument the array @param minimumSize the minimum size @param name The name of the argument @throws IllegalArgumentException If the array has a size smaller than the supplied value
[ "Check", "that", "the", "array", "contains", "at", "least", "the", "supplied", "number", "of", "elements" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L797-L805
56,183
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java
CheckArg.hasSizeOfAtMost
public static void hasSizeOfAtMost( Object[] argument, int maximumSize, String name ) { isNotNull(argument, name); if (argument.length > maximumSize) { throw new IllegalArgumentException(CommonI18n.argumentMustBe...
java
public static void hasSizeOfAtMost( Object[] argument, int maximumSize, String name ) { isNotNull(argument, name); if (argument.length > maximumSize) { throw new IllegalArgumentException(CommonI18n.argumentMustBe...
[ "public", "static", "void", "hasSizeOfAtMost", "(", "Object", "[", "]", "argument", ",", "int", "maximumSize", ",", "String", "name", ")", "{", "isNotNull", "(", "argument", ",", "name", ")", ";", "if", "(", "argument", ".", "length", ">", "maximumSize", ...
Check that the array contains no more than the supplied number of elements @param argument the array @param maximumSize the maximum size @param name The name of the argument @throws IllegalArgumentException If the array has a size smaller than the supplied value
[ "Check", "that", "the", "array", "contains", "no", "more", "than", "the", "supplied", "number", "of", "elements" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/CheckArg.java#L815-L823
56,184
ModeShape/modeshape
modeshape-common/src/main/java/org/modeshape/common/util/DateTimeUtil.java
DateTimeUtil.jodaFormat
public static String jodaFormat( ZonedDateTime dateTime ) { CheckArg.isNotNull(dateTime, "dateTime"); return dateTime.format(JODA_ISO8601_FORMATTER); }
java
public static String jodaFormat( ZonedDateTime dateTime ) { CheckArg.isNotNull(dateTime, "dateTime"); return dateTime.format(JODA_ISO8601_FORMATTER); }
[ "public", "static", "String", "jodaFormat", "(", "ZonedDateTime", "dateTime", ")", "{", "CheckArg", ".", "isNotNull", "(", "dateTime", ",", "\"dateTime\"", ")", ";", "return", "dateTime", ".", "format", "(", "JODA_ISO8601_FORMATTER", ")", ";", "}" ]
Returns the ISO8601 string of a given date-time instance with timezone information, trying to be as closed as possible to what the JODA date-time library would return. @param dateTime a {@link ZonedDateTime} instance, may not be null @return a {@link String} representation of the date instance according to the ISO8601...
[ "Returns", "the", "ISO8601", "string", "of", "a", "given", "date", "-", "time", "instance", "with", "timezone", "information", "trying", "to", "be", "as", "closed", "as", "possible", "to", "what", "the", "JODA", "date", "-", "time", "library", "would", "re...
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/DateTimeUtil.java#L93-L96
56,185
ModeShape/modeshape
modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/text/TextExtractor.java
TextExtractor.processStream
protected final <T> T processStream( Binary binary, BinaryOperation<T> operation ) throws Exception { InputStream stream = binary.getStream(); if (stream == null) { throw new IllegalArgumentException("The binary value is empty"); } tr...
java
protected final <T> T processStream( Binary binary, BinaryOperation<T> operation ) throws Exception { InputStream stream = binary.getStream(); if (stream == null) { throw new IllegalArgumentException("The binary value is empty"); } tr...
[ "protected", "final", "<", "T", ">", "T", "processStream", "(", "Binary", "binary", ",", "BinaryOperation", "<", "T", ">", "operation", ")", "throws", "Exception", "{", "InputStream", "stream", "=", "binary", ".", "getStream", "(", ")", ";", "if", "(", "...
Allows subclasses to process the stream of binary value property in "safe" fashion, making sure the stream is closed at the end of the operation. @param binary a {@link org.modeshape.jcr.api.Binary} who is expected to contain a non-null binary value. @param operation a {@link org.modeshape.jcr.api.text.TextExtractor.B...
[ "Allows", "subclasses", "to", "process", "the", "stream", "of", "binary", "value", "property", "in", "safe", "fashion", "making", "sure", "the", "stream", "is", "closed", "at", "the", "end", "of", "the", "operation", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/text/TextExtractor.java#L81-L93
56,186
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/QueryParsers.java
QueryParsers.addLanguage
public void addLanguage( QueryParser languageParser ) { CheckArg.isNotNull(languageParser, "languageParser"); this.parsers.put(languageParser.getLanguage().trim().toLowerCase(), languageParser); }
java
public void addLanguage( QueryParser languageParser ) { CheckArg.isNotNull(languageParser, "languageParser"); this.parsers.put(languageParser.getLanguage().trim().toLowerCase(), languageParser); }
[ "public", "void", "addLanguage", "(", "QueryParser", "languageParser", ")", "{", "CheckArg", ".", "isNotNull", "(", "languageParser", ",", "\"languageParser\"", ")", ";", "this", ".", "parsers", ".", "put", "(", "languageParser", ".", "getLanguage", "(", ")", ...
Add a language to this engine by supplying its parser. @param languageParser the query parser for the language @throws IllegalArgumentException if the language parser is null
[ "Add", "a", "language", "to", "this", "engine", "by", "supplying", "its", "parser", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/QueryParsers.java#L67-L70
56,187
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/QueryParsers.java
QueryParsers.getLanguages
public Set<String> getLanguages() { Set<String> result = new HashSet<String>(); for (QueryParser parser : parsers.values()) { result.add(parser.getLanguage()); } return Collections.unmodifiableSet(result); }
java
public Set<String> getLanguages() { Set<String> result = new HashSet<String>(); for (QueryParser parser : parsers.values()) { result.add(parser.getLanguage()); } return Collections.unmodifiableSet(result); }
[ "public", "Set", "<", "String", ">", "getLanguages", "(", ")", "{", "Set", "<", "String", ">", "result", "=", "new", "HashSet", "<", "String", ">", "(", ")", ";", "for", "(", "QueryParser", "parser", ":", "parsers", ".", "values", "(", ")", ")", "{...
Get the set of languages that this engine is capable of parsing. @return the unmodifiable copy of the set of languages; never null but possibly empty
[ "Get", "the", "set", "of", "languages", "that", "this", "engine", "is", "capable", "of", "parsing", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/QueryParsers.java#L139-L145
56,188
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/QueryParsers.java
QueryParsers.getParserFor
public QueryParser getParserFor( String language ) { CheckArg.isNotNull(language, "language"); return parsers.get(language.trim().toLowerCase()); }
java
public QueryParser getParserFor( String language ) { CheckArg.isNotNull(language, "language"); return parsers.get(language.trim().toLowerCase()); }
[ "public", "QueryParser", "getParserFor", "(", "String", "language", ")", "{", "CheckArg", ".", "isNotNull", "(", "language", ",", "\"language\"", ")", ";", "return", "parsers", ".", "get", "(", "language", ".", "trim", "(", ")", ".", "toLowerCase", "(", ")...
Get the parser for the supplied language. @param language the language in which the query is expressed; must case-insensitively match one of the supported {@link #getLanguages() languages} @return the query parser, or null if the supplied language is not supported @throws IllegalArgumentException if the language is nu...
[ "Get", "the", "parser", "for", "the", "supplied", "language", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/QueryParsers.java#L155-L158
56,189
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/validate/ImmutableSchemata.java
ImmutableSchemata.createBuilder
public static Builder createBuilder( ExecutionContext context, NodeTypes nodeTypes ) { CheckArg.isNotNull(context, "context"); CheckArg.isNotNull(nodeTypes, "nodeTypes"); return new Builder(context, nodeTypes); }
java
public static Builder createBuilder( ExecutionContext context, NodeTypes nodeTypes ) { CheckArg.isNotNull(context, "context"); CheckArg.isNotNull(nodeTypes, "nodeTypes"); return new Builder(context, nodeTypes); }
[ "public", "static", "Builder", "createBuilder", "(", "ExecutionContext", "context", ",", "NodeTypes", "nodeTypes", ")", "{", "CheckArg", ".", "isNotNull", "(", "context", ",", "\"context\"", ")", ";", "CheckArg", ".", "isNotNull", "(", "nodeTypes", ",", "\"nodeT...
Obtain a new instance for building Schemata objects. @param context the execution context that this schemata should use @param nodeTypes the node types that this schemata should use @return the new builder; never null @throws IllegalArgumentException if the context is null
[ "Obtain", "a", "new", "instance", "for", "building", "Schemata", "objects", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/validate/ImmutableSchemata.java#L65-L70
56,190
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/PermissionsEditor.java
PermissionsEditor.show
public void show(JcrNode node) { this.node = node; if (node.getAcl() == null) { this.displayDisabledEditor(); } else if (this.isAclDefined(node)) { this.selectFirstPrincipalAndDisplayPermissions(node); } else { this.displayEveryonePermissions(); ...
java
public void show(JcrNode node) { this.node = node; if (node.getAcl() == null) { this.displayDisabledEditor(); } else if (this.isAclDefined(node)) { this.selectFirstPrincipalAndDisplayPermissions(node); } else { this.displayEveryonePermissions(); ...
[ "public", "void", "show", "(", "JcrNode", "node", ")", "{", "this", ".", "node", "=", "node", ";", "if", "(", "node", ".", "getAcl", "(", ")", "==", "null", ")", "{", "this", ".", "displayDisabledEditor", "(", ")", ";", "}", "else", "if", "(", "t...
Displays permissions for the given node. @param node
[ "Displays", "permissions", "for", "the", "given", "node", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/PermissionsEditor.java#L75-L84
56,191
ModeShape/modeshape
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/oracle/OracleDdlParser.java
OracleDdlParser.parseMaterializedViewStatement
protected AstNode parseMaterializedViewStatement( DdlTokenStream tokens, AstNode parentNode ) throws ParsingException { assert tokens != null; assert parentNode != null; markStartOfStatement(tokens); /* -----------------------------...
java
protected AstNode parseMaterializedViewStatement( DdlTokenStream tokens, AstNode parentNode ) throws ParsingException { assert tokens != null; assert parentNode != null; markStartOfStatement(tokens); /* -----------------------------...
[ "protected", "AstNode", "parseMaterializedViewStatement", "(", "DdlTokenStream", "tokens", ",", "AstNode", "parentNode", ")", "throws", "ParsingException", "{", "assert", "tokens", "!=", "null", ";", "assert", "parentNode", "!=", "null", ";", "markStartOfStatement", "...
Parses DDL CREATE MATERIALIZED VIEW statement This could either be a standard view or a VIEW LOG ON statement. @param tokens the tokenized {@link DdlTokenStream} of the DDL input content; may not be null @param parentNode the parent {@link AstNode} node; may not be null @return the parsed CREATE MATERIALIZED VIEW stat...
[ "Parses", "DDL", "CREATE", "MATERIALIZED", "VIEW", "statement", "This", "could", "either", "be", "a", "standard", "view", "or", "a", "VIEW", "LOG", "ON", "statement", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/oracle/OracleDdlParser.java#L800-L848
56,192
ModeShape/modeshape
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/oracle/OracleDdlParser.java
OracleDdlParser.parseContentBetweenParens
private String parseContentBetweenParens( final DdlTokenStream tokens ) throws ParsingException { tokens.consume(L_PAREN); // don't include first paren in expression int numLeft = 1; int numRight = 0; final StringBuilder text = new StringBuilder(); while (tokens.hasNext()) { ...
java
private String parseContentBetweenParens( final DdlTokenStream tokens ) throws ParsingException { tokens.consume(L_PAREN); // don't include first paren in expression int numLeft = 1; int numRight = 0; final StringBuilder text = new StringBuilder(); while (tokens.hasNext()) { ...
[ "private", "String", "parseContentBetweenParens", "(", "final", "DdlTokenStream", "tokens", ")", "throws", "ParsingException", "{", "tokens", ".", "consume", "(", "L_PAREN", ")", ";", "// don't include first paren in expression", "int", "numLeft", "=", "1", ";", "int"...
The tokens must start with a left paren, end with a right paren, and have content between. Any parens in the content must have matching parens. @param tokens the tokens being processed (cannot be <code>null</code> but or empty) @return the content (never <code>null</code> or empty. @throws ParsingException if there is...
[ "The", "tokens", "must", "start", "with", "a", "left", "paren", "end", "with", "a", "right", "paren", "and", "have", "content", "between", ".", "Any", "parens", "in", "the", "content", "must", "have", "matching", "parens", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/oracle/OracleDdlParser.java#L1356-L1389
56,193
ModeShape/modeshape
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/oracle/OracleDdlParser.java
OracleDdlParser.isColumnDefinitionStart
protected boolean isColumnDefinitionStart( DdlTokenStream tokens, String columnMixinType ) throws ParsingException { boolean result = isColumnDefinitionStart(tokens); if (!result && TYPE_ALTER_COLUMN_DEFINITION.equals(columnMixinType)) { for (St...
java
protected boolean isColumnDefinitionStart( DdlTokenStream tokens, String columnMixinType ) throws ParsingException { boolean result = isColumnDefinitionStart(tokens); if (!result && TYPE_ALTER_COLUMN_DEFINITION.equals(columnMixinType)) { for (St...
[ "protected", "boolean", "isColumnDefinitionStart", "(", "DdlTokenStream", "tokens", ",", "String", "columnMixinType", ")", "throws", "ParsingException", "{", "boolean", "result", "=", "isColumnDefinitionStart", "(", "tokens", ")", ";", "if", "(", "!", "result", "&&"...
Utility method to additionally check if MODIFY definition without datatype @param tokens a {@link DdlTokenStream} instance; may not be null @param columnMixinType a {@link String}; may not be null @return {@code true} if the given stream si at the start of the column defintion, {@code false} otherwise. @throws Parsing...
[ "Utility", "method", "to", "additionally", "check", "if", "MODIFY", "definition", "without", "datatype" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/oracle/OracleDdlParser.java#L1927-L1936
56,194
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/RowExtractors.java
RowExtractors.extractPath
public static ExtractFromRow extractPath( final int indexInRow, final NodeCache cache, TypeSystem types ) { final TypeFactory<Path> type = types.getPathFactory(); final boolean trace = NodeSequence.LOGGER.isTrace...
java
public static ExtractFromRow extractPath( final int indexInRow, final NodeCache cache, TypeSystem types ) { final TypeFactory<Path> type = types.getPathFactory(); final boolean trace = NodeSequence.LOGGER.isTrace...
[ "public", "static", "ExtractFromRow", "extractPath", "(", "final", "int", "indexInRow", ",", "final", "NodeCache", "cache", ",", "TypeSystem", "types", ")", "{", "final", "TypeFactory", "<", "Path", ">", "type", "=", "types", ".", "getPathFactory", "(", ")", ...
Create an extractor that extracts the path from the node at the given position in the row. @param indexInRow the index of the node in the rows; must be valid @param cache the cache containing the nodes; may not be null @param types the type system; may not be null @return the path extractor; never null
[ "Create", "an", "extractor", "that", "extracts", "the", "path", "from", "the", "node", "at", "the", "given", "position", "in", "the", "row", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/RowExtractors.java#L297-L322
56,195
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/RowExtractors.java
RowExtractors.extractParentPath
public static ExtractFromRow extractParentPath( final int indexInRow, final NodeCache cache, TypeSystem types ) { final TypeFactory<Path> type = types.getPathFactory(); final boolean trace = NodeSeque...
java
public static ExtractFromRow extractParentPath( final int indexInRow, final NodeCache cache, TypeSystem types ) { final TypeFactory<Path> type = types.getPathFactory(); final boolean trace = NodeSeque...
[ "public", "static", "ExtractFromRow", "extractParentPath", "(", "final", "int", "indexInRow", ",", "final", "NodeCache", "cache", ",", "TypeSystem", "types", ")", "{", "final", "TypeFactory", "<", "Path", ">", "type", "=", "types", ".", "getPathFactory", "(", ...
Create an extractor that extracts the parent path from the node at the given position in the row. @param indexInRow the index of the node in the rows; must be valid @param cache the cache containing the nodes; may not be null @param types the type system; may not be null @return the path extractor; never null
[ "Create", "an", "extractor", "that", "extracts", "the", "parent", "path", "from", "the", "node", "at", "the", "given", "position", "in", "the", "row", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/RowExtractors.java#L332-L361
56,196
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/RowExtractors.java
RowExtractors.extractRelativePath
public static ExtractFromRow extractRelativePath( final int indexInRow, final Path relativePath, final NodeCache cache, TypeSystem types ) { CheckArg....
java
public static ExtractFromRow extractRelativePath( final int indexInRow, final Path relativePath, final NodeCache cache, TypeSystem types ) { CheckArg....
[ "public", "static", "ExtractFromRow", "extractRelativePath", "(", "final", "int", "indexInRow", ",", "final", "Path", "relativePath", ",", "final", "NodeCache", "cache", ",", "TypeSystem", "types", ")", "{", "CheckArg", ".", "isNotNull", "(", "relativePath", ",", ...
Create an extractor that extracts the path from the node at the given position in the row and applies the relative path. @param indexInRow the index of the node in the rows; must be valid @param relativePath the relative path that should be applied to the nodes' path; may not be null and must be a valid relative path ...
[ "Create", "an", "extractor", "that", "extracts", "the", "path", "from", "the", "node", "at", "the", "given", "position", "in", "the", "row", "and", "applies", "the", "relative", "path", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/RowExtractors.java#L373-L406
56,197
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/RowExtractors.java
RowExtractors.extractPropertyValue
public static ExtractFromRow extractPropertyValue( final Name propertyName, final int indexInRow, final NodeCache cache, final TypeFactory<?> desiredType )...
java
public static ExtractFromRow extractPropertyValue( final Name propertyName, final int indexInRow, final NodeCache cache, final TypeFactory<?> desiredType )...
[ "public", "static", "ExtractFromRow", "extractPropertyValue", "(", "final", "Name", "propertyName", ",", "final", "int", "indexInRow", ",", "final", "NodeCache", "cache", ",", "final", "TypeFactory", "<", "?", ">", "desiredType", ")", "{", "return", "new", "Extr...
Create an extractor that extracts the property value from the node at the given position in the row. @param propertyName the name of the property; may not be null @param indexInRow the index of the node in the rows; must be valid @param cache the cache containing the nodes; may not be null @param desiredType the desir...
[ "Create", "an", "extractor", "that", "extracts", "the", "property", "value", "from", "the", "node", "at", "the", "given", "position", "in", "the", "row", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/RowExtractors.java#L599-L617
56,198
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/spi/index/provider/IndexChangeAdapter.java
IndexChangeAdapter.reindex
protected final boolean reindex( String workspaceName, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, Properties prope...
java
protected final boolean reindex( String workspaceName, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, Properties prope...
[ "protected", "final", "boolean", "reindex", "(", "String", "workspaceName", ",", "NodeKey", "key", ",", "Path", "path", ",", "Name", "primaryType", ",", "Set", "<", "Name", ">", "mixinTypes", ",", "Properties", "properties", ",", "boolean", "queryable", ")", ...
Reindex the specific node. @param workspaceName the workspace in which the node information should be available; may not be null @param key the unique key for the node; may not be null @param path the path of the node; may not be null @param primaryType the primary type of the node; may not be null @param mixinTypes t...
[ "Reindex", "the", "specific", "node", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/spi/index/provider/IndexChangeAdapter.java#L70-L82
56,199
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/engine/QuerySources.java
QuerySources.nodes
protected NodeCacheIterator nodes( String workspaceName, Path path ) { // Determine which filter we should use based upon the workspace name. For the system workspace, // all queryable nodes are included. For all other workspaces, all queryable nodes are included e...
java
protected NodeCacheIterator nodes( String workspaceName, Path path ) { // Determine which filter we should use based upon the workspace name. For the system workspace, // all queryable nodes are included. For all other workspaces, all queryable nodes are included e...
[ "protected", "NodeCacheIterator", "nodes", "(", "String", "workspaceName", ",", "Path", "path", ")", "{", "// Determine which filter we should use based upon the workspace name. For the system workspace,", "// all queryable nodes are included. For all other workspaces, all queryable nodes ar...
Return an iterator over all nodes at or below the specified path in the named workspace, using the supplied filter. @param workspaceName the name of the workspace @param path the path of the root node of the subgraph, or null if all nodes in the workspace are to be included @return the iterator, or null if this worksp...
[ "Return", "an", "iterator", "over", "all", "nodes", "at", "or", "below", "the", "specified", "path", "in", "the", "named", "workspace", "using", "the", "supplied", "filter", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/engine/QuerySources.java#L516-L540