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

Class DotnetResource


public class DotnetResource
extends java.lang.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

String
getCSharpStyleParameter()
build the C# style parameter (which has no public/private option)
File
getFile()
String
getName()
Boolean
getPublic()
String
getVbStyleParameter()
This method gets the style of param used by VB and javascript
boolean
isEmbed()
void
setEmbed(boolean embed)
embed the resource in the assembly (default, true) or just link to it.
void
setFile(File file)
name the resource
void
setName(String name)
should the resource have a name?
void
setPublic(Boolean aPublic)
VB and J# only: is a resource public or not?

Method Details

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 © 2000-2006 Apache Software Foundation. All Rights Reserved.