@Embeddable public class Context extends Object implements Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
Context.Type
This enumerated type represents the type of the context.
|
Constructor and Description |
---|
Context()
The default constructor.
|
Context(Context.Type type,
String value)
This constructor sets the fields for the context.
|
Context(Context context)
The copy constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getTimeframe()
This method returns the timeframe.
|
Context.Type |
getType()
This method returns the type.
|
String |
getValue()
This method returns the value.
|
int |
hashCode() |
boolean |
linkSource()
This method indicates whether the context represents a link source.
|
boolean |
linkTarget()
This method indicates whether the context represents a link target.
|
void |
readExternal(ObjectInput in) |
void |
setTimeframe(long timeframe)
This method sets the timeframe.
|
void |
setType(Context.Type type)
This method sets the type.
|
void |
setValue(String value)
This method sets the value.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public Context()
public Context(Context.Type type, String value)
type
- The context typevalue
- The valuepublic Context(Context context)
context
- The context to copypublic Context.Type getType()
public void setType(Context.Type type)
type
- The typepublic String getValue()
public void setValue(String value)
value
- The valuepublic boolean linkSource()
public boolean linkTarget()
public long getTimeframe()
public void setTimeframe(long timeframe)
timeframe
- The timeframepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.