rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
getContext().parseURI(rootUrl.getProtocol() + ":" + FileName.ROOT_PATH);
getContext().parseURI(extForm);
public synchronized FileObject findFile(final FileObject baseFile, final String uri, final FileSystemOptions fileSystemOptions) throws FileSystemException { try { final URL url = new URL(uri); ...
giEngine(new FakeGIEngine(new Vector3(0, 0, 1), new Color(0.25f, 0.25f, 0.25f), new Color(0.01f, 0.01f, 0.5f)));
parameter("gi.engine", "fake"); parameter("gi.fake.sky", new Color(0.25f, 0.25f, 0.25f)); parameter("gi.fake.ground", new Color(0.01f, 0.01f, 0.5f)); parameter("gi.fake.up", new Vector3(0, 0, 1)); options(DEFAULT_OPTIONS);
private void createGeometry() { // light source parameter("source", new Point3(-15.5945f, -30.0581f, 45.967f)); parameter("dir", new Vector3(15.5945f, 30.0581f, -45.967f)); parameter("radius", 60.0f); parameter("radiance", Color.white().mul(3)); light("light", new Direction...
if (OptionDialog.isTrimNodeWithComplexWordConceptConstruction()) {
if (project.getDisambiguationPanel().getPartialMatchedOptionPanel().isTrimming()) {
public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ...
if (OptionDialog.isAddAbstractInternalComplexWordConcept()) {
if (project.getDisambiguationPanel().getPartialMatchedOptionPanel().isAddAbstractConcept()) {
public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ...
TreeModel classTreeModel = constructClassPanel.getTreeModel(nounConceptSet);
TreeModel classTreeModel = null; if (project.getDisambiguationPanel().getPerfectMatchedOptionPanel().isConstruction()) { classTreeModel = constructClassPanel.getTreeModel(nounConceptSet); } else { classTreeModel = ConceptTreeMaker.getInstance().getDefaultConceptTreeModel(new HashSet<Concept>(), project, ConceptTreeMake...
public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ...
if (OptionDialog.isConstructComplexWordTree()) {
if (project.getDisambiguationPanel().getPartialMatchedOptionPanel().isConstruction()) {
public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ...
TreeModel propertyTreeModel = constructPropertyPanel.getTreeModel( constructClassPanel.getAllConceptID(), verbConceptSet);
TreeModel propertyTreeModel; if (project.getDisambiguationPanel().getPerfectMatchedOptionPanel().isConstruction()) { propertyTreeModel = constructPropertyPanel.getTreeModel(constructClassPanel.getAllConceptID(), verbConceptSet, ConceptTreeMaker.DODDLE_PROPERTY_ROOT_ID); } else { propertyTreeModel = ConceptTreeMaker.get...
public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ...
DODDLE.STATUS_BAR.addValue();
public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ...
DODDLE.STATUS_BAR.addValue();
public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ...
if (inputConceptSet.size() == 0) { DODDLE.STATUS_BAR.hideProgressBar(); return; }
public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ...
TreeModel classTreeModel = constructClassPanel.getTreeModel(nounConceptSet);
TreeModel classTreeModel = null; if (project.getDisambiguationPanel().getPerfectMatchedOptionPanel().isConstruction()) { classTreeModel = constructClassPanel.getTreeModel(nounConceptSet); } else { classTreeModel = ConceptTreeMaker.getInstance().getDefaultConceptTreeModel(new HashSet<Concept>(), project, ConceptTreeMake...
private TreeModel makeClassTreeModel(Set<Concept> nounConceptSet) { constructClassPanel.init(); TreeModel classTreeModel = constructClassPanel.getTreeModel(nounConceptSet); constructClassPanel.setTreeModel(classTreeModel); constructClassPanel.setUn...
if (OptionDialog.isConstructComplexWordTree()) {
if (project.getDisambiguationPanel().getPartialMatchedOptionPanel().isConstruction()) {
private TreeModel makeClassTreeModel(Set<Concept> nounConceptSet) { constructClassPanel.init(); TreeModel classTreeModel = constructClassPanel.getTreeModel(nounConceptSet); constructClassPanel.setTreeModel(classTreeModel); constructClassPanel.setUn...
TreeModel propertyTreeModel = constructPropertyPanel.getTreeModel( constructClassPanel.getAllConceptID(), verbConceptSet);
TreeModel propertyTreeModel; if (project.getDisambiguationPanel().getPerfectMatchedOptionPanel().isConstruction()) { propertyTreeModel = constructPropertyPanel.getTreeModel(constructClassPanel.getAllConceptID(), verbConceptSet, ConceptTreeMaker.DODDLE_PROPERTY_ROOT_ID); } else { propertyTreeModel = ConceptTreeMaker.get...
private TreeModel makePropertyTreeModel(Set<Concept> verbConceptSet) { constructPropertyPanel.init(); TreeModel propertyTreeModel = constructPropertyPanel.getTreeModel( constructClassPanel.getAllConceptID(), verbConceptSet); constructProper...
DODDLE.STATUS_BAR.addValue();
private TreeModel makePropertyTreeModel(Set<Concept> verbConceptSet) { constructPropertyPanel.init(); TreeModel propertyTreeModel = constructPropertyPanel.getTreeModel( constructClassPanel.getAllConceptID(), verbConceptSet); constructProper...
if (OptionDialog.isConstructComplexWordTree()) {
if (project.getDisambiguationPanel().getPartialMatchedOptionPanel().isConstruction()) {
private TreeModel makePropertyTreeModel(Set<Concept> verbConceptSet) { constructPropertyPanel.init(); TreeModel propertyTreeModel = constructPropertyPanel.getTreeModel( constructClassPanel.getAllConceptID(), verbConceptSet); constructProper...
DODDLE.STATUS_BAR.addValue();
private TreeModel makePropertyTreeModel(Set<Concept> verbConceptSet) { constructPropertyPanel.init(); TreeModel propertyTreeModel = constructPropertyPanel.getTreeModel( constructClassPanel.getAllConceptID(), verbConceptSet); constructProper...
if (inputConceptSet.size() == 0) { DODDLE.STATUS_BAR.hideProgressBar(); return; }
public void run() { constructClassPanel.setVisibleConceptTree(false); constructPropertyPanel.setVisibleConceptTree(false); DODDLE.STATUS_BAR.setLastMessage("階層構築完了"); DODDLE.STATUS_BAR.initNormal(9); DODDLE.STATUS_BAR.startTime(); ...
if (OptionDialog.isTrimNodeWithComplexWordConceptConstruction()) {
if (project.getDisambiguationPanel().getPartialMatchedOptionPanel().isTrimming()) {
private void setComplexConcept(ComplexConceptTreeInterface ccTreeInterface, Set<Concept> conceptSet) { complexWordSet = new HashSet<String>(); Map<String, String> matchedWordIDMap = new HashMap<String, String>(); DefaultMutableTreeNode rootNode = new DefaultMutab...
if (OptionDialog.isAddAbstractInternalComplexWordConcept()) {
if (project.getDisambiguationPanel().getPartialMatchedOptionPanel().isAddAbstractConcept()) {
private void setComplexConcept(ComplexConceptTreeInterface ccTreeInterface, Set<Concept> conceptSet) { complexWordSet = new HashSet<String>(); Map<String, String> matchedWordIDMap = new HashMap<String, String>(); DefaultMutableTreeNode rootNode = new DefaultMutab...
final String message = REZ.getString( "open-jar-file.error", file ); throw new FileSystemException( message, ioe );
throw new FileSystemException( "vfs.provider.jar/open-jar-file.error", new Object[]{file}, ioe );
protected ZipFile createZipFile( File file ) throws FileSystemException { try { return new JarFile( file ); } catch( IOException ioe ) { final String message = REZ.getString( "open-jar-file.error", file ); throw new FileSystemException( message,...
docAprioriResultMap.clear(); double minSupport = getMinSupport(); double minConfidence = getMinConfidence(); for (Apriori apriori : aprioriSet) { if (apriori != null) { apriori.setParameters(minSupport, minConfidence); docAprioriResultMap.put(apriori.getDocument(), apriori.calcAprioriResult());
new Thread() { public void run() { try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(2 * aprioriSet.size()); DODDLE.STATUS_BAR.lock(); docAprioriResultMap.clear(); double minSupport = getMinSupport(); double min...
public void exeApriori() { docAprioriResultMap.clear(); double minSupport = getMinSupport(); double minConfidence = getMinConfidence(); for (Apriori apriori : aprioriSet) { if (apriori != null) { apriori.setParameters(minSupport, minConfidence); d...
} if (0 < inputConceptJList.getModel().getSize()) { inputConceptJList.setSelectedIndex(0); }
}.start();
public void exeApriori() { docAprioriResultMap.clear(); double minSupport = getMinSupport(); double minConfidence = getMinConfidence(); for (Apriori apriori : aprioriSet) { if (apriori != null) { apriori.setParameters(minSupport, minConfidence); d...
docWSResultMap.clear(); WordSpaceData wsData = getWordSpaceData(); for (WordSpace ws : wordSpaceSet) { if (ws != null) { ws.setWSData(wsData); docWSResultMap.put(ws.getDocument(), ws.calcWordSpaceResult());
new Thread() { public void run() { try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(4 * wordSpaceSet.size()); DODDLE.STATUS_BAR.lock(); docWSResultMap.clear(); WordSpaceData wsData = getWordSpaceData(); for (Wo...
public void exeWordSpace() { docWSResultMap.clear(); WordSpaceData wsData = getWordSpaceData(); for (WordSpace ws : wordSpaceSet) { if (ws != null) { ws.setWSData(wsData); docWSResultMap.put(ws.getDocument(), ws.calcWordSpaceResult()); } ...
} if (0 < inputConceptJList.getModel().getSize()) { inputConceptJList.setSelectedIndex(0); }
}.start();
public void exeWordSpace() { docWSResultMap.clear(); WordSpaceData wsData = getWordSpaceData(); for (WordSpace ws : wordSpaceSet) { if (ws != null) { ws.setWSData(wsData); docWSResultMap.put(ws.getDocument(), ws.calcWordSpaceResult()); } ...
if (this.activityTypes.isEmpty()){ super.addActionError("deliverable.activityTypesNotFound"); return Action.ERROR; }
public String create(){ this.prepareActivityTypes(); if (this.activityTypes.isEmpty()){ super.addActionError("deliverable.activityTypesNotFound"); return Action.ERROR; } deliverableId = 0; deliverable = new Deliverable(); return Action.SUCCESS; }
if ( buffer.charAt( buffer.length() - 1 ) == separatorChar ) { buffer.deleteCharAt( buffer.length() - 1 ); }
buffer.append( SEPARATOR_CHAR );
public String getRootURI() { if ( rootUri == null ) { final StringBuffer buffer = new StringBuffer(); appendRootUri( buffer ); // Remove trailing separator, if any if ( buffer.charAt( buffer.length() - 1 ) == separatorChar ) { bu...
uri = getRootURI() + absPath;
final StringBuffer buffer = new StringBuffer(); appendRootUri( buffer ); buffer.append( absPath ); uri = buffer.toString();
public String getURI() { if ( uri == null ) { uri = getRootURI() + absPath; } return uri; }
if (1 != aMail.getRecipients().size())
if (aMail.getRecipients() == null) { throw new MessagingException("Invalid number of recipients - 0" + ". Exactly 1 recipient is expected."); } else if (1 != aMail.getRecipients().size())
protected static MailAddress getSoleRecipient(Mail aMail) throws MessagingException { if (1 != aMail.getRecipients().size()) throw new MessagingException("Invalid number of recipients - " + new Integer(aMail.getRecipients().size()).toString() + "...
((AbstractFileObject) destFile).handleCreate(getType());
(FileObjectUtils.getAbstractFileObject(destFile)).handleCreate(getType());
public void moveTo(FileObject destFile) throws FileSystemException { if (canRenameTo(destFile)) { if (!getParent().isWriteable()) { throw new FileSystemException("vfs.provider/rename-parent-read-only.error", new FileName[]{getName(), getParent().getName()}); ...
if (transform != null) { String name = api.getUniqueName("sphere"); api.geometry(name, new Sphere()); api.parameter("transform", transform); api.parameter("shaders", shaders); api.instance(name + ".instance", name); } else if (p.peekNextToken("c")) { float cx = p.getNextFloat(); float cy = p.getNextFloat(); float cz = ...
String name = api.getUniqueName("sphere"); api.geometry(name, new Sphere()); if (transform != null) api.parameter("transform", transform); else if (p.peekNextToken("c")) { float x = p.getNextFloat(); float y = p.getNextFloat(); float z = p.getNextFloat();
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
float r = p.getNextFloat(); api.sphere(api.getUniqueName("sphere"), shaders[0], cx, cy, cz, r); } else { Matrix4 m = parseMatrix(); api.sphere(api.getUniqueName("sphere"), shaders[0], m); }
float radius = p.getNextFloat(); api.parameter("transform", Matrix4.translation(x, y, z).multiply(Matrix4.scale(radius))); } else api.parameter("transform", parseMatrix()); api.parameter("shaders", shaders); api.instance(name + ".instance", name);
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
public void checkAllMultipleInheritanceNode(TreeModel treeModel) { Map idParentIDSetMap = new HashMap(); ConceptTreeNode rootNode = (ConceptTreeNode) treeModel.getRoot(); makeIDParentIDSetMap(idParentIDSetMap, rootNode); checkAllMultipleInheritanceNode(idParentIDSetMap, rootNode);
private void checkAllMultipleInheritanceNode(Map idParentSetMap, ConceptTreeNode node) { for (int i = 0; i < node.getChildCount(); i++) { ConceptTreeNode childNode = (ConceptTreeNode) node.getChildAt(i); Set parentIDSet = (Set) idParentSetMap.get(childNode.getId()); if (1 < parentIDSet.size()) { childNode.setIsMultiple...
public void checkAllMultipleInheritanceNode(TreeModel treeModel) { Map idParentIDSetMap = new HashMap(); ConceptTreeNode rootNode = (ConceptTreeNode) treeModel.getRoot(); makeIDParentIDSetMap(idParentIDSetMap, rootNode); checkAllMultipleInheritanceNode(idParentIDSetMap, rootNode); }
Collection names = CollectionUtils.collect(children, dataToBaseName); String[] retu = (String[]) names.toArray(new String[names.size()]); return retu;
String[] names = new String[children.size()]; int pos = 0 ; Iterator iter = children.iterator() ; while (iter.hasNext()) { RamFileData childData = (RamFileData) iter.next(); names[pos] = childData.getName().getBaseName(); pos++; } return names;
public String[] listChildren(FileName name) { RamFileData data = (RamFileData) this.cache.get(name); Collection children = data.getChildren(); Collection names = CollectionUtils.collect(children, dataToBaseName); String[] retu = (String[]) names.toArray(new String[names.size()]); return retu; }
final String message = REZ.getString( "get-type.error", name ); throw new FileSystemException( message, exc );
throw new FileSystemException( "vfs.provider/get-type.error", new Object[]{name}, exc );
private void attach() throws FileSystemException { if ( attached ) { return; } try { // Attach and determine the file type doAttach(); attached = true; type = doGetType(); } catch ( FileSystemException exc ) ...
final InputStream instr = srcFile.getContent().getInputStream(); try
instr = srcFile.getContent().getInputStream(); outstr = destFile.getContent().getOutputStream(); final byte[] buffer = new byte[ 1024*4 ]; int n = 0; while( -1 != ( n = instr.read( buffer ) ) )
private static void copyContent( final FileObject srcFile, final FileObject destFile ) throws FileSystemException { try { final InputStream instr = srcFile.getContent().getInputStream(); try { // Create the o...
final OutputStream outstr = destFile.getContent().getOutputStream(); try { IOUtil.copy( instr, outstr ); } finally { IOUtil.shutdownStream( outstr ); } } finally { IOUtil.shutdownStream( instr );
outstr.write( buffer, 0, n );
private static void copyContent( final FileObject srcFile, final FileObject destFile ) throws FileSystemException { try { final InputStream instr = srcFile.getContent().getInputStream(); try { // Create the o...
final String message = REZ.getString( "copy-file.error", srcFile.getName(), destFile.getName() ); throw new FileSystemException( message, exc );
throw new FileSystemException( "vfs.provider/copy-file.error", new Object[]{srcFile, destFile}, exc ); } finally { if (instr != null) { try { instr.close(); } catch( final Exception exc ) { } } if (outstr != null) { try { outstr.close(); } catch( final Exception exc ) { } }
private static void copyContent( final FileObject srcFile, final FileObject destFile ) throws FileSystemException { try { final InputStream instr = srcFile.getContent().getInputStream(); try { // Create the o...
final String message = REZ.getString( "copy-missing-file.error", file.getName() ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/copy-missing-file.error", file );
public void copyFrom( final FileObject file, final FileSelector selector ) throws FileSystemException { if ( !file.exists() ) { final String message = REZ.getString( "copy-missing-file.error", file.getName() ); throw new FileSystemException( message ); } i...
if ( isReadOnly() )
if ( !isWriteable() )
public void copyFrom( final FileObject file, final FileSelector selector ) throws FileSystemException { if ( !file.exists() ) { final String message = REZ.getString( "copy-missing-file.error", file.getName() ); throw new FileSystemException( message ); } i...
final String message = REZ.getString( "copy-read-only.error", file.getType(), file.getName(), name ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/copy-read-only.error", new Object[]{file.getType(), file.getName(), this}, null );
public void copyFrom( final FileObject file, final FileSelector selector ) throws FileSystemException { if ( !file.exists() ) { final String message = REZ.getString( "copy-missing-file.error", file.getName() ); throw new FileSystemException( message ); } i...
final String message = REZ.getString( "create-mismatched-type.error", type, name, this.type ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/create-mismatched-type.error", new Object[]{type, name, this.type}, null );
public void create( FileType type ) throws FileSystemException { attach(); if ( this.type == type ) { // Already exists as correct type return; } if ( this.type != null ) { final String message = REZ.getString( "create-mismatched-type.err...
if ( isReadOnly() )
if ( !isWriteable() )
public void create( FileType type ) throws FileSystemException { attach(); if ( this.type == type ) { // Already exists as correct type return; } if ( this.type != null ) { final String message = REZ.getString( "create-mismatched-type.err...
final String message = REZ.getString( "create-read-only.error", type, name ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/create-read-only.error", new Object[]{type, name}, null );
public void create( FileType type ) throws FileSystemException { attach(); if ( this.type == type ) { // Already exists as correct type return; } if ( this.type != null ) { final String message = REZ.getString( "create-mismatched-type.err...
final String message = REZ.getString( "create.error", type, name ); throw new FileSystemException( message, exc );
throw new FileSystemException( "vfs.provider/create.error", new Object[]{type, name}, exc );
public void create( FileType type ) throws FileSystemException { attach(); if ( this.type == type ) { // Already exists as correct type return; } if ( this.type != null ) { final String message = REZ.getString( "create-mismatched-type.err...
if ( isReadOnly() )
if ( exists() && !isWriteable() )
private void deleteSelf() throws FileSystemException { if ( isReadOnly() ) { final String message = REZ.getString( "delete-read-only.error", name ); throw new FileSystemException( message ); } // Delete the file try { doDelete(); }...
final String message = REZ.getString( "delete-read-only.error", name ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/delete-read-only.error", name );
private void deleteSelf() throws FileSystemException { if ( isReadOnly() ) { final String message = REZ.getString( "delete-read-only.error", name ); throw new FileSystemException( message ); } // Delete the file try { doDelete(); }...
final String message = REZ.getString( "delete.error", name ); throw new FileSystemException( message, exc );
throw new FileSystemException( "vfs.provider/delete.error", new Object[]{name}, exc );
private void deleteSelf() throws FileSystemException { if ( isReadOnly() ) { final String message = REZ.getString( "delete-read-only.error", name ); throw new FileSystemException( message ); } // Delete the file try { doDelete(); }...
final String message = REZ.getString( "create-folder-not-supported.error" ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/create-folder-not-supported.error" );
protected void doCreateFolder() throws Exception { final String message = REZ.getString( "create-folder-not-supported.error" ); throw new FileSystemException( message ); }
final String message = REZ.getString( "delete-not-supported.error" ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/delete-not-supported.error" );
protected void doDelete() throws Exception { final String message = REZ.getString( "delete-not-supported.error" ); throw new FileSystemException( message ); }
final String message = REZ.getString( "get-last-modified-not-supported.error" ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/get-last-modified-not-supported.error" );
protected long doGetLastModifiedTime() throws FileSystemException { final String message = REZ.getString( "get-last-modified-not-supported.error" ); throw new FileSystemException( message ); }
final String message = REZ.getString( "write-not-supported.error" ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/write-not-supported.error" );
protected OutputStream doGetOutputStream() throws Exception { final String message = REZ.getString( "write-not-supported.error" ); throw new FileSystemException( message ); }
final String message = REZ.getString( "set-attribute-not-supported.error" ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/set-attribute-not-supported.error" );
protected void doSetAttribute( String atttrName, Object value ) throws FileSystemException { final String message = REZ.getString( "set-attribute-not-supported.error" ); throw new FileSystemException( message ); }
final String message = REZ.getString( "set-last-modified-not-supported.error" ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/set-last-modified-not-supported.error" );
protected void doSetLastModifiedTime( long modtime ) throws FileSystemException { final String message = REZ.getString( "set-last-modified-not-supported.error" ); throw new FileSystemException( message ); }
final String message = REZ.getString( "list-children-no-exist.error", name ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/list-children-no-exist.error", name );
public FileObject[] getChildren() throws FileSystemException { attach(); if ( type == null ) { final String message = REZ.getString( "list-children-no-exist.error", name ); throw new FileSystemException( message ); } if ( type != FileType.FOLDER ) {...
final String message = REZ.getString( "list-children-not-folder.error", name ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/list-children-not-folder.error", name );
public FileObject[] getChildren() throws FileSystemException { attach(); if ( type == null ) { final String message = REZ.getString( "list-children-no-exist.error", name ); throw new FileSystemException( message ); } if ( type != FileType.FOLDER ) {...
final String message = REZ.getString( "list-children.error", name ); throw new FileSystemException( message, exc );
throw new FileSystemException( "vfs.provider/list-children.error", new Object[]{name}, exc );
public FileObject[] getChildren() throws FileSystemException { attach(); if ( type == null ) { final String message = REZ.getString( "list-children-no-exist.error", name ); throw new FileSystemException( message ); } if ( type != FileType.FOLDER ) {...
if ( isReadOnly() )
if ( !isWriteable() )
public OutputStream getOutputStream() throws FileSystemException { attach(); if ( isReadOnly() ) { final String message = REZ.getString( "write-read-only.error", name ); throw new FileSystemException( message ); } if ( type == FileType.FOLDER ) { ...
final String message = REZ.getString( "write-read-only.error", name ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/write-read-only.error", name );
public OutputStream getOutputStream() throws FileSystemException { attach(); if ( isReadOnly() ) { final String message = REZ.getString( "write-read-only.error", name ); throw new FileSystemException( message ); } if ( type == FileType.FOLDER ) { ...
final String message = REZ.getString( "write-folder.error", name ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/write-folder.error", name );
public OutputStream getOutputStream() throws FileSystemException { attach(); if ( isReadOnly() ) { final String message = REZ.getString( "write-read-only.error", name ); throw new FileSystemException( message ); } if ( type == FileType.FOLDER ) { ...
final String message = REZ.getString( "write.error", name ); throw new FileSystemException( message, exc );
throw new FileSystemException( "vfs.provider/write.error", new Object[]{name}, exc );
public OutputStream getOutputStream() throws FileSystemException { attach(); if ( isReadOnly() ) { final String message = REZ.getString( "write-read-only.error", name ); throw new FileSystemException( message ); } if ( type == FileType.FOLDER ) { ...
final String message = REZ.getString( "get-type-no-exist.error", name ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/get-type-no-exist.error", name );
public FileType getType() throws FileSystemException { attach(); if ( type == null ) { final String message = REZ.getString( "get-type-no-exist.error", name ); throw new FileSystemException( message ); } return type; }
final String message = REZ.getString( "copy-missing-file.error", name ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/copy-missing-file.error", name );
public File replicateFile( final FileSelector selector ) throws FileSystemException { if ( !exists() ) { final String message = REZ.getString( "copy-missing-file.error", name ); throw new FileSystemException( message ); } return doReplicateFile( selector )...
return attrs.get(attrName.toLowerCase());
if (attrs.containsKey(attrName)) { return attrs.get(attrName); } return attrs.get(attrName.toLowerCase());
public Object getAttribute(final String attrName) throws FileSystemException { getAttributes(); return attrs.get(attrName.toLowerCase()); }
this.contextClassloader = CL_OPTIONS.asNumber(classloaderManagementOption.replace("-", "_")).intValue();
this.contextClassloader = CL_OPTIONS.asNumber(classloaderManagementOption.replace('-', '_')).intValue();
public void setContextClassloader(String classloaderManagementOption) { // transform "-" into "_" (for service-provider) if (classloaderManagementOption == null) throw new IllegalArgumentException("non-null argument required"); this.contextClassloader = CL_OPTIONS.asNumber(classloaderManagementOption.replace("-",...
BioStore(File location, boolean cache, boolean mutable)
public BioStore(File location, boolean cache)
BioStore(File location, boolean cache, boolean mutable) throws IOException, BioException { this.location = location; File configFile = BioStoreFactory.makeConfigFile(location); if (!configFile.exists()) { throw new BioException("Config file does not exist: " ...
this.location = location; File configFile = BioStoreFactory.makeConfigFile(location); if (!configFile.exists()) { throw new BioException("Config file does not exist: " + configFile); } metaData = new ConfigFile(BioStoreFactory.makeConfigFile(location)); idToList = new SmallMap(); primaryKey = (String) metaData.getPro...
this(location, cache, false);
BioStore(File location, boolean cache, boolean mutable) throws IOException, BioException { this.location = location; File configFile = BioStoreFactory.makeConfigFile(location); if (!configFile.exists()) { throw new BioException("Config file does not exist: " ...
" insert into test(id, value) values (?1, '$justatext');\n" + " insert into test(id, value) values (?value,'A test${justatext}');\n" +
" insert into test(id, value) values (?1, '?justatext');\n" + " insert into test(id, value) values (?value,'A test?{justatext}');\n" +
public void test() { String s = "-not skipped\n--HintOrComment\n" + " \n" + " CREATE TABLE Test (\n" + " ID INT,\n" + " $VALUE VARCHAR(255)\n" + " );\n" + " ${extra}\n" + ...
" insert into test(id, value) values (?/1/, '$justatext')", " insert into test(id, value) values (?/value/,'A test${justatext}')",
" insert into test(id, value) values (?/1/, '?justatext')", " insert into test(id, value) values (?/value/,'A test?{justatext}')",
public void test() { String s = "-not skipped\n--HintOrComment\n" + " \n" + " CREATE TABLE Test (\n" + " ID INT,\n" + " $VALUE VARCHAR(255)\n" + " );\n" + " ${extra}\n" + ...
if ( type == FileType.FOLDER ) { final String message = REZ.getString( "get-folder-content.error", name ); throw new FileSystemException( message ); }
public FileContent getContent() throws FileSystemException { attach(); if ( type == FileType.FOLDER ) { final String message = REZ.getString( "get-folder-content.error", name ); throw new FileSystemException( message ); } if ( content == null ) { ...
FileObject resolveFile(String name, FileSystemOptions fileSystemOptions)
FileObject resolveFile(FileObject baseFile, String name, FileSystemOptions fileSystemOptions)
FileObject resolveFile(String name, FileSystemOptions fileSystemOptions) throws FileSystemException;
final String message = REZ.getString( "create-provider.error", providerClassName ); throw new FileSystemException( message, e );
throw new FileSystemException("vfs/create-provider.error", new Object[]{providerClassName}, e );
private static FileProvider createProvider( final String providerClassName ) throws FileSystemException { try { final Class providerClass = Class.forName( providerClassName ); return (FileProvider)providerClass.newInstance(); } catch ( final Exception e ) ...
public LdifReader(Reader in) { if (in instanceof BufferedReader) { init((BufferedReader) in); } else { init(new BufferedReader(in)); }
public LdifReader() {
public LdifReader(Reader in) { if (in instanceof BufferedReader) {//check to avoid double buffering init((BufferedReader) in); } else { init(new BufferedReader(in)); } }
public void parseAttributeValue(Entry entry, String line, String lowerLine) {
public void parseAttributeValue(Entry entry, String line) {
public void parseAttributeValue(Entry entry, String line, String lowerLine) { int colonIndex = line.indexOf(':'); String attributeType = lowerLine.substring(0, colonIndex); // We should *not* have a DN twice if (attributeType.equals("dn")) { throw new LdifParseException("A ldi...
String attributeType = lowerLine.substring(0, colonIndex);
String attributeType = line.substring(0, colonIndex);
public void parseAttributeValue(Entry entry, String line, String lowerLine) { int colonIndex = line.indexOf(':'); String attributeType = lowerLine.substring(0, colonIndex); // We should *not* have a DN twice if (attributeType.equals("dn")) { throw new LdifParseException("A ldi...
if (attributeType.equals("dn")) {
if (attributeType.equalsIgnoreCase("dn")) {
public void parseAttributeValue(Entry entry, String line, String lowerLine) { int colonIndex = line.indexOf(':'); String attributeType = lowerLine.substring(0, colonIndex); // We should *not* have a DN twice if (attributeType.equals("dn")) { throw new LdifParseException("A ldi...
String lowerLine = line.toLowerCase(); parseAttributeValue(entry, line, lowerLine);
parseAttributeValue(entry, line);
private void parseChange(Entry entry, Iterator iter, int operation, Control control) { // The changetype and operation has already been parsed. entry.setChangeType(operation); switch (operation) { case Entry.DELETE: // The change type will tell that it's a delete opera...
parseAttributeValue(entry, line, lowerLine);
parseAttributeValue(entry, line);
private Entry parseEntry() { if ((lines == null) || (lines.size() == 0)) { return null; } // The entry must start with a dn: or a dn:: String line = lines.get(0); String dn = parseDn(line); // Ok, we have found a DN Entry entry = new Entry(); entry....
String attributeType = lowerLine.substring(0, colonIndex);
String attributeType = line.substring(0, colonIndex);
private void parseModify(Entry entry, Iterator iter) { int state = MOD_SPEC; String modified = null; int modification = 0; // The following flag is used to deal with empty modifications boolean isEmptyValue = true; while (iter.hasNext()) { String line = (String) ...
public StartP2PService(String peerListFile) { this.peerFileParser(peerListFile);
private StartP2PService(Args parsed) { this.peers.addAll(parsed.peers); if (parsed.peerListFile != null) { this.peerFileParser(parsed.peerListFile); }
public StartP2PService(String peerListFile) { this.peerFileParser(peerListFile); }
Point3 p = state.getPoint();
Point3 p = parent.transformWorldToObject(state.getPoint());
public void prepareShadingState(ShadingState state) { state.init(); state.getRay().getPoint(state.getPoint()); Instance parent = state.getInstance(); Vector3 worldNormal = parent.transformNormalObjectToWorld(normal); state.getNormal().set(worldNormal); state.getGeoNormal()....
String p2 = (String) parameters.getParameter("column1"); assertEquals(p, p2);
public void testLongContent() { char[] b = new char[64000]; Arrays.fill(b, 'a'); StringReader in = new StringReader(new String(b)+"match111111"); TextQueryExecutor tq = new TextQueryExecutor(new StringReader(".*(match).*"), true, in, MockParametersCallbacks.SIMPLE); final Set<Stri...
String p2 = (String) parameters.getParameter("column1"); assertEquals(p, p2);
public void processRow(final ParametersCallback parameters) { String p = (String) parameters.getParameter("1"); assertTrue("Unexpected element " + p, expected.remove(p)); }
Set<Document> docSet = doddleProject.getDocumentSelectionPanel().getDocSet(); for (Document doc : docSet) { wordSpaceSet.add(new WordSpace(conceptDefinitionPanel, doc)); aprioriSet.add(new Apriori(conceptDefinitionPanel, doc));
if (0 < conceptDefinitionPanel.getInputWordList().size()) { Set<Document> docSet = doddleProject.getDocumentSelectionPanel().getDocSet(); for (Document doc : docSet) { wordSpaceSet.add(new WordSpace(conceptDefinitionPanel, doc)); aprioriSet.add(new Apriori(conceptDefinitionPanel, doc)); }
public void setInputConcept() { wordSpaceSet.clear(); aprioriSet.clear(); ConceptDefinitionPanel conceptDefinitionPanel = doddleProject.getConceptDefinitionPanel(); conceptDefinitionPanel.setInputConceptJList(); Set<Document> docSet = doddleProject.getDocumentSelectionPanel().getD...
constructClassPanel.clearPanel(); constructPropertyPanel.clearPanel();
public ConstructTreeAction(boolean isNounAndVerbTree, DODDLEProject p) { project = p; disambiguationPanel = p.getDisambiguationPanel(); constructClassPanel = p.getConstructClassPanel(); constructPropertyPanel = p.getConstructPropertyPanel(); wordCorrespondConceptSetMap = disambigu...
if (ctOption.getConcept() == null) { System.out.println(iwModel); continue; }
private void setComplexConcept(ComplexConceptTreeInterface ccTreeInterface, Set<Concept> conceptSet) { complexWordSet = new HashSet<String>(); Map<String, String> matchedWordIDMap = new HashMap<String, String>(); DefaultMutableTreeNode rootNode = new DefaultMutab...
static public Symbol createSymbol( char token, Annotation annotation, List symList, Alphabet alpha ) throws IllegalSymbolException { Iterator i = symList.iterator(); int basis = 0; int atomC = 0; while(i.hasNext()) { Symbol s = (Symbol) i.next(); if(s instanceof BasisSymbol) { basis++; if(s instanceof AtomicSymbol) { a...
static public AtomicSymbol createSymbol( char token, String name, Annotation annotation ) { AtomicSymbol as = new FundamentalAtomicSymbol(name, token, annotation); return as;
static public Symbol createSymbol( char token, Annotation annotation, List symList, Alphabet alpha ) throws IllegalSymbolException { Iterator i = symList.iterator(); int basis = 0; int atomC = 0; while(i.hasNext()) { Symbol s = (Symbol) i.next(); if(s instanceof BasisSymbol) { basi...
public SimpleCrossProductAlphabet(List a, Alphabet parent)
public SimpleCrossProductAlphabet(List a)
public SimpleCrossProductAlphabet(List a, Alphabet parent) throws IllegalAlphabetException { if(a.size() == 0) { throw new IllegalAlphabetException( "Can't create alphabet for empty list. Use Alphabet.EMPTY_ALPHABET" ); } this.parent = parent; for(Iterator i = a.iterator(); i.hasNext(); ...
if(a.size() == 0) { throw new IllegalAlphabetException( "Can't create alphabet for empty list. Use Alphabet.EMPTY_ALPHABET" ); } this.parent = parent; for(Iterator i = a.iterator(); i.hasNext(); ) { Alphabet aa = (Alphabet) i.next(); if(! (aa instanceof FiniteAlphabet) ) { throw new IllegalAlphabetException( "Can't cr...
this(a, null);
public SimpleCrossProductAlphabet(List a, Alphabet parent) throws IllegalAlphabetException { if(a.size() == 0) { throw new IllegalAlphabetException( "Can't create alphabet for empty list. Use Alphabet.EMPTY_ALPHABET" ); } this.parent = parent; for(Iterator i = a.iterator(); i.hasNext(); ...
this.targetObject = new SI() { public void process() {} };
public void process() {}
this.targetObject = new SI() { public void process() {} };
SI newTarget = new SI() { public void process() {} };
public void process() {}
SI newTarget = new SI() { public void process() {} };
project.getConstructConceptTreePanel().expandTree(); project.getConstructPropertyTreePanel().expandTree();
public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(DODDLE.PROJECT_DIR); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval != JFileChooser.APPROVE_OPTION) { return; } openD...
project.getConstructConceptTreePanel().expandTree(); project.getConstructPropertyTreePanel().expandTree();
public void run() { try { DODDLE.STATUS_BAR.setLastMessage("プロジェクト復元完了"); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(16); DODDLE.STATUS_BAR.lock(); DODDLEProject project = new DODDL...
public void loadWordInfoTable(File loadFile) { if (!loadFile.exists()) { return; } wordInfoMap = new HashMap(); try { BufferedReader reader = new BufferedReader(new FileReader(loadFile)); String line = reader.readLine(); docNum = new Integer(line.split("=")[1]).intValue(); while ((line = reader.readLine()) != null) { S...
public void loadWordInfoTable() { JFileChooser chooser = new JFileChooser("."); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval == JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); loadWordInfoTable(file);
public void loadWordInfoTable(File loadFile) { if (!loadFile.exists()) { return; } wordInfoMap = new HashMap(); try { BufferedReader reader = new BufferedReader(new FileReader(loadFile)); String line = reader.readLine(); docNum = new Integer(line.split("=")[1])....
setWordInfoTableModel(wordInfoMap, docNum);
public void loadWordInfoTable(File loadFile) { if (!loadFile.exists()) { return; } wordInfoMap = new HashMap(); try { BufferedReader reader = new BufferedReader(new FileReader(loadFile)); String line = reader.readLine(); docNum = new Integer(line.split("=")[1])....
public void loadWordEvalConceptSet(File file) { if (!file.exists()) { return; } try { BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "SJIS")); String line = ""; wordEvalConceptSetMap = new HashMap<String, Set<EvalConcept>>(); while ((line = reader.readLine()) != null) { Stri...
public void loadWordEvalConceptSet() { JFileChooser chooser = new JFileChooser("."); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval == JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); loadWordEvalConceptSet(file);
public void loadWordEvalConceptSet(File file) { if (!file.exists()) { return; } try { BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "SJIS")); String line = ""; wordEvalConceptSetMap = new HashMap<String, Set<EvalConcept>>()...
public void loadWordConceptMap(File file) { if (!file.exists()) { return; } try { FileInputStream fis = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(fis, "JISAutoDetect")); Set<String> inputWordSet = new HashSet<String>(); while (inputWordModelSet == null) { try { Thread.s...
public void loadWordConceptMap() { JFileChooser chooser = new JFileChooser("."); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval == JFileChooser.APPROVE_OPTION) { loadWordConceptMap(chooser.getSelectedFile());
public void loadWordConceptMap(File file) { if (!file.exists()) { return; } try { FileInputStream fis = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(fis, "JISAutoDetect")); Set<String> inputWordSet = new HashSet<String>();...
assertEquals("fp", ra.getFilePointer(), 12);
public void testRandomRead() throws Exception { FileObject file = null; try { file = getReadFolder().resolveFile("file1.txt"); RandomAccessContent ra = file.getContent().getRandomAccessContent(RandomAccessMode.READ); // read first byte byte c = ra....
String fileName = getName().getPathDecoded();
LocalFileName localFileName = (LocalFileName) getName(); String fileName = localFileName.getRootFile() + getName().getPathDecoded();
protected void doAttach() throws Exception { if (file == null) { // Remove the "file:///" String fileName = getName().getPathDecoded(); // fileName = UriParser.decode(fileName); file = new File(fileName); } }
public SparseVector(int capacity) { keys = new int[capacity]; values = new double[capacity]; Arrays.fill(keys, 0, capacity, Integer.MAX_VALUE); size = 0;
public SparseVector() { this(100);
public SparseVector(int capacity) { keys = new int[capacity]; values = new double[capacity]; Arrays.fill(keys, 0, capacity, Integer.MAX_VALUE); size = 0; }
public SourceFile getSourceFile(AbstractFile file) throws IOException { return new SourceFile(file, reader.read(file));
public SourceFile getSourceFile(String sourcename, String content) { return new SourceFile(sourcename, content.toCharArray());
public SourceFile getSourceFile(AbstractFile file) throws IOException { return new SourceFile(file, reader.read(file)); }