public class StylesheetInfo extends Object
Therefore, either a stylesheet must be set, or a uri must be set
Origin defaults to USER_AGENT and media defaults to "all"
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHOR
Origin of stylesheet - author
|
static int |
USER
Origin of stylesheet - user
|
static int |
USER_AGENT
Origin of stylesheet - user agent
|
| Constructor and Description |
|---|
StylesheetInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMedium(String medium) |
boolean |
appliesToMedia(String m) |
String |
getContent() |
List<String> |
getMedia()
Gets the media attribute of the StylesheetInfo object
|
int |
getOrigin()
Gets the origin attribute of the StylesheetInfo object
|
Stylesheet |
getStylesheet()
Gets the stylesheet attribute of the StylesheetInfo object
|
String |
getTitle()
Gets the title attribute of the StylesheetInfo object
|
String |
getType()
Gets the type attribute of the StylesheetInfo object
|
String |
getUri()
Gets the uri attribute of the StylesheetInfo object
|
boolean |
isInline() |
void |
setContent(String content) |
void |
setMedia(List<String> mediaTypes) |
void |
setMedia(String media)
Sets the media attribute of the StylesheetInfo object
|
void |
setOrigin(int origin)
Sets the origin attribute of the StylesheetInfo object
|
void |
setStylesheet(Stylesheet stylesheet)
Sets the stylesheet attribute of the StylesheetInfo object
|
void |
setTitle(String title)
Sets the title attribute of the StylesheetInfo object
|
void |
setType(String type)
Sets the type attribute of the StylesheetInfo object
|
void |
setUri(String uri)
Sets the uri attribute of the StylesheetInfo object
|
public static final int USER_AGENT
public static final int USER
public static final int AUTHOR
public boolean appliesToMedia(String m)
m - a single media identifierpublic void setUri(String uri)
uri - The new uri valuepublic void setMedia(String media)
media - The new media valuepublic void addMedium(String medium)
public void setOrigin(int origin)
origin - The new origin valuepublic void setType(String type)
type - The new type valuepublic void setTitle(String title)
title - The new title valuepublic void setStylesheet(Stylesheet stylesheet)
stylesheet - The new stylesheet valuepublic String getUri()
public List<String> getMedia()
public int getOrigin()
public String getType()
public String getTitle()
public Stylesheet getStylesheet()
public String getContent()
public void setContent(String content)
public boolean isInline()
Copyright © 2018. All rights reserved.