org.apache.tools.ant.taskdefs.optional.dotnet

Class DotnetResource

public class DotnetResource extends Object

class used by DotnetCompile to name resources, could be upgraded to a datatype in the distant future. a resource maps to /res:file,name
Method Summary
StringgetCSharpStyleParameter()
build the C# style parameter (which has no public/private option)
FilegetFile()
StringgetName()
BooleangetPublic()
StringgetVbStyleParameter()
This method gets the style of param used by VB and javascript
booleanisEmbed()
voidsetEmbed(boolean embed)
embed the resource in the assembly (default, true) or just link to it.
voidsetFile(File file)
name the resource
voidsetName(String name)
should the resource have a name?
voidsetPublic(Boolean aPublic)
VB and J# only: is a resource public or not?

Method Detail

getCSharpStyleParameter

public String getCSharpStyleParameter()
build the C# style parameter (which has no public/private option)

Returns: the built C# style parameter

getFile

public File getFile()

getName

public String getName()

getPublic

public Boolean getPublic()

getVbStyleParameter

public String getVbStyleParameter()
This method gets the style of param used by VB and javascript

Returns: The style VB parameter being used.

isEmbed

public boolean isEmbed()

setEmbed

public void setEmbed(boolean embed)
embed the resource in the assembly (default, true) or just link to it.

Parameters: embed

setFile

public void setFile(File file)
name the resource

Parameters: file

setName

public void setName(String name)
should the resource have a name?

Parameters: name

setPublic

public void setPublic(Boolean aPublic)
VB and J# only: is a resource public or not?

Parameters: aPublic

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.