public class Url extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_LOCAL |
static String |
DEFAULT_NAME |
static boolean |
DEFAULT_SCHEMALESS |
DEFAULT_GHOST_VALUE| Constructor and Description |
|---|
Url(String name,
boolean ghost,
boolean local,
boolean schemaless)
Create an URL pattern element.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
boolean |
isGhost()
If it's true then processor parse it but no move the cursor.
|
boolean |
isLocal()
Local URLs a URLs without a schema and host
|
boolean |
isSchemaless()
Is it URL without a schema? Like www.example.com
|
void |
setGhost(boolean ghost) |
void |
setLocal(boolean local)
Set support local URLs.
|
void |
setName(String name) |
void |
setSchemaless(boolean schemaless)
Set this is URL with schema or not?
|
public static final String DEFAULT_NAME
public static final boolean DEFAULT_LOCAL
public static final boolean DEFAULT_SCHEMALESS
public Url(String name, boolean ghost, boolean local, boolean schemaless)
name - variable nameghost - is it ghost?local - supports local URLsschemaless - true if accept URLs only without a schema, false otherwisepublic boolean isLocal()
public void setLocal(boolean local)
local - new valuepublic boolean isSchemaless()
public void setSchemaless(boolean schemaless)
schemaless - if true then without schema.public boolean isGhost()
public void setGhost(boolean ghost)
ghost - If it's true then processor parse it but no move the cursor.public String getName()
public void setName(String name)
Copyright © 2016. All rights reserved.