public class Event
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
Event.EventNode |
static class |
Event.EventNodeXBRLAttribute |
static class |
Event.EventNodeXMLFragment |
Modifier and Type | Field and Description |
---|---|
static int |
EV_ABSTRACT
The Constant EV_ABSTRACT.
|
static int |
EV_ATTRIBUTE_DELETE
The Constant EV_ATTRIBUTE_DELETE.
|
static int |
EV_ATTRIBUTE_NEW
The Constant EV_ATTRIBUTE_NEW.
|
static int |
EV_ATTRIBUTES_INEQUALITY
The Constant EV_ATTRIBUTES_INEQUALITY.
|
static int |
EV_BALANCE
The Constant EV_BALANCE.
|
static int |
EV_BLOCK
The Constant EV_BLOCK.
|
static int |
EV_CONCEPT_ATTRIBUTE
The Constant EV_CONCEPT_ATTRIBUTE.
|
static int |
EV_CONCEPT_CHILD
The Constant EV_CONCEPT_CHILD.
|
static int |
EV_CONCEPT_DELETE
The Constant EV_CONCEPT_DELETE.
|
static int |
EV_CONCEPT_NAME
The Constant EV_CONCEPT_NAME.
|
static int |
EV_CONCEPT_NAMESPACE
The Constant EV_CONCEPT_NAMESPACE.
|
static int |
EV_CONCEPT_NEW
The Constant EV_CONCEPT_NEW.
|
static int |
EV_CONCEPT_RELATIONSHIP_FROM
The Constant EV_CONCEPT_RELATIONSHIP_FROM.
|
static int |
EV_CONCEPT_RELATIONSHIP_TO
The Constant EV_CONCEPT_RELATIONSHIP_TO.
|
static int |
EV_CONCEPT_TYPE
The Constant EV_CONCEPT_TYPE.
|
static int |
EV_DEFAULT
The Constant EV_DEFAULT.
|
static int |
EV_FINAL
The Constant EV_FINAL.
|
static int |
EV_FIXED
The Constant EV_FIXED.
|
static int |
EV_NILLABLE
The Constant EV_NILLABLE.
|
static int |
EV_NODE_DELETE
The Constant EV_NODE_DELETE.
|
static int |
EV_NODE_NEW
The Constant EV_NODE_NEW.
|
static int |
EV_NODES_INEQUALITY
The Constant EV_NODES_INEQUALITY.
|
static int |
EV_PERIOD_TYPE
The Constant EV_PERIOD_TYPE.
|
static int |
EV_RELATIONSHIP_ARCROLE
The Constant EV_RELATIONSHIP_ARCROLE.
|
static int |
EV_RELATIONSHIP_ATTRIBUTE
The Constant EV_RELATIONSHIP_ATTRIBUTE.
|
static int |
EV_RELATIONSHIP_DELETE
The Constant EV_RELATIONSHIP_DELETE.
|
static int |
EV_RELATIONSHIP_NEW
The Constant EV_RELATIONSHIP_NEW.
|
static int |
EV_RELATIONSHIP_NEXT
The Constant EV_RELATIONSHIP_NEXT.
|
static int |
EV_RELATIONSHIP_PREVIOUS
The Constant EV_RELATIONSHIP_PREVIOUS.
|
static int |
EV_RELATIONSHIP_PRIORITY
The Constant EV_RELATIONSHIP_PRIORITY.
|
static int |
EV_RELATIONSHIP_SOURCE
The Constant EV_RELATIONSHIP_SOURCE.
|
static int |
EV_RELATIONSHIP_TARGET
The Constant EV_RELATIONSHIP_TARGET.
|
static int |
EV_RELATIONSHIP_TYPE
The Constant EV_RELATIONSHIP_TYPE.
|
static int |
EV_RESOURCE_ATTRIBUTE
The Constant EV_RESOURCE_ATTRIBUTE.
|
static int |
EV_RESOURCE_CONTENT
The Constant EV_RESOURCE_CONTENT.
|
static int |
EV_RESOURCE_DELETE
The Constant EV_RESOURCE_DELETE.
|
static int |
EV_RESOURCE_NEW
The Constant EV_RESOURCE_NEW.
|
static int |
EV_RESOURCE_RELATIONSHIP_FROM
The Constant EV_RESOURCE_RELATIONSHIP_FROM.
|
static int |
EV_RESOURCE_RELATIONSHIP_TO
The Constant EV_RESOURCE_RELATIONSHIP_TO.
|
static int |
EV_RESOURCE_ROLE
The Constant EV_RESOURCE_ROLE.
|
static int |
EV_RESOURCE_TYPE
The Constant EV_RESOURCE_TYPE.
|
static int |
EV_RESOURCE_VALUE
The Constant EV_RESOURCE_VALUE.
|
static int |
EV_SUBSTITUTIONGROUP
The Constant EV_SUBSTITUTIONGROUP.
|
static java.lang.String[] |
eventDescription
The Constant eventDescription.
|
static java.lang.String[] |
eventName
The Constant eventName.
|
static int |
UNKNOWN
The Constant UNKNOWN.
|
Constructor and Description |
---|
Event(net.sf.saxon.om.NodeInfo info,
Event parent,
VlVersioningProcessor processor)
Creates a new Event from a node with information about the event.
|
Event(java.lang.String note,
int type,
Event.EventNode left,
Event.EventNode right,
Event parent)
Instantiates a new event.
|
Event(XBRLFactTuple tuple,
Event parent,
VlVersioningProcessor processor)
Instantiates a new event.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Event diff)
Adds the.
|
boolean |
equals(java.lang.Object other) |
java.util.Vector<Event> |
getChildren()
Gets the children.
|
java.lang.String |
getEventName()
The static string representing this event name.
|
Event.EventNode |
getFrom()
Gets the from.
|
java.lang.String |
getItemParamFrom()
Gets the item param from.
|
java.lang.String |
getItemParamTo()
Gets the item param to.
|
java.lang.String |
getNote()
Gets the note.
|
Event |
getParent()
Gets the parent.
|
Path |
getPath()
Constructs a new DiffPath.
|
Event.EventNode |
getTo()
Gets the to.
|
int |
getType()
return the Event type.
|
void |
insertElementAt(Event event,
int index)
Insert element at.
|
boolean |
isEnding()
Checks if is ending.
|
boolean |
isStarting()
Checks if is starting.
|
boolean |
isVoid(java.util.HashSet<Event> hashSet)
Returns true if this diff contains no useful path.
|
static Event |
make(net.sf.saxon.om.NodeInfo info,
Event parent,
VlVersioningProcessor processor)
Creates a new Event from a node with information about the event.
|
static Event |
make(java.lang.String note,
int type,
Event.EventNode left,
Event.EventNode right,
Event parent)
Instantiates a new event.
|
boolean |
remove(Event event)
Removes the.
|
Event |
remove(int index)
Removes the.
|
void |
setChildren(java.util.Vector<Event> childrenDiffs)
Sets the children.
|
void |
setFrom(XMLFragment left)
Sets the from.
|
void |
setNote(java.lang.String note)
Sets the note.
|
void |
setParent(Event diff)
Sets the parent.
|
void |
setTo(XMLFragment right)
Sets the to.
|
void |
setType(int newType)
Change the type to a new type.
|
java.lang.String |
toString() |
public static final int UNKNOWN
public static final int EV_CONCEPT_DELETE
public static final int EV_CONCEPT_NEW
public static final int EV_CONCEPT_NAMESPACE
public static final int EV_CONCEPT_NAME
public static final int EV_CONCEPT_TYPE
public static final int EV_SUBSTITUTIONGROUP
public static final int EV_PERIOD_TYPE
public static final int EV_BALANCE
public static final int EV_NILLABLE
public static final int EV_ABSTRACT
public static final int EV_BLOCK
public static final int EV_DEFAULT
public static final int EV_FIXED
public static final int EV_FINAL
public static final int EV_CONCEPT_RELATIONSHIP_FROM
public static final int EV_CONCEPT_RELATIONSHIP_TO
public static final int EV_CONCEPT_ATTRIBUTE
public static final int EV_CONCEPT_CHILD
public static final int EV_ATTRIBUTES_INEQUALITY
public static final int EV_NODES_INEQUALITY
public static final int EV_RELATIONSHIP_DELETE
public static final int EV_RELATIONSHIP_NEW
public static final int EV_RELATIONSHIP_TYPE
public static final int EV_RELATIONSHIP_SOURCE
public static final int EV_RELATIONSHIP_TARGET
public static final int EV_RELATIONSHIP_ARCROLE
public static final int EV_RELATIONSHIP_PREVIOUS
public static final int EV_RELATIONSHIP_NEXT
public static final int EV_RELATIONSHIP_PRIORITY
public static final int EV_RELATIONSHIP_ATTRIBUTE
public static final int EV_RESOURCE_DELETE
public static final int EV_RESOURCE_NEW
public static final int EV_RESOURCE_TYPE
public static final int EV_RESOURCE_ROLE
public static final int EV_RESOURCE_RELATIONSHIP_FROM
public static final int EV_RESOURCE_RELATIONSHIP_TO
public static final int EV_RESOURCE_ATTRIBUTE
public static final int EV_RESOURCE_CONTENT
public static final int EV_RESOURCE_VALUE
public static final int EV_ATTRIBUTE_NEW
public static final int EV_ATTRIBUTE_DELETE
public static final int EV_NODE_NEW
public static final int EV_NODE_DELETE
public static final java.lang.String[] eventName
public static final java.lang.String[] eventDescription
public Event(java.lang.String note, int type, Event.EventNode left, Event.EventNode right, Event parent)
note
- the notetype
- the typeleft
- the leftright
- the rightparent
- the parentpublic Event(net.sf.saxon.om.NodeInfo info, Event parent, VlVersioningProcessor processor)
info
- the infoparent
- the parentprocessor
- the processorpublic Event(XBRLFactTuple tuple, Event parent, VlVersioningProcessor processor)
tuple
- the tupleparent
- the parentprocessor
- the processorpublic static Event make(java.lang.String note, int type, Event.EventNode left, Event.EventNode right, Event parent)
note
- the notetype
- the typeleft
- the leftright
- the rightparent
- the parentpublic static Event make(net.sf.saxon.om.NodeInfo info, Event parent, VlVersioningProcessor processor)
info
- the infoparent
- the parentprocessor
- the processorpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public boolean isEnding()
public boolean isStarting()
public Path getPath()
public int getType()
public void setType(int newType)
newType
- the new typepublic void setFrom(XMLFragment left)
left
- the new frompublic void setTo(XMLFragment right)
right
- the new topublic void add(Event diff)
diff
- the diffpublic void setParent(Event diff)
diff
- the new parentpublic void setNote(java.lang.String note)
note
- the new notepublic java.lang.String getNote()
public Event.EventNode getFrom()
public Event.EventNode getTo()
public java.util.Vector<Event> getChildren()
public Event getParent()
public java.lang.String toString()
toString
in class java.lang.Object
public void setChildren(java.util.Vector<Event> childrenDiffs)
childrenDiffs
- Vectorpublic boolean isVoid(java.util.HashSet<Event> hashSet)
hashSet
- public java.lang.String getEventName()
public java.lang.String getItemParamFrom()
public java.lang.String getItemParamTo()
public void insertElementAt(Event event, int index)
event
- the eventindex
- the indexpublic Event remove(int index)
index
- the indexpublic boolean remove(Event event)
event
- the eventCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa